VLiljeb_ck
12 years agoOccasional Contributor
[Res] Compare part of JDBC/SOAP response node with mult..
Hi,
I want to compare a JDBC response with a SOAP response. The nodes I want to compare/assert consists of multiple lines. The tricky part is that I would like to only compare two of the rows not all rows..
In the example below I would like to check that "Number accounts processed" and "Daily count" is the same in JDBC and SOAP response. I tried to use contains assertion but I do not know how to access the JDBC response in the contains assertion and also not only two rows of the JDBC response node... Can anyone assist in which direction I should proceed to solve this? Could groovy scripting solve it? I am new to groovy so before plunging into that area I want to know if somebody thinks that would solve the issue?
JDBC node look like this:
<STATUSTEXT>Number accounts processed: 21534
Daily count: 21534
Daily amount: 220804.12610000148
Monthly count: 0
Monthly amount: 0.0
Yearly count: 0
Yearly amount: 0.0
</STATUSTEXT>
SOAP node look like this:
<STATUSTEXT>Number accounts processed: 21534
Daily count: 21534
Daily amount: 220424.11710000022
Monthly count: 0
Monthly amount: 0.0
Yearly count: 0
Yearly amount: 0.0
</STATUSTEXT>
I want to compare a JDBC response with a SOAP response. The nodes I want to compare/assert consists of multiple lines. The tricky part is that I would like to only compare two of the rows not all rows..
In the example below I would like to check that "Number accounts processed" and "Daily count" is the same in JDBC and SOAP response. I tried to use contains assertion but I do not know how to access the JDBC response in the contains assertion and also not only two rows of the JDBC response node... Can anyone assist in which direction I should proceed to solve this? Could groovy scripting solve it? I am new to groovy so before plunging into that area I want to know if somebody thinks that would solve the issue?
JDBC node look like this:
<STATUSTEXT>Number accounts processed: 21534
Daily count: 21534
Daily amount: 220804.12610000148
Monthly count: 0
Monthly amount: 0.0
Yearly count: 0
Yearly amount: 0.0
</STATUSTEXT>
SOAP node look like this:
<STATUSTEXT>Number accounts processed: 21534
Daily count: 21534
Daily amount: 220424.11710000022
Monthly count: 0
Monthly amount: 0.0
Yearly count: 0
Yearly amount: 0.0
</STATUSTEXT>