5.3 will support paralell :
https://junit.org/junit5/docs/snapshot/user-guide/index.html#writing-tests-parallel-execution

I currently have a suite of using Junit 5.2 and Grid. I have 2x client machines connected to my hub, client A running IE and client B running chrome. Right now I can only execute a single test run on a single client at any one time. If I want to test on IE, then I use the driver object configured for IE (uses client machine A). If I want to use chrome, I have to change the driver object to use chrome (uses client machine B) etc. For example:

public class TestBase {

@BeforeEach
public void setUp {
        driver = new RemoteWebDriver(new URL("http://192.168.0.2:4444/wd/hub"), DesiredCapabilities.internetExplorer());
        //driver = new RemoteWebDriver(new URL("http://192.168.0.2:4444/wd/hub"), DesiredCapabilities.chrome());

        //login to application
        login.Submit();
}

@AfterEach
public void tearDown(){
    driver.quit
}
}

class TestCase1 extends TestBase {
    @Test
    void test {
        //performs test steps
    }

}

I wish to be able to execute the same test run on both my clients concurrently. Is this possible and if so how can I achieve this with my current configuration? I have hundereds of “TestCase” classes so any parameters etc would need to be added to my TestBase.



Source link https://sqa.stackexchange.com/questions/35055/-execution-of-selenium-test-cases-using-junit-5-3

LEAVE A REPLY

Please enter your comment!
Please enter your name here