Forum Discussion
TanyaYatskovska
10 years agoSmartBear Alumni (Retired)
Hi Anik,
It's impossible to change this option at run time. However, you can create your own function to post an image to the Test Log and call it from any place when executing the test. For example, you can call this function from the OnLogError event handler.
Here is the sample in JScript:
function postImage()
{
var picture = Sys.Desktop.Picture();
Log.Picture(picture, "Some text");
}
It's impossible to change this option at run time. However, you can create your own function to post an image to the Test Log and call it from any place when executing the test. For example, you can call this function from the OnLogError event handler.
Here is the sample in JScript:
function postImage()
{
var picture = Sys.Desktop.Picture();
Log.Picture(picture, "Some text");
}
Related Content
- 4 years agoSuperTester
- 5 months agommaloney
- 3 years agoLRuoc