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

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.

Mark Stanger
Giga Sage

Just checking on on this one.  Has this question been answered or is there more information I can help you with?  If it's been answered, please mark the answer above as the correct one so people know this has been taken care of.  Thanks!

Muraj Padannayi
Kilo Contributor

Hello Mark,

I tried to capture the screenshots during execution by scrolling down the form and was able to get results. But the scrolling is hampered by the page auto-scrolling upwards probably when it moves to the next step for execution. Is there some way to control the form so we can scroll to the exact area where we need to capture the screenshot? Thanks.

 

Regards

Muraj  

 

girishkulkarni
ServiceNow Employee
ServiceNow Employee
The screenshot resolution is the size of the Client Test Runner test frame. By default, the test frame is 800px height by 600px width.
 
To change the test frame, add sys_properties records for:
 
ATF Client Test Runner frame width:
name: sn_atf.atf_test_runner.testframe.min_width
value: ####px
 
ATF Client Test Runner frame height:
name: sn_atf.atf_test_runner.testframe.min_height
value: ####px