Ask a Question

How to set security parameter

smartnik83
New Contributor

How to set security parameter

I want to setup security test for rest based POST method.

My request looks like below

smartnik83_0-1639573301918.png

Then i add test suite for this method along with security test case.

While adding test param i see this pop-up.

smartnik83_1-1639573549935.png

I am expecting firstname and lastname as param meter name, Can anyone tell me what i am missing.

PFA for my project xml.

 

Kindly have a look at below endpoint and testsuite

smartnik83_2-1639573862425.png

Note : This works beautifully for get request.

 

Regards,

Abhishek

 

 

2 REPLIES 2
nmrao
Champion Level 2

I believe that you can add two case properties say, FIRSTNAME, LASTNAME

 

And use them in the request as

 

{
  "Lastname"  : "${#TestCase#LASTNAME}",
  "Firstname" : "${#TestCase#FIRSTNAME}"
}

And see if you can choose the above two properties.

NOTE: haven't ever tried though.



Regards,
Rao.

Hi, Thanks for your reply.

 

Could you please more specific on adding adding properties. Here is what i am doing with my soap project. 

Adding custom properties in my test case and using them in my request. when i run the request i get exception in response(i guess request is not picking properties define at test case level)

smartnik83_0-1640007175546.png

 

And i don't see them in my security test as param.

smartnik83_1-1640007335933.png

 

Thanks in advance.

cancel
Showing results for 
Search instead for 
Did you mean: