dmulligan_1
12 years agoOccasional Contributor
Assertion Step - Cannot Change Source/Property
Hi ALL,
Had this issue in 4.6.0, was hoping it would have been caught and fixed in 4.6.1, but it wasn't. Here are the steps.
1. Create TestCase with Test Requests.
Wanted to verify data was persisted to database correctly so..
2. Added a DataSource step to lookup data in database. Used Data Connection - JDBC which retrieved data just fine.
3. Added a Assertion Step to check each data field. Selected the DataSource step (step 2) from the source dropdown. The Source dropdown included all the test requests and datasource steps I added so far in the Test Case. Added each Property to verify for each field returned from the database.
So far, all is good - DataSource step and new Assertion step work fine.
4. Added another Test Request.
5. Added another DataSource step to lookup data from database for this test request.
6. COPY the Assertion step used above (step 3), since in my test all the assertions properties are the same so why create it from scratch.
7. Selected one of the assertion step, Right Click and select "Change Source and Property" to change it to the new DataSource from step 5.
Here is the problem, when I am prompted to select "Source" the DataSource steps no longer appear in the dropdown. Only Test Requests show. DataSource steps appeared when I create a new Assertion step, but they don't appear if I copy an existing assertion step and try to change the source.
This is a minor issue, just irritating.
Thank you in advance.
Lorraine
Had this issue in 4.6.0, was hoping it would have been caught and fixed in 4.6.1, but it wasn't. Here are the steps.
1. Create TestCase with Test Requests.
Wanted to verify data was persisted to database correctly so..
2. Added a DataSource step to lookup data in database. Used Data Connection - JDBC which retrieved data just fine.
3. Added a Assertion Step to check each data field. Selected the DataSource step (step 2) from the source dropdown. The Source dropdown included all the test requests and datasource steps I added so far in the Test Case. Added each Property to verify for each field returned from the database.
So far, all is good - DataSource step and new Assertion step work fine.
4. Added another Test Request.
5. Added another DataSource step to lookup data from database for this test request.
6. COPY the Assertion step used above (step 3), since in my test all the assertions properties are the same so why create it from scratch.
7. Selected one of the assertion step, Right Click and select "Change Source and Property" to change it to the new DataSource from step 5.
Here is the problem, when I am prompted to select "Source" the DataSource steps no longer appear in the dropdown. Only Test Requests show. DataSource steps appeared when I create a new Assertion step, but they don't appear if I copy an existing assertion step and try to change the source.
This is a minor issue, just irritating.
Thank you in advance.
Lorraine