question

hkhan avatar image
hkhan asked ericnute edited

Problem creating custom query

I am new to iTest and I am trying to create a custom query for the attached Block response map. I have three Tokens (NP under block1 of container1, CLIENT under block1 of container2 and policy under block2 of container2). I need to find policy based on NP and CLIENT. I tried several combinations, but couldn't achieve it. Can somebody help me here.[link text][1] [1]: /storage/temp/3799-response_map.ffrm
iTestresponse mapblock mapcustom query
response_map.ffrm (184.8 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
JeffJ avatar image
JeffJ answered ericnute edited
Based on your response map, I would modify the XPATH for the query as follows: //np_client_summary[container1/block1/NP="{0}"]/container1/container2[block1/CLIENT="{0}"]/block2/policy Then create two arguments for the NP and CLIENT. That should find the policy based on any combination of NP and CLIENT.
2 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hkhan avatar image hkhan commented ·
Hi Jeff, I tried your suggestion, but doesn't help much. I added the same query in my Response Map as "query1" but it didn't worked. Please find the attached response map. Thanks [link text][1] [1]: /storage/temp/3804-3799-response_map.ffrm
0 Likes 0 ·
JeffJ avatar image JeffJ ♦ commented ·
It appears this is doing as expected. What you may be seeing is that not all combinations are showing up in the Queries View. This is normal as iTest will not display all combinations; however, if you put in the arguments you're looking for, it should return the correct data. If this is not the case, please attach the arguments you desire and the test case that shows the issue and we'll take another look.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.