Forum Discussion

sabereshcp's avatar
sabereshcp
Contributor
14 years ago

How to invoke a test step(groovy script) from script assertion

HI,

I wanted to know whether is it possible to call a test step(groovy script) from the script assertion of the test request step. If this can be done please share me the groovy script for the same.


Thanks in Advance,
Saberesh C P

1 Reply

  • wdowling's avatar
    wdowling
    Occasional Contributor
    Given the limited context of the assertion I can't think of a direct solution to this. However as it is possible to get the result of a script step which is causing the script to execute I would suggest that a possible workaround would be to write a script step that causes the execution of a test Step and call context.expand on the script step #result.