vendredi 28 avril 2017

How can i access to another testcase's teststep request?

I have 1 TestsSuite, which contains 2 TestCases. In First TestCase i have a SOAP Test Request. I want to access to this Test Request and i want exactly request of this Request! I used:

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

So, in this way everything I get is response, but I want request!

How can I do that?

Aucun commentaire:

Enregistrer un commentaire