Ask a Question

Extracting Picture from logs

TestQA1
Contributor

Extracting Picture from logs

Hi,

 

I have a requirement to store picture from test log whenever an error occurs. So, if an error occurs and there's a 'Has Picture' attribute with an attachment then the event should be able to save the picture attached to that error in a folder.

 

I went through some documentation but its mostly getting all pictures I think.

 

Is there any way I can check with LogParams that there is a picture in 'Has Picture' attribute and then based on it, I can extract the 'Picture' from the bottom section where Pictures, Details and Call Stack exist.

 

Thank you

2 REPLIES 2
rraghvani
Regular Contributor

Are you able to use OnLogPicture Event, which can be called during an OnLogError Event

I will try this. thanks

cancel
Showing results for 
Search instead for 
Did you mean: