LKRIST
12 years agoOccasional Contributor
"DataSource Loop" step not populating the request correctly
Hi Support,
I am developing a SoapUI test case to test a webservice.
The webservice request looks like below
urn:assets>
<urn:assetDetails>
<urn:identifier>171491283037</urn:identifier>
<urn:itemCode>CO.100200201.NA</urn:itemCode>
<urn:eventNumber>102</urn:eventNumber>
</urn:assetDetails>
<urn:assetDetails>
<urn:identifier>171491283038</urn:identifier>
<urn:itemCode>CO.100200201.NA</urn:itemCode>
<urn:eventNumber>102</urn:eventNumber>
</urn:assetDetails>
....
.....
</urn:assets>
I need to submit 3 assetDetails in 1 request.
I have the testdata in database with 3 rows.
In my test case I have 3 steps
1)"DataSource" step to load the test data from the DB
2)"DataSource Loop" step to iterate through the datasource result
3)Test Request TO call webservice, I am mapping the input data from the properties I created in Datasource
when I run the test case I see 1 webservice request with only 1 assetDetails. But I am 1 webservice request with assetdetails(3 rows form the DB) populated in the request.
when I run the DataSource step, it returns 3 rows.
Can you help to identify if I am doing something wrong?
Attached the soapui project
Thanks,
Babu
I am developing a SoapUI test case to test a webservice.
The webservice request looks like below
urn:assets>
<urn:assetDetails>
<urn:identifier>171491283037</urn:identifier>
<urn:itemCode>CO.100200201.NA</urn:itemCode>
<urn:eventNumber>102</urn:eventNumber>
</urn:assetDetails>
<urn:assetDetails>
<urn:identifier>171491283038</urn:identifier>
<urn:itemCode>CO.100200201.NA</urn:itemCode>
<urn:eventNumber>102</urn:eventNumber>
</urn:assetDetails>
....
.....
</urn:assets>
I need to submit 3 assetDetails in 1 request.
I have the testdata in database with 3 rows.
In my test case I have 3 steps
1)"DataSource" step to load the test data from the DB
2)"DataSource Loop" step to iterate through the datasource result
3)Test Request TO call webservice, I am mapping the input data from the properties I created in Datasource
when I run the test case I see 1 webservice request with only 1 assetDetails. But I am 1 webservice request with assetdetails(3 rows form the DB) populated in the request.
when I run the DataSource step, it returns 3 rows.
Can you help to identify if I am doing something wrong?
Attached the soapui project
Thanks,
Babu