Forum Discussion

escap89's avatar
escap89
Contributor
9 years ago
Solved

How to auto run some script if some test in our test plan fail.

Hello!

 

I have for example 5 tests like:

TEST A: Open Application

TEST B: Add some user

TEST C: Edit some user

TEST D: Remove some user

TEST E: Close Application

 

Lets say that i config all tests like:

Stop on error: TestItem

 

Every our test expect Open and Start application expecting first window we see after we open our application and we always leave it as it on our last step in every test.

 

If "TEST A" for example stop on error then every next test will also fail because they expecting some other window at start.

 

Because of that i want to make some script that will:

Close windows process (our desktop application) and then run "TEST A".

 

I just dont know how to connect that script with "Stop on error: TestItem"

So then it would be like:

If "TEST A" for example stop on error we run our new script "close process and run test A" and

then next tests in our test plan will be executed.

 

How u guys handle with situations like this?

 

Any advice will be useful!:)

 

//Sebastian