ChuckAtIvory
15 years agoContributor
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.
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.