Forum Discussion

keerthm's avatar
keerthm
Frequent Visitor
3 years ago
Solved

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!!

  • 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

2 Replies

  • TNeuschwanger's avatar
    TNeuschwanger
    Champion Level 1

    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