如何访问同一测试套件中另一个测试用例的测试步骤请求

How to access the test step request of another test case in the same test suite

我有 1 个测试套件,其中包含 2 个测试用例。在第一个测试用例中,我有一个 SOAP 测试请求。我想访问这个测试请求,我想要这个请求的确切请求! 我用过:

def myTestSuite=testRunner.testCase.testSuite.project.getTestSuiteByName("To internal")
def myTestCase=myTestSuite.getTestCaseByName("Create&Repeat")
def myTestStep=myTestCase.getTestStepByName("create")
log.info (myTestStep.getAssertableContent()) //this step to see what i get

所以,这样我得到的都是响应,但我想要请求!

我该怎么做?

请使用以下代码获取相同测试套件但不同测试用例的测试步骤请求:

GroovyScript:

//Get the test step create which is present in Create&Repeat test case of the same suite
def step = context.testCase.testSuite.testCases['Create&Repeat'].testSteps['create']
log.info step.httpRequest.requestContent