Forum Discussion

dmulligan_1's avatar
dmulligan_1
Occasional Contributor
12 years ago

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

7 Replies

  • Hi,

    this issue is logged as SOAP-709. It will be prioritized for a future release by our PM and Dev team.

    Thank you for reporting it,
    Michael Giller
    SmartBear Software
  • dmulligan_1's avatar
    dmulligan_1
    Occasional Contributor
    Any status on the fix for this on SOAP-709?
    I do many many datasource lookups on database then you assertions to verify data.
    I'm getting tired of having to manually edit the project xml and changing the <con:sourceId> for each assertion.
    Was hoping it would have been in the last few releases.
    thank you
  • Unfortunately this bug has not been scheduled for release yet, as soon as there is something in place you should be notified.

    Regards,
    Temil
  • dmulligan_1's avatar
    dmulligan_1
    Occasional Contributor
    Hi, I noticed SoapUI Pro 5.1.1 release notes stated this Soap-709 bug was fixed. I was very excited.
    "* Fixed not being able to reconfigure cloned Assertion TestSteps (SOAP-709)"

    But, after loading the above release I still have the same exact issue. See original post on this tread.
    Guess it really wasn't fixed.
  • dmulligan_1's avatar
    dmulligan_1
    Occasional Contributor
    Tried nightly build for today and same issue. The fix did not work.
    1. Create a DataSource step - I was looking up some data in the database using JDBC Connection
    2. Create an Assertion Test Step to validate some of the data retrieved in step one.
    3. Create a new DataSource Step - to retrieve data
    4. Copy above Assertion Test Step to reuse - Datasource step 3 has the same properties
    5. Select the first Assertion in the Assertion test step
    Right click - select "Change Source and Property"
    Select the Source dropdown - There are no DataSource steps available to choose from.
    That's the problem still.
    Thank you
    Lorraine
  • Hi,

    I have opened an internal defect of SOAP-2781 for this. Creating two data sources and an Assertion Test step I am not able to change the Source and Property to the second datasource from the first datasource.



    Regards,
    Marcus
    SmartBear Support