Forum Discussion

rohitvarsha12's avatar
rohitvarsha12
Contributor
8 years ago

How to save value to Test case Custom Properties and Read REST Request Properties from test step in

Hi,

 

I want to save some values to Custom properties(when I am verifying assertions due to which I am not able to use testrunner).

Also, I want to read value of RESTRequest properties in asertions.

 

Can someone please help

 

 

1 Reply

  • nmrao's avatar
    nmrao
    Champion Level 3

    Use Script Assertion and add the below steps

     

     

    //Get the name of the current test step

    log.info context.currentStepIndex.label

     

    //Get the response

    log.info context.response

     

    //Get the request

    log.info context.rawRequest