Forum Discussion
- 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 - RJanecekRegular Contributorhm this sounds very hard. Can you show me some tutorial how I can create this ?
- 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 - RJanecekRegular Contributorand whereI can found SecurityTestRunListener.afterSecurityScanRequest handler in my project ? whe should I click or something
- 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