1
2
3
4
5
6
7
8
9
10
11
12
13 package com.eviware.soapui.impl.wsdl.actions.iface.tools.soapui;
14
15 import com.eviware.soapui.SoapUI;
16 import com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest;
17 import com.eviware.soapui.model.ModelItem;
18 import com.eviware.soapui.support.action.SoapUIAction;
19 import com.eviware.soapui.support.action.support.AbstractSoapUIAction;
20
21 public class LoadTestLoadTestRunnerAction extends AbstractSoapUIAction<WsdlLoadTest>
22 {
23 public LoadTestLoadTestRunnerAction()
24 {
25 super( "Launch LoadTestRunner", "Launch the soapUI commandline TestRunner for this TestCase" );
26 }
27
28 public void perform( WsdlLoadTest target, Object param )
29 {
30 SoapUIAction<ModelItem> action = SoapUI.getActionRegistry().getAction( LoadTestRunnerAction.SOAPUI_ACTION_ID );
31 SoapUI.setLaunchedTestRunner( true );
32 action.perform( target.getTestCase().getTestSuite().getProject(), target );
33 }
34 }