Series of testcases - how to define in same script
In QTP, how do you define a series of testcases in the same script?
If I have, for example:
- testcase1 Verify_TabOrders
- testcase2 Verify_ReverseTabOrders
- testcase3 Verify_TextField_Allignment
- testcase4 Verify_CheckBoxes_DefaultSettings
Is this done by creating different Actions? Or if in one Action, how? sample code will be nice to see
Re: Series of testcases - how to define in same script
Depends on the way u plan to automate. The approach can be to have common functionality into actions that can be reused. Then u can look for unique functionality in testcase1, testcase2 etc into different actions. U can either have a script that can call this external action to complete the operations.
I would like to know, why would u want to have all these testcases in one script. Are these all part of one workflow??