saras1
13 years agoNew Contributor
Help regarding groovy script with Xpath assertion
Hi,
I am new to SOAPUI and would really appreciate some help. My issue is :
I have a Xpath assertion that i configured and its working for 1 test step in a test suite.
Now, i want to write a groovy script that would insert the similar xpath assertion in all the 470 test steps in that test suite.
my xpath assertion is :
declare namespace ns1='http://*****************/schema/v1_0/complex';
declare namespace ns2='http://*********/schema/v1_0/trillium';
declare namespace ns3='http://***********/soap/v1_0/wtrillium';
//ns3:TrilliumAddress[1]
and in the expected response , i selected : select from current.
Is there a way that i can insert this xpath assertion to all the test steps dynamically?
I am new to SOAPUI and would really appreciate some help. My issue is :
I have a Xpath assertion that i configured and its working for 1 test step in a test suite.
Now, i want to write a groovy script that would insert the similar xpath assertion in all the 470 test steps in that test suite.
my xpath assertion is :
declare namespace ns1='http://*****************/schema/v1_0/complex';
declare namespace ns2='http://*********/schema/v1_0/trillium';
declare namespace ns3='http://***********/soap/v1_0/wtrillium';
//ns3:TrilliumAddress[1]
and in the expected response , i selected : select from current.
Is there a way that i can insert this xpath assertion to all the test steps dynamically?