Forum Discussion

googleid_118035's avatar
googleid_118035
Contributor
11 years ago

Does its possible to post an desktop screenshot with an message to the log.

Hi All,



I want to post an desktop screenshot with an message to the log, does its possible?



Currently I am doing this,

Log.Message("My results screenshot")

Log.Picture(Sys.Desktop.Picture());



Problem is in the log, its display in two lines.

first line with the message and next line with the screenshot without any message.



I need to see those in single line, which including message and screenshot.

Does its possible?



......................

Thanks

Dev 

2 Replies

  • Hi All, 



    Can use Log.Message() with other method as well.




    Log.Message("MessageText","", pmNormal, null, Sys.Desktop.Picture());


    Log.Checkpoint("Check point message","", pmNormal, null, Sys.Desktop.Picture());


    Log.Warning("Warning message","", pmNormal, null, Sys.Desktop.Picture());


    Log.Error("Error message","", pmNormal, null, Sys.Desktop.Picture());





    My issue been solved.



    .............

    Thanks

    Dev

  • Hi All,



    I just found the solution from following link

    http://smartbear.com/forums/f74/t89334/how-can-i-post-screenshot-and-text-to-the-same/



    Solution is given by Tanya and its solve my issue.



    Log.Message("MessageText","", pmNormal, null, Sys.Desktop.Picture());



    So above solution can use with following method,

    Log.Message()



    Does its possible to use above solution with following log methods?


    Log.Checkpoint()


    Log.Error()


    Log.Warning()



    Or is there any differnce way to do its?



    ......................

    Thanks

    Dev