Screenshot

Keyword: CAPTURESCREENSHOT

Description: This keyword or action instructs ICE to capture the screenshot (current screen in foreground in desktop will be captured).

Keyword

Input Syntax

Output Syntax

Supported Input Formats

captureScreenshot

<Input file path>

NA

  • Text

  • Static values/ Dynamic variables

Note:

  1. This keyword captures the screenshot of the current screen which is in foreground. Hence please make sure that the AUT is on top.

  2. If the input is not specified or invalid, the tool will save the screenshot in the path specified in the configuration file of the server.

Find the snippet of the keyword below:

In the above example after the test case debug, the image “Test.png” will be saved in the location “D:\CaptureScreenshot” and “True” will be stored in {result} variable, else {False}.

Last updated