question

kmd6076 avatar image
kmd6076 asked nagesh_gm edited

Pattern mapping for analysis rule ok in UI but fails in iTestRT

I am validating information returned from a 'curl -v' command and included in the response in the certificate info for the site. In the iTest gui I created an analysis rule and the token in the response is properly detected and validated. I exported my test cases and dependent files to an iTar file and executed the test case with itestrt and the same analysis rule fails with a 'no matches found'. My only thought is that itestrt is not properly parsing the response. Any ideas why this would work in the gui but not itestrt? Thanks.![alt text][1] [1]: /storage/temp/3461-cert_city_ui.jpg
iTestiTest Runtime (itestrt)
cert_city_ui.jpg (26.3 KiB)
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.

kmd6076 avatar image kmd6076 commented ·
Here are the analysis rule and data that is seen when executed from UI.![alt text][1] [1]: /storage/temp/3463-cert_city_responsedata.jpg
0 Likes 0 ·
nagesh_gm avatar image nagesh_gm commented ·
Hi Ken, could you please provide both test reports generated in iTestGUI and iTestRT. Regards, Nagesh
0 Likes 0 ·
kmd6076 avatar image
kmd6076 answered
Before each execution, I have exported the test case and dependent files to the iTar file and the issue is still present. What I noticed is that the response data from the curl request contains a "\\t" and wraps to the next line when executed in itestrt but does not contain these characters and does not wrap when executed from the UI. Both of these differences are impacting the response map I created based on the response seen when executed from the UI.![alt text][1] [1]: /storage/temp/3466-cert_city_slash_t.jpg

cert_city_slash_t.jpg (136.7 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.

kmd6076 avatar image kmd6076 commented ·
In my response map I accommodated for the \\t text in the itestrt response but also had to increase the terminal width when the session was opened so the line didn't wrap and the pattern match was applied. The proper output is now being seen.
0 Likes 0 ·
nagesh_gm avatar image
nagesh_gm answered
Hi Ken Doherty, I have tried the same scenario using different example as you mentioned but it is working fine for me. I would like to suggest a point here. 1. Please make sure that you exported the project into itar file after making any changes to the test-case in GUI Please let me know how it goes. Regards, Nagesh
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.