Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi,
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
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