saurabhsharma09
11 years agoContributor
[Res]Run DataSink from Script Assertion
Hello,
I have test steps in sequence as below:-
Groovy Script
POST request
Property DataSink
Groovy script reads multiple files one by one,attach it to the POST request and run POST Request.
I need to save response parameters to DataSink after each POST request and so i want to run Datasink from Script assertion step.
I was able to reach to the DataSink through below statement but couldn't run it:-
def dataSink = context.testCase.testSteps["DataSink"]
Could you please provide me the details how can i run the datasink step as testRunner is not available inside script assertion and i don't know how to run datasink from script assertion through context ?
Thanks,
Saurabh
I have test steps in sequence as below:-
Groovy Script
POST request
Property DataSink
Groovy script reads multiple files one by one,attach it to the POST request and run POST Request.
I need to save response parameters to DataSink after each POST request and so i want to run Datasink from Script assertion step.
I was able to reach to the DataSink through below statement but couldn't run it:-
def dataSink = context.testCase.testSteps["DataSink"]
Could you please provide me the details how can i run the datasink step as testRunner is not available inside script assertion and i don't know how to run datasink from script assertion through context ?
Thanks,
Saurabh