question

amichaels avatar image
amichaels asked amichaels commented

Is there a way to get multiple queries in a single analysis rule?

Is it possible to use more than 1 query in a single analysis rule? The classic question is for a "display an execution message" analysis rule where I want to print "A is $a and B is $b" Where $a and $b are query values from a response map.
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.

JeffJ avatar image
JeffJ answered amichaels commented
Yes, it's possible. You'll need to use the query action. If you want to query the current response, use a dot "." for the response name. This cannot be done on the "query" step, but can be used on any other step ("assert", "DelcareExecutionIssue", etc.). For example, you may have something like this: ![alt text][1] This is lame example, but you get the idea! [1]: /storage/temp/4293-capture.jpg

capture.jpg (86.8 KiB)
1 comment
10 |950

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

amichaels avatar image amichaels ♦ commented ·
I see what you did there. Thanks!
0 Likes 0 ·
amichaels avatar image
amichaels answered
I don't think this is possible. I believe an analysis rule can only extract a single query. Use multiple queries and store the values, then add a final analysis rule that has "none" as the extractor and "message" as the processor to output multiple query values.
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.