Forum Discussion
JShah
15 years agoContributor
Hi
I followed the Suggestions suggested by soap UI Support.
The Steps,
1. Created REST Request1(GET Request) generated the Id
2.Created REST Request 2 (POST Request)
3.Created the Property Transfer Step and Trasfered the generated ID from step 1 to TestCase Property i.e claim_id
4.Created the Data Source Step with Property name xmldata and used Directory Data Source (with 3 different xml's)
5.In Every Xml Part pf Directory Data Source mentioned
<claim_id>${#TestCase#claim_id}</claim_id>
6.Created the Data Source loop step
Source: Data Source
Target: Request 2 (POST Request2)
7.Entered the ${DataSource#xmldata} in the request content field of Request 2 (POST Request)
Expected
-----------
My requirement is It should Complete the REST POST Operation for first xml(In Directory Data Source) and Return to the Step 1 continue the same Process then Complete POST Operation for second xml
Continue this Process Until the Load Tests Completes.
Actual
--------
Now When I do the Load Testing(3 Total Runs) It is Calling the First xml only Thrice and first xml data only Posted Thrice
am I Clear?
Please find the attached Screen shots for reference to see the Steps I followed
Thanks,
Krish
I followed the Suggestions suggested by soap UI Support.
The Steps,
1. Created REST Request1(GET Request) generated the Id
2.Created REST Request 2 (POST Request)
3.Created the Property Transfer Step and Trasfered the generated ID from step 1 to TestCase Property i.e claim_id
4.Created the Data Source Step with Property name xmldata and used Directory Data Source (with 3 different xml's)
5.In Every Xml Part pf Directory Data Source mentioned
<claim_id>${#TestCase#claim_id}</claim_id>
6.Created the Data Source loop step
Source: Data Source
Target: Request 2 (POST Request2)
7.Entered the ${DataSource#xmldata} in the request content field of Request 2 (POST Request)
Expected
-----------
My requirement is It should Complete the REST POST Operation for first xml(In Directory Data Source) and Return to the Step 1 continue the same Process then Complete POST Operation for second xml
Continue this Process Until the Load Tests Completes.
Actual
--------
Now When I do the Load Testing(3 Total Runs) It is Calling the First xml only Thrice and first xml data only Posted Thrice
am I Clear?
Please find the attached Screen shots for reference to see the Steps I followed
Thanks,
Krish