我在SoapUI中有一个带有2个TestCases的Testsuite。 例如TestSuite1与Testcase 1和TestCase 2
TestCase1有一个Groovy-TestStep1。 Groovy-TestStep1应该转到TestCase 2中的TestStep4 (Groovy-TestStep1应该转到TestStep4而不是运行TestStep4)
有可能吗?
TestCase1 TestStep1(groovy)
TestCase2 testStep1(http-request) testStep2调用TestCase1 TestStep3(http请求) TestStep4((http请求) TestStep5(http-Request)
非常感谢您的回答
迈克尔
答案 0 :(得分:0)
可以调用其他测试套件中的测试步骤。你可以尝试类似的东西:
def otherTestSuite = testRunner.testCase.testSuite.project.getTestSuiteByName("OtherTestSuite")
def otherTestStep = otherTestSuite.getTestCaseByName("otherTestCase").getTestStepByName("otherTestStep")
otherTestStep.run (testRunner, context)