Contributions
Re: How to call a test step from another project that reads into a property step within that project
Hi Richie, In ProjectA's groovy script, I used this codes def workspace = testRunner.testCase.testSuite.project.getWorkspace(); def ProjB = workspace.getProjectByName(ProjectNameB) def SuitesB = ProjB.getTestSuiteByName(TestSuiteNameB) def CaseB = SuitesB.getTestCaseByName(TestCaseNameB) def Step1 = CaseB.getTestStepByName(TestStepNameB) Step1.run(testRunner,context) whereProjectNameB,TestSuiteNameB,TestCaseNameB and TestStepNameB are all in ProjectB. To add more information for what steps have used, ProjectA - TestSuiteA - TestCaseA -TestStepA(is a groovy script that calls TestStepB in ProjectB) ProjectB - TestSuiteB - TestCaseB -TestStepBProperty is a Property Step -TestStepB(is HTTP request step which reads a property inTestStepBProperty using "${Property in TestStepBProperty}") It is not possible to copy ProjectB to ProjectA because ProjectA is just a Project runner, which can also run other projects. Thank you for spending time with my question.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes1CommentHow to call a test step from another project that reads into a property step within that project
I have two projects. ProjectA(TestStepA ) has a step that calls ProjectB's step (TestStepB ). ProjectB's step (TestStepB )reads into a property step (TestStepBProperty) which is within ProjectB. The problem is, ProjectB's step (TestStepB ) cannot read the property step (TestStepBProperty)eventhough it is in the same project. But, if I am executing TestStepB standalone, it was able to read the property in TestStepBProperty. ProjectA - TestSuiteA - TestCaseA -TestStepA (calls TestStepB in ProjectB) ProjectB - TestSuiteB - TestCaseB -TestStepBProperty -TestStepB(reads TestStepBProperty) Hope you can help me with this.1.3KViews0likes3Comments