question

katyp79 avatar image
katyp79 asked sandeepreddynv answered

Is there a way to query a table and have it check all rows?

I am doing an analysis rule that is looking at a table and iTest wants me to be specific about what line I want it to look at. The line number can easily change so I want it to just search all lines for the specific output. Here is what I am currently doing with the info being in line 1. query policy(1), $value == "blah" Is there a way to do this so it will check all lines until it runs out or finds a match?
iTestresponse map
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

·
sandeepreddynv avatar image
sandeepreddynv answered
It is not possible take whole table as query. Queries are created based on columns and will fetch the values of rows for those columns. As you are saying that iTest should look out for the value in the entire response, we can use Contains action to fulfil this situation. Contains will look for the value that we specified in asset in entire response and will give you the result in boolean format. i.e. will return 1 if it finds the response and 0 if not finds the response. Regards, Venkat
10 |950

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

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.