Forum Discussion

Alick's avatar
Alick
Occasional Contributor
9 years ago
Solved

I can't work out how to run secure with proper JSON parameters

Hi all

 

I have the tests working fine with soapui (imported from API blueprint), when i try to run them through ReadyAPI secure, there are only 3 parameters being tested with the test values:

 

username

password

request

 

where "Request" seems to be how it recognises the json, so of course all my tests are failing because no actual json is being sent, just a parameter of request with the attack string which doesn't actually exist

 

I've tried the knowledgebase and clicking every option i can find in the UI, does anyone know how I can get it to properly extract the parameters in the json body to cycle through each one for testing?

 

edit: ok so i have to make a ne wplain type parameter. i'm calling it "email", but trying to reference it in the json as ${email} isn't working, but i think i'm getting closer...

 

edit2: that parameter works in the soapui tap but not projects or secure, how do i get secure to be able to insert its values into the json parameters? i think the answer is in the screenshot here: https://community.smartbear.com/t5/SoapUI-NG/Secure-injecting-data-to-a-parameter-in-a-REST-request/td-p/127585 but it's so low-resolution i can't make out how the parameter is referenced. Where is any of this documented? i can't find it anywhere in the docs

Thanks