SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    New Member
    Join Date
    Oct 2009
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    SOAPUI - is it possible to use DataSource Loop that having different test result

    Hi All,

    Kindly advice... now i created 1 test case with some Assertions created, 1 data source (with 14 test data)
    when i try to execute the data source loop. It will pass for first test step, but when it loop to second step, it will failed and stop due to the assertions is different.

    example:
    Step 1 -> expected result = assertions contain 1
    step 2 -> expected result = assertions contain 2...
    but so far my test case only having assertions contain 1. Hence, it will failed and stop at step 2 due to assertions does not contain 2.

    So, wondering is it possible to create different set of assertions for step 2, and another set of assertions for step 3 and so on and so on?

    Kindly advice and thanks in advance.

  2. #2
    Advanced Member
    Join Date
    May 2005
    Location
    Fremont, CA
    Posts
    832
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Do not hard-code your assertion. Use the value of the data source. I haven't used SoapUI in a while, but I believe that your DataSource can have multiple values returned to the test. So, you can have a value for iteration number and value for your test input. After that, in your assertion, assert your iteration number.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:30 PM.

Copyright BetaSoft Inc.