Attach a file to a report or a test run

Tuesday, July 5, 2022
Avatar

Hi,

I am new to using Rapise. We are trying to automate testing on a desktop application. Is there a way to attach a log file from the application under test to a test report in Rapise at the end of a test or a test run in SpiraTest at the end of test execution?

Thanks

Divya

2 Replies
Tuesday, July 5, 2022
Avatar
re: diva512 Tuesday, July 5, 2022

Hi Divya,

Please take a look at this documentation:

https://rapisedoc.inflectra.com/Libraries/SeSReportFile/

Regards

David

Tuesday, July 5, 2022
Avatar
re: inflectra.david Tuesday, July 5, 2022

Hi David, 

Thanks for your quick response. I found this SeSReportFile already and tried to implement it in my test. But it looks like Rapise just skips over this completely. I might not be doing this correctly either. 

    
    var path = 'C:\\New Text Document.txt';

    Tester.Assert("Log file copied", true, [new SeSReportFile(path, "Log file for test")]);

 

I tried using this in Tester.Assert and Tester.Message. Is this correct or is there another way I can use this?

Also, where does the file thus attached get stored?

Thanks!

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, July 5, 2022
  • Last Reply: Tuesday, July 5, 2022
  • Replies: 2
  • Views: 486