18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Code coverage using Sahi junits
Hi
we are using Sahi to write junits for web-based components. But we cannot find a way to get check coverage of the test class. For other junits (non-Sahi) we use Cobertura for checking the coverage. Is there a way to check covered java classes for a Sahi test method?
we are using Sahi to write junits for web-based components. But we cannot find a way to get check coverage of the test class. For other junits (non-Sahi) we use Cobertura for checking the coverage. Is there a way to check covered java classes for a Sahi test method?
Comments
Sahi tests run in a separate JVM than the application JVM. I think you will need to hook in Cobertura to your app server process, and then run Sahi tests and somehow correlate them.
Regards,
Narayan