in SETUP should I add an UI script or a sql script?

Ranorex Spy, Recorder, and Studio.
prepelra
Posts: 10
Joined: Tue Apr 02, 2019 9:33 am

in SETUP should I add an UI script or a sql script?

Post by prepelra » Tue May 28, 2019 11:31 am

Hi,

I have the following scenario:

Testcase1 - Check that deleting values from a web application is working.

I start from the idea that testcases should not be dependent. So delete(testcase1) should not depend by an adding testcase

Structure of Testcase1:

SETUP - "Add values" UI script
Testcase - Delete values

How in this case scenario delete does not depend by adding? If adding is not working properly in the SETUP part, testcase for delete will not be tested properly. I'm missing something?

Or in the SETUP part I should add a sql script not a UI script?

Which is the best aproach? :roll:

User avatar
Stub
Posts: 257
Joined: Fri Jul 15, 2016 1:35 pm

Re: in SETUP should I add an UI script or a sql script?

Post by Stub » Wed May 29, 2019 8:08 am

I make sure my test cases are independent, but where there is some collective setup required I will put those steps into the [SETUP] block and structure the tests into nested smart folders. I also try to group modules together to minimise duplication as much as possible.