import com.eviware.soapui.SoapUI
import com.eviware.soapui.settings.HttpSettings
import com.eviware.soapui.model.testsuite.TestStepResult.TestStepStatus

// get the settings 
def settings = SoapUI.getSettings();
// save the possible previous timeout
def bk_timeout = settings.getString(HttpSettings.SOCKET_TIMEOUT,"");
// set the new timeout... in your case 5 minutes in miliseconds
settings.setString(HttpSettings.SOCKET_TIMEOUT,"300000");
// save the new settings 
SoapUI.saveSettings();

// get the testStep by name
def testStep = testRunner.testCase.getTestStepByName('Test Request')
// run it
def result = testStep.run( testRunner, context )
if( result.status == TestStepStatus.OK )
{
    // ... if all ok    
}

相关文章:

  • 2021-11-27
  • 2021-11-24
  • 2021-11-16
  • 2022-01-12
  • 2021-12-19
  • 2022-02-03
  • 2021-10-05
猜你喜欢
  • 2021-10-30
  • 2021-09-12
  • 2022-12-23
  • 2021-08-05
  • 2022-01-10
  • 2022-01-13
  • 2022-12-23
相关资源
相似解决方案