ATF Screenshot

rtrr
Kilo Contributor

Hi,

How to take the screenshot of every steps even the bottom of page where there are the tabs in incident for example I need evidences from note section the screenshot is taken only the form until sgort description button as the image

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

There's no way to automatically control this from what I can see.  You can simply control whether or not screenshots are taken, but not which part of the screen is captured.

https://docs.servicenow.com/bundle/kingston-application-development/page/administer/auto-test-framew...

The screenshot capture simply captures whatever happens to be up in the execution frame in the test runner window during the test (which is always the top of the form).  If you want to have it capture a different part of the form you can manually scroll in the execution frame so that the part you want captured is in view.  It is a manual process, but it is possible.

View solution in original post

6 REPLIES 6

This is very helpful! 

Daniel Draes
ServiceNow Employee
ServiceNow Employee

Just following up on this old thread... 🙂

 

With the release of Rome we did add new properties to control screenshots taken by ATF. The one relevant for here would be this one:

 

Enable capturing the full page when taking a screenshot

sn_atf.screenshots.capture_full_page

Enables dynamic resizing of the test frame and capturing the full page while taking a screenshot.
Note: By default, the property is set to false because it can significantly slow test execution time
Note: If the property is disabled, only the portion of the page that is visible in the test frame is captured.

Taken from Properties | ServiceNow Docs