18 January 2026:


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.

Multiple (parallel) tests with Sahi Java Driver (like a suite)

Hi guys,

I've read almost all the related forum topics and documentation. May be I am missing something but I could not find a way to the following:
Assume that I've a piece of Java code which is testing the login mechanism. I have no problem with the code, DB connection, DB query or what so ever. I want to run this code for 3-tuple accounts recorded in the DB synchronously (parallel). If there are 5 accounts, 3 of them wil begin at the same time and the 4th one will begin as soon as one of the 3 finished and so on..

I've tried the following way:
1. I 've pubished the Java code as a jar file (unitProcess.jar)
2. Created a sh file as follows:
#!/bin/bash
java -jar /opt/oracle/Desktop/unitProcess.jar 0 1 0 0
java -jar /opt/oracle/Desktop/unitProcess.jar 1 1 0 1
java -jar /opt/oracle/Desktop/unitProcess.jar 2 1 0 2

In the code above last parameters refer to the browserProfileNumber, I am configuring the Firefox profiles with this parameter in order Firefox not to crash. However, the 2nd line waits for the 1st line to finish. I cannot run them synchronously (parallel).

I have also looked at the Junit integration, but it seems like the same problem exits there. It is expressed in the net that I have to use some extra library (ie. tempus-fugit) in order to run parallel Junit tests. There are other libraries offered like TestNG, Gridgain etc.. But I don't wanna get stuck in those muds..

Any ideas will be appriciated...?

PS: OS = SLES10SP2, Browser = Firefox, Sahi Version = v35_20110709

Comments

  • Hi Jack's_Smirking_Revenge ,

    As of now you cannot run parallel Junit tests. You may find this in the future releases.

    Regards
    Sumitra
Sign In or Register to comment.