Forum Discussion
nmrao
12 years agoChampion Level 3
It is understand and not expected to post your work related data, but the issue may get addressed by some one if the details are enough to provide you valuable to suggestions. Please do not get me wrong.
Coming to the issue:
1. When add car request is added, you may add script assertion to the response itself so that it extracts the generated ID from the response and set as property to test case/testsuite/project level based on your need.
Here is how you can set a project property
2. In the verification step, use above property as value while sending query with newly created car ids
For eg: <carId>${#Project#CARID}</carId>
There should not be any issue while running load test now.
This way you may be able to achieve what you are looking for.
Coming to the issue:
1. When add car request is added, you may add script assertion to the response itself so that it extracts the generated ID from the response and set as property to test case/testsuite/project level based on your need.
Here is how you can set a project property
//do an xpath query result on response of car id and assign to a variable say ID
// this link will help you here to extract 'car id' from your add car response
/*
[url]
http://www.soapui.org/Functional-Testing/script-assertions.html
[/url]*/
project.setProperty('CARID', ID)
2. In the verification step, use above property as value while sending query with newly created car ids
For eg: <carId>${#Project#CARID}</carId>
There should not be any issue while running load test now.
This way you may be able to achieve what you are looking for.
Related Content
- 2 years ago
- 4 years ago
- 2 years ago
- 7 years ago
Recent Discussions
- 15 years ago