capture Screenshot

Ranorex Spy, Recorder, and Studio.
cruzez
Posts: 24
Joined: Thu Jan 27, 2011 3:03 am
Location: London, UK

capture Screenshot

Post by cruzez » Fri Sep 05, 2014 12:36 pm

Ranorex creates screenshots for failed test steps.

How can I add to my specific test steps?

for ex: if i have code Xpath.Waitforexist, or Validate etc
I would to take a screenshot and attach to report as Succes[evidence] similarly the way Ranorex does for failures.

cheers

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: capture Screenshot

Post by krstcs » Fri Sep 05, 2014 2:09 pm

Use the Report -> Screenshot action in the action table, or the Report.Screenshot() method in user-code.

http://www.ranorex.com/Documentation/Ra ... enshot.htm
Shortcuts usually aren't...