Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
Reporting
Raja
Members
Hi,
Is there a way to get the status of each test case and use my own reporting instead of the html log files? How do you do that?
Also, does sahi script allow to run any system commands during the test execution like backing up db before test execution etc. How do you do that?
Thanks, Raja
Is there a way to get the status of each test case and use my own reporting instead of the html log files? How do you do that?
Also, does sahi script allow to run any system commands during the test execution like backing up db before test execution etc. How do you do that?
Thanks, Raja
Comments
But I don't know how to configure Sahi to use it.
JUnit style logs can be generated by passing the below snippet to the ant target.
If you add to the ant target, it will create junit style reports.
Have a look at runfftests target in sahi/demo.xml
Backing up DB should ideally be done before you call the target/batch file for invoking Sahi tests. While you can call commands using _execute, or directly call Java code from Sahi scripts, backing up a database should ideally be done before you invoke any Sahi script. I would suggest you keep it as a separate task from Sahi tests.
Regards,
Narayan