Comparing Responses to Files

reactancexlreactancexl Posts: 78

I have two rest calls. The first one gets 'id's". I populate them in a Writable DS. I loop thru the Writable DS using the id's for the second rest call. I want to validate the response to gold copy files that are in a fileshare (10 id's in writable against 10 JSON). If I use a "File DS" then it will validate against all 10 files each time it loops.
I need a way to correlate which ID's tied to particular file. What is the best way to do this? I am using the "diff" control. thx

Tagged:

Comments

  • jakubiakjakubiak Posts: 214 ✭✭✭

    There are two different things you can try that might work for you:
    1. Modify the data source iteration to be in lock-step: in the test suite editor, go to the Execution Options tab and expand Advanced Options. Change the "Multiple data source iteration" option to "Flat (lockstep)".
    2. Use an Aggregate Data Source that contains the Writable DS and the File DS. The Aggregate will cause the two data sources to behave like a single data source where their rows iterate in lock-step. I'm hoping that this can work for you.
    Hopefully one of these can help solve your problem.

  • reactancexlreactancexl Posts: 78

    Both scenarios worked. thankyou Jakubiak :) :)

Sign In or Register to comment.