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.
Can i integrate Junit test cases with Sahi scripts
Hi Team,
I would like to know if i can integrate Junit test cases with Sahi scripts.
Below is the scenario.
1) I record a script using Sahi Controller where a button is clicked.
2) I have a junit test case for testing the functions after the button is clicked.
3) Can i integrate the above two, so that when i run the recorded script and when the button is clicked, we can get he form values from the webpage and the junit test case gets executed.
In this way i can test the front end and the business layer also.
Please let me know, if this is possible or should i take any other approach.
Thanks,
Chandra
I would like to know if i can integrate Junit test cases with Sahi scripts.
Below is the scenario.
1) I record a script using Sahi Controller where a button is clicked.
2) I have a junit test case for testing the functions after the button is clicked.
3) Can i integrate the above two, so that when i run the recorded script and when the button is clicked, we can get he form values from the webpage and the junit test case gets executed.
In this way i can test the front end and the business layer also.
Please let me know, if this is possible or should i take any other approach.
Thanks,
Chandra
Comments
You could use the java driver of Sahi and do the whole thing as a junit test. http://sahi.co.in/w/java
OR
You could invoke the JUnit testcase using one of its runners from inside a sahi script. This will generate 2 separate logs, so you may need to get them into one place somehow.
http://sahi.co.in/w/sahi-scripting-calling-java
Regards,
Narayan