Using Groovy Script to Generate and Validate Data in soapUI

soapUI is the leading tool for Web Service Testing, it provides extensive options for scripting to do more flexible testing, e.g. generate test data and validate it.

Let's assume a scenario, we receive a Web Services which contains id and name information, and save them to database table named 'a_table'.

1. Add following script to 'Setup Script' in TestCase:

2. Add Properties

3. Modify Test Request

4. Add Script Assertion for validation

0 评论:

My Favorites