2017-12-14 11 views
1

私は2つのテストケースでSoapUIでテストスイートを持っています。 例TestSuite1とテストケース1とテストケース2SoapUI Groovy GotoTestStep in other Testcase

TestCase1にはGroovy-TestStep1があります。 のGroovy-TestStep1は

はそれが可能です(Groovyの-TestStep1はTestStep4を実行しないTestStep4に行く必要があります)テストケース2 にTestStep4に行くshoult?

TestCase1 TestStep1(グルービー)

TestCase2 testStep1(HTTPリクエスト) testStep2はTestCase1 TestStep3(HTTPリクエスト) TestStep4((HTTPリクエスト) TestStep5(HTTPリクエスト)

を呼び出します

おかげであなたの答えのためにたくさん

マイケル

+1

あなたは何を使いますか?何をしたいですか ? 「行って走らないでください」 - 説明する? – Rao

答えて

0

で、他のテストスイートでテストステップを呼び出すことができます。あなたは次のようなものを試すことができます:

def otherTestSuite = testRunner.testCase.testSuite.project.getTestSuiteByName("OtherTestSuite") 
def otherTestStep = otherTestSuite.getTestCaseByName("otherTestCase").getTestStepByName("otherTestStep") 
otherTestStep.run (testRunner, context) 
関連する問題