Forum Discussion

javixeneize's avatar
javixeneize
Contributor
9 years ago

Secure - injecting data to a parameter in a REST request

Hi

 

I have a REST service and my request is as follows

 

{
"serviceHeader": {
"step": "",
"token": ""
},
"params": {
"User": ""
}
}

 

How should i do to map the injection to the field User?

 

I have tried to add in the configuration parameters the xpath $.params.User, but it doesnt work, probably as it is a json

 

Any idea of how could i make this work?

Thanks

3 Replies

  • In Secure Pro, you can create a PLAIN parameter that affects the payload as shown in the screenshot below:

    That parameter can be used to drive the payloads in your Secure Pro tests.

    • javixeneize's avatar
      javixeneize
      Contributor

      Hi

       

      But, to do that, i need to modify the structure of my request to add this new parameter. What i need is, given the screenshot attached, to map the payloads to the field user, but, without adding any extra field to the request