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.
Sah to Junit
Hi,
Is there any way to "translate" sahi script to a junit test case ?
Thanks in adavance,
Regards,
Is there any way to "translate" sahi script to a junit test case ?
Thanks in adavance,
Regards,
Comments
There is no way to translate Sahi script to a junit test case.But you can run the javascripts using junit.
Regards
Sumitra
Rewrite the test, or changing sahi.properties (controller.mode=java) and using the interface ?
Regards,
Kindly follow these urls:
http://www.adempiere.com/PMC:QA:Junit_and_Sahi
http://sahi.co.in/forums/viewtopic.php?id=1442
Regards
Sumitra
I explain why. I still want to convert sahi script to Junit test case to have reporting such as surefire (Maven plugin). So i writed a very basic java code that translate all my sahi script into JUnit Test Case. It's why i ask this question.
Regards,
HadanMarv
If you want reporting like in JUnit, you can ask Sahi to output the script results as JUnit log files.
In your ant target, specify
<report type="junit" logdir="${userdata.dir}/temp/junit"/>
so that it would look something like this:
This will create a folder of JUnit logs for the different scripts, which you can plug into any of your JUnit reporting frameworks.
Regards,
Narayan