Cleaning data in security test
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2011
01:43 AM
11-11-2011
01:43 AM
Cleaning data in security test
Hi, how I can add some clean script after each request which was made by security scan ? Each request add to my database some data and when I didnt clean data other requests end with fault
thx
thx
5 REPLIES 5
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2011
04:40 AM
11-15-2011
04:40 AM
Hi!
hmm.. I think you would have to create a SecurityTestRunListener.afterSecurityScanRequest handler that would manually submit the desired request for cleaning up.. does that sound like a good option?
regards!
/Ole
SmartBear Software
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
hmm.. I think you would have to create a SecurityTestRunListener.afterSecurityScanRequest handler that would manually submit the desired request for cleaning up.. does that sound like a good option?
regards!
/Ole
SmartBear Software
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2011
02:35 AM
11-16-2011
02:35 AM
hm this sounds very hard. Can you show me some tutorial how I can create this ?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2011
06:05 AM
11-17-2011
06:05 AM
Hi,
sure.. do as follows;
1) Prepare the request you want to submit to clear the data as a standard request under the corresponding operation/interface in your project
2) Add a SecurityTestRunListener.afterSecurityScanRequest handler to your project (in the project window), with the following content:
// get the request
def request = testRunner.testCase.testSuite.project.interfaces["your interface"].operations["your operation"].getRequestByName( "your request" )
// submit it and wait for it to finish
request.submit( null, false )
Does that work ok?
regards!
/Ole
SmartBear Software
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
sure.. do as follows;
1) Prepare the request you want to submit to clear the data as a standard request under the corresponding operation/interface in your project
2) Add a SecurityTestRunListener.afterSecurityScanRequest handler to your project (in the project window), with the following content:
// get the request
def request = testRunner.testCase.testSuite.project.interfaces["your interface"].operations["your operation"].getRequestByName( "your request" )
// submit it and wait for it to finish
request.submit( null, false )
Does that work ok?
regards!
/Ole
SmartBear Software
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2011
04:05 AM
11-18-2011
04:05 AM
and whereI can found SecurityTestRunListener.afterSecurityScanRequest handler in my project ? whe should I click or something
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2011
04:24 AM
11-18-2011
04:24 AM
Hi!
Click on the project node and go to the events tab - you can read more about handlers at http://soapui.org/Scripting-Properties/ ... dlers.html
regards,
/Ole
SmartBear Software
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Click on the project node and go to the events tab - you can read more about handlers at http://soapui.org/Scripting-Properties/ ... dlers.html
regards,
/Ole
SmartBear Software
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
