Forum Discussion
TanyaYatskovska
Alumni
12 years agoHi 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");
}