Forum Discussion
deepesh_jain
15 years agoFrequent Contributor
Hello Pallavi,
If the test suites are in the same project and you can use it like below. Remember this code will have to be written in a Groovy script from Test_Suite_2 to access Test_Suite_1:
Regards,
Deepesh Jain
If the test suites are in the same project and you can use it like below. Remember this code will have to be written in a Groovy script from Test_Suite_2 to access Test_Suite_1:
def project = testRunner.testCase.testSuite.project ;
def tcase = project.testSuites["Test_Suite_1"].testCases["Test_Case_A"] ;
def tstep = tcase.getTestStepByName("Test_Step_X");
def response_test_suite_1 = tstep.getProperty("response");
// You can also access individual nodes now from the response you imported like below:
def gutils = new com.eviware.soapui.support.GroovyUtils( context );
def holder = gutils.getXmlHolder("$response_test_suite_1");
def a = holder.getNodeValue("your_xml_xpath_here");
Regards,
Deepesh Jain