Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi,
The proper order of your TestSteps should be:
DataSource
Method 1 - Get Request 1
Property Transfer
Method 2 - Post Request 1
DataSource Loop (DataSource Step should be DataSource, Target Step should be Method 1 - Get Request 1)
The reason for this is so that the frist step that is run is the DataSource, initializing the test.
Then, the GET request is executed after that, generating a new claim_id. Now, the Property Transfer copies the claim_id into the TestCase, and after that the POST request is sent, using data from the DataSource and the claim_id from the TestCase. Finally, the DataSource Loop will increment the DataSource to the next row, and jump back to the GET request to generate a new claim_id, and so on, until all files in the directory have been sent.
Please try reordering your teststeps as I've outlined, and make sure the DataSource Loop configuration is correct.
Regards,
Dain
SmartBear Sweden
The proper order of your TestSteps should be:
DataSource
Method 1 - Get Request 1
Property Transfer
Method 2 - Post Request 1
DataSource Loop (DataSource Step should be DataSource, Target Step should be Method 1 - Get Request 1)
The reason for this is so that the frist step that is run is the DataSource, initializing the test.
Then, the GET request is executed after that, generating a new claim_id. Now, the Property Transfer copies the claim_id into the TestCase, and after that the POST request is sent, using data from the DataSource and the claim_id from the TestCase. Finally, the DataSource Loop will increment the DataSource to the next row, and jump back to the GET request to generate a new claim_id, and so on, until all files in the directory have been sent.
Please try reordering your teststeps as I've outlined, and make sure the DataSource Loop configuration is correct.
Regards,
Dain
SmartBear Sweden