|Test case reuse question [message #899708]
||Thu, 02 August 2012 03:35
| Andrew H
Registered: June 2012
I'd like to do make a re-usable test case where a test step in the test case is configurable. So it does this:
1. Test Step A (e.g. select a tree node)
2. Configurable Test Step B (e.g. select context menu item)
3. Test Step C (e.g. select a sub-tree node)
I'd like to loop over this test case supplying data which affects steps A and C (so use a data set), but also I want to make Test Step B configurable, for example I re-use this test case supplying in test data and Step B is configured to click the context menu item "New", I re-use the test-case somewhere else, but this time Step B is configured to execute a key accelerator Ctrl+N.
Is there any easy way to do this?
I got it working by doing this:
After Step A, throw an error (i.e check string value A), setting up a retry handler which performs Step B, setting the correct value for string value A, and then re-enters the failing test step which now succeeds on string value check, original test case performs Step C. Success.
This seems really clunky. Is there are better way to this?
Powered by FUDForum
. Page generated in 0.10765 seconds