Forum Discussion
jsreesoap
12 years agoContributor
I am wondering whether I can have an assertion in each iteration here. We have some error codes returned based on the input. I want to use one test case with iterations to pass values (like i am doing in the script shown here) to produces the error code and have an assertion to check in each iteration. So in one test case in each iteration I will be checking for a different error code. Could you pls let me know how I can do it?
I am using the below to capture the error code/response.
def responseAsXml = context.expand( '${Method1 - Create a PP-A_A_B#ResponseAsXml#//Fault[1]/e[1]/errorCode[1]}' )
Thanks in advance
I am using the below to capture the error code/response.
def responseAsXml = context.expand( '${Method1 - Create a PP-A_A_B#ResponseAsXml#//Fault[1]/e[1]/errorCode[1]}' )
Thanks in advance