Attach printscreen to Log.Checkpoint
The only way I can post a printscreen of the entire screen is this way:
Log.Picture(Sys.Desktop.Picture(), "OK Message");
Reading the documentation of Checkpoint method (https://support.smartbear.com/testcomplete/docs/reference/project-objects/test-log/log/checkpoint.html), I try this:
Log.Checkpoint("OK Message",Sys.Desktop.Picture()), but nothing show in the Tab Picture
what is the correct way to take a screenshot of the screen to put in the Log.Checkpoint () method?
I already try this, but get the error: Unexpected Token ,
I confused, I thought the method would be able to detect the type of the object, because besides the one you commented on, I tried to pass blank strings and get runtime error. I didn't notice the other default values on the right side of the table.
Log.Checkpoint("OK Message","","","",Sys.Desktop.Picture()) -- get JavaScript runtime error.
I solved using null, and only the priority need the parameter: pmNormal or any integer and the picture object or method which return a picture object.
Log.Checkpoint("OK Message",null,pmNormal,null,Aliases.myApp.Picture())Log.Checkpoint(null,null,pmNormal,null,Aliases.myApp.Picture())