Ask a Question

Is there any way to export script assertion output in logOutput to a file?(not from script log)

SOLVED
keerthm
Frequent Visitor

Is there any way to export script assertion output in logOutput to a file?(not from script log)

Im trying to get script assertion output information and store in a separate file. I was able to get script log but i need to get each and every script assertion logs separately in project and export to a separate file.

 


Thanks in Advance!!

2 REPLIES 2
sonya_m
SmartBear Alumni (Retired)

Thank you for starting this community thread! Let's ask some community members, they might be able to help.

 

Hi @TNeuschwanger @nmrao @HimanshuTayal @aaronpliu, could you take a look? 


Sonya Mihaljova
Community and Education Specialist

TNeuschwanger
Community Leader

Hello @keerthm 

 

I don't think there is a smartbear provided mechanism to do that.  You will need to write some groovy code. Since you have script assertions, could you add some code in the script assertion to write to a specific file?

 

Since you can get script log, after running project you could have a helper script that reads the log file and parses out each and every script assertion into separate files.

 

Regards,

Todd

cancel
Showing results for 
Search instead for 
Did you mean: