aemcat
16 years agoNew Member
Assert refs to Request message - works sometimes
Using Assertions, I want to compare some response fields to fields in the request (same Test Step)
I am finding that some times my references to request fields work, sometimes they do not.
For now, in my assertion, I am just trying to get the value of a request field to see if it is able to pick it out of the request - not comparing to the response.
WORKS: "Select From Current" correctly returns "1234"
${RequestMsg#Request#//con:Requester/con:RequesterID}
FAILS - this time, try to get RequesterName.
Simply change the ending ID} above to Name}
(both are xsd:string)
${RequestMsg#Request#//con:Requester/con:RequesterName}
ERROR BOX: No match in current response
I can get to
con:ID
con:RequestDateTime -- Well I get an error - doesn't like T09:30:47Z
con:RequesterID
But not
con:RequesterName ERROR BOX: No match in current response
con:MessageTrackingID ERROR BOX: No match in current response
Has anyone else had this problem? Result is I can't do comparisons to some request fields.
<....>
xmlns="http://xyz.com/myservice/message"
...
xmlns:con="http://xyz.com/myservice/data/context">
123
2009-10-11T09:30:47Z
1234
REBO
vcpid_123450001
...
Thanks
I am finding that some times my references to request fields work, sometimes they do not.
For now, in my assertion, I am just trying to get the value of a request field to see if it is able to pick it out of the request - not comparing to the response.
WORKS: "Select From Current" correctly returns "1234"
${RequestMsg#Request#//con:Requester/con:RequesterID}
FAILS - this time, try to get RequesterName.
Simply change the ending ID} above to Name}
(both are xsd:string)
${RequestMsg#Request#//con:Requester/con:RequesterName}
ERROR BOX: No match in current response
I can get to
con:ID
con:RequestDateTime -- Well I get an error - doesn't like T09:30:47Z
con:RequesterID
But not
con:RequesterName ERROR BOX: No match in current response
con:MessageTrackingID ERROR BOX: No match in current response
Has anyone else had this problem? Result is I can't do comparisons to some request fields.
<....>
xmlns="http://xyz.com/myservice/message"
...
xmlns:con="http://xyz.com/myservice/data/context">
...
Thanks