Forum Discussion

endorium's avatar
endorium
Frequent Contributor
5 years ago
Solved

Cannot get parameter to pass through

I have a test shown in the screenshot. Its data driven and requires several API's to be hit to collect the right ID's to then make the final request. In the below code (From the parameters groovy st...
  • richie's avatar
    5 years ago

    Hey endorium 

     

    in the line 

    assert context.'${GetTest#Response}', 'Response is empty or null'
    //def json = new groovy.json.JsonSlurper().parseText(context.response)

    aren't you missing the word a word after 'context.' in the assertion?

     

    e.g.

     

    assert context.expand('${GetTest#Response}'), 'Response is empty or null'
    //def json = new groovy.json.JsonSlurper().parseText(context.response)

    ??

     

    ta,

     

    rich