Collections:
Add Assertion to Request in SoapUI
How to add assertions to requests in SoapUI?
✍: FYIcenter.com
When you perform a request as a test step in SoapUI, you need to add some assertions to determine if the request is successful or not.
You can follow this tutorial to see add assertions to a request in a SoapUI test.
1. Start SoapUI on your computer.
2. Click "File > Import" menu to open your first SoapUI test project stored in "\fyicenter\First-project.xml".
3. Double-click on "HTTP Request" test step under "Project 1 > TestSuite 1 > TestCast 1> Test Steps". You see the request window
4. Click the "Run" icon on the request window. You see the test step executed.
5. Click the "Assertion" tab at the button of the request window. You see the assertion section opening up with no assertions listed.
6. Click the "+" icon. You see "Add Assertion" window.
7. Click "Property Content > Contains" and "Add". You see the "Contains Assertion" window.
8. Enter "JSON Validator" in the "Content" field and click "Add". You see an "Contains" assertion added to the request.
If you run the request now and the response returned from the server contains the string of "JSON Validator", this assertion will be marked as "VALID". Otherwise, it will be marked as "FAILED".
The picture below shows you how to add an assertion to a request in SoapUI:
⇐ View Request Execution Log in SoapUI
2018-04-21, 2048🔥, 0💬
Popular Posts:
How to turn off HTTP response compression in SoapUI? HTTP response compression reduces the data size...
How to call JMeter command in a Windows batch file? I want to create a single batch job to run JMete...
How to call JMeter command in a Windows batch file? I want to create a single batch job to run JMete...
How to call JMeter command in a Windows batch file? I want to create a single batch job to run JMete...
How to see my IP address Host Name? To help you to see your IP Address Host Name, FYIcenter.com has ...