Datasource Loop with Script
Hi, i am new in this field. But i have made some test with Ready API and these works fine.
I have a simple question:
I have in my Test 4 Parts.
2. Datasource Loop
3. A Soap Request with Data
4. a Groovy Script to writes the Response Files
How i can put in the Loop my Groovy Script ? These Loops run only with the DatasourceLoopReport and the GetDocument.
The DatasourceLoop step is typically the last step in the sequence.... i may be misunderstanding the purpose of your test but if you alter the sequence of steps as follows, wouldnt this solve thr problem?
GET (SOAP) base64.encoded
Wouldnt the above satisfy and include the decode in the loop or am i missing something?
- Use events feature AfterStep, but save conditionally (i.e.,only if the step name is specific so that it won't write for unwanted steps).
- the script assertion (i understand it is a bit wierd, but it can do the job)
And you wont need the additional groovy script test step.
Thank you so much nmrao and richie!
@stefankranz , did you have a chance to try out the approaches the Community suggests? Please share your progress with us.
Community and Education Specialist