question

acastaner avatar image
acastaner asked ericnute edited

Disabling Response in Reports

Hi,

 

I'm developping a Test Case that require a lot of snapshots of HTML content to use content validation. This of course means that all of the HTML code shows in the "Response" window. I'm interrested in getting this in the Test Case, but not really in the Test Report. So my question is: is it possible to disable the display of the Responses in the Reports?

iTestresults and reporting
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 JeffJ posted

If you're converting your Test Reports to HTML, you can modify the XSLT to remove the reponses or the entire step when the action is "snapshot".  This would then produce an HTML version of the test report without the snapshots.  There is not a step property that omits the snapshots in the XML version of the test report in iTest 3.4.x.

 

Assuming the snapshot action is a debugging step, another option would be to use a parameter and only snapshot the page when in a certain mode.  For example, use a parameter such as "takeSnapshot" then embed the snapshot action in an If-Then statement.  The psuedo code would look something like:

 

if ( takeSnapshot )

then

   snapshot

 

Then if you set the parameter to 1 prior to execution, the snapshot will be taken.  If the parameter is 0, you'll skip the snapshot option.

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.

acastaner avatar image acastaner commented ·

I need the snapshot for visual confirmation of the webpage (GUI testing), as well as to parse the HTML code. It would be a nice feature to have in the report, this way in case of error we could get the Reponse/HTML, otherwise just a screenshot.

0 Likes 0 ·
KumarS avatar image KumarS acastaner commented ·

You should be able to do that in XSL as well. If you see an error execution issue for the step, you can add the response data to the report - otherwise simply the screenshot. If you are not familiar with XSL, there might be consulting companies/contractors who can do this customization work for you. 

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.