Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Creating a Test Suite to Import the Test Cases to
Switch to the Regression Tests tab. First of all, you need to create a test suite to store your regression tests in.
Note | |
---|---|
Info | |
false | Adding test cases directly to the root test suite is not possible. You need to create subordinate test suites to organize the test cases in. |
Image Modified | Click the root test suite and Create Test Suite from the context menu. |
Image Modified | Enter a meaningful name, e.g. Dev Tests. |
Image Modified | The new test suite is displayed in the Regression Test navigation tree. |
Importing the Test Cases from the Trace Analyzer
Into this newly created test suite you can now import all test cases defined in the first step.
Image Modified | Click the new test suite and select Import Test Suite from the context menu.
|
Image Modified | Select the test suite you want the import to be inserted to. In the lower part you'll find a list of WSDLs from the Trace Analyzer containing all WSDLs from the PState project. Browse through this list and look for the PurchaseOrder example. With Select All you could also select all SOAP operations to be imported as test suites into the Regression Test tool. Use Select None to undo any selection. |
|
icon | false |
---|
Even erroneous test cases can be imported and can be used for regression testing (for an example see Adding an Additional Test Case). To import test cases from other Builder projects use the Select from drop-down box. | |
Image Modified | Select PurchaseOrderPort as the tree node containing all test cases you prepared in step one, and click OK. |
Image Modified | The |
PurchaseOrderPort test cases got imported into test suite Dev Tests. The importer created subordinated test suites for each SOAP operation. | |
Image Modified | Rename the imported test suite to PurchaseOrderExample (which is more meaningful) by pressing F2 or selecting Rename Test Suite from the context menu. |
Sorting the Test Cases
Now remember, that the order of execution of the test cases is important. If you want to automate the execution of PurchaseOrderExample, you'll have to move the test cases to the correct order.
createPurchaseOrder should be the first SOAP operation to be tested.
Image Modified | Click createPurchaseOrder and drag it to the PurchaseOrderExample folder. |
Image Modified | Confirm that you want to insert the test cases into PurchaseOrderExample. |
Image Modified | The SOAP operation and its test cases got inserted on top. |
Image Modified | Rearrange all SOAP operations according to the picture on the left. |
Note | |
---|---|
Info | |
false | Expand tree node createPurchaseOrder and delete the test Create Purchase Order 3 (if existent). This test will create a persistent state object, that only will be removed after a timeout and that will be breaking the regression tests. |
Moveon | ||||
---|---|---|---|---|
|
Otp | ||
---|---|---|
|
Rp |
---|