cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Security Test Request and responses

Highlighted
Contributor

Saving Security Test Request and responses

Hello,

 

Can someone help me on how to save the Security test Rest request and response in the event handler script?

Do I need to add a groovy script assertion to save the response?

5 REPLIES 5
Moderator

Re: Saving Security Test Request and responses

Hi @Asubbiah ,

 

Thanks for creating the topic. 

 

Community, can anyone please suggest Asubbiah how to accomplish this task? 

Thanks in advance for any recommendations.

 


Olga Terentieva
SmartBear Assistant Community Manager

Community Hero

Re: Saving Security Test Request and responses

Hey @Olga_T,

I saw the original post last week so i thought id investigate this cos i expected the script/event handler combo i found on the old soapui help site (which i use to record all my test evidence for my api testing) to record the sec testing too.

Wow....i think i mightve forgotten a couple of fullstops in the last sentence.

Anyway it didnt record anything when i tried.

However as i typed this out ive just realised a possible reason it didnt work, so i'll have look tomorrow to try and resolve.

Ta
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
Community Hero

Re: Saving Security Test Request and responses

Have you checked soapui logs to see if does show any?
What type of Security test are you running?
You try to use tcpmon between soapui and your server to see the same.


Regards,
Rao.
Community Hero

Re: Saving Security Test Request and responses

I had another look with the event hander/script I use to capture the RAW request/response for every step and can confirm the script doesn't record ANYTHING for the sec tests.

 

My script records everything (API related) executed at project, testsuite and testcase level.  If you just execute teststeps, my script doesnt record anything.

 

I noticed that if I highlighted the project level and the project contains normal API test and sec tests associated with a specific testsuite - the sec tests were NOT executed. 

 

This 'I think' this appears to indicate that the sec tests have different action/event handlers underneath the ReadyAPI! covers? As far as I can tell - you have to highlight the sec test itself to execute it - there's no other way of doing it, despite the fact the sec test is associated 

 

 

I executed an example of every sec test and can confirm they write to the HTTP log - but that's it and I didnt have the time to try and work out how to force an error to check if errors are logged.

 

anyway - thats all Ive got!

 

rich

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
Moderator

Re: Saving Security Test Request and responses

Thank you, @nmrao and @richie , you are always there to help! Smiley Happy

 

Any updates, @Asubbiah? We are looking forward to hearing from you.

 

 


Olga Terentieva
SmartBear Assistant Community Manager

New Here?
Join us and watch the welcome video:
Top Kudoed Authors