The best way to ensure the correct functionality of your Web service is to start by creating unit tests for each individual operation implemented by your service. Performing unit testing allows you to catch errors at the component level, making development errors easier to identify and fix. The SOAtest test creation wizard will automatically create a test client for each operation defined within your WSDL. You can then move these tests into separate test suites. Creating one test suite for each test case allows you to organize and structure your testing environment to maximize readability and reusability.
When you complete this section of the tutorial, your test suite should resemble the "Unit Tests" test suite in the SOAtestTutorial.tst
file.
In this tutorial:
- Creating Test Suites for Unit Tests
- Defining Message Validations and Test Success Criteria
- Creating Regression Tests Using the Diff Tool
- Excluding Dynamic Values from Diff Comparisons
- Creating Regression Tests Using the XML Assertor Tool
- Automating Testing Using Data Sources
- Creating Regression Tests while using Data Sources
- Creating XML Assertions while using Data Sources
- Separating Tests into Positive and Negative Test Cases
- Testing Invalid Data