Service Virtualization

  • 1.  How to loop Rest API step till condition met true?

    Posted Dec 28, 2017 06:54 AM

    I have a two step.

    step1 : hit API and extract list of id say N number of id

    step2 : hit second API N times by passing id one by one.



  • 2.  Re: How to loop Rest API step till condition met true?

    Broadcom Employee
    Posted Dec 28, 2017 09:37 AM

    What version of DevTest are you on?



  • 3.  Re: How to loop Rest API step till condition met true?

    Posted Dec 29, 2017 01:12 AM

    Thank you for reply my DevTest version is 10.0.0



  • 4.  Re: How to loop Rest API step till condition met true?
    Best Answer

    Broadcom Employee
    Posted Dec 29, 2017 09:12 AM

    What you might be able to do is save all of the IDs from the first step to a dataset and then have that dataset be input to the second step for looping.  Or you might be able to put the second step in a sub process and loop there.

     

    Refer to these documentation links:

    Branching and Looping in a Test Case - DevTest Solutions - 10.0 - CA Technologies Documentation 

    Building Subprocesses - DevTest Solutions - 10.0 - CA Technologies Documentation 

     

    Hope this helps.