Ask a Question

How to? On error, fire off a batch file then skip to next keyword test

ChuckAtIvory
Contributor

How to? On error, fire off a batch file then skip to next keyword test

My keyword tests will* all work with data created by the previous test. Any error will cause more errors in further tests. What I'd like to do is catch errors, have the next command automatically set my data to the expected state, then go directly to the next keyword test. (

Setting the data can be done a variety of ways, including using a keyword test or a batch file. )



Proposed Example

Keytest1 – passes, leaving the data in a good state for Ktest2.

Keytest2  - fails mid-way

    Capture fail. Start an event or test that will manually load the data into a good state for Ktest3.

    Go directly to next keyword test.


Keytest3 - passes, leaving the data in a good state for Ktest4.

Keytest4  - fails mid-way

    Capture fail. Start an event or test that will manually load the data into a good state for Ktest5.

    Go directly to next keyword test.


Keytest5 - passes, leaving the data in a good state for Ktest6.





My question:

How would I have an on error event fire off a batch file, then skip to the next keyword test?



Difficulty challenge:

No personal scripting experience.







*These tests have not been written yet. I'm spending time researching best-methods so I don't write non-flexible tests, then later learn I should have done XYZ instead.
1 REPLY 1

Hi Chuck,


A possible solution is to use a routine handling the OnLogError event and post the needed data to project suite variables, from which data can be obtained and handled by other keyword tests.


Best regards,
Alexey

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: