Forum Discussion

Musaffir's avatar
Musaffir
Contributor
8 years ago

Test Steps in the test case is not updated with correct resurce/method

Hello,   I am using soapUI open source version for my rest api testing  I have been experiencing this issue for a while now and couldn't figure out whats wrong .   I have the below structue in m...
  • Musaffir's avatar
    8 years ago

    Hi,

     

    I have figured it why i experienced it . First of all it was my bad :)  Noting it here it it can be helpful to some one

     

    First of all if you see below example

    a) app/services/product

    b) app/services/product?orderBy=name

     

     

    they are basically same resource.... the second one has an additional query parameter

    If you develop 2 different resources for these , and try to generate test cases from it .... soapUI will always consider the first resource only.... so in your second test case... the query parameter 'orderBy' will not be there....

     

    instead always create only one resource with the parameter added...

    using the same resource , you can generate two different test cases... in one you can pass the query parameter and do not pass parameter value in another test case which we will be same as (a) case ..

     

    so you won't get confused that the test step in the test case is not updated with correct resource / parameters

     

    Cheers

    Musaffir