Questions tagged [junit4]

Introducing the latest iteration of the well-loved Junit Java Unit testing framework - Version 4.

Assist with testing browser compatibility by utilizing Selenium Webdriver

-Once you have completed the cross-browser check using Selenium WebDriver, how can you ensure that the operation is being carried out correctly on each browser? -Furthermore, how can you verify if a web application is supported in all browsers or determin ...

Timing the execution of each step in JUnit

Struggling with a task for the past 2 days that involves running a JUnit test on JMeter. Here's the code snippet: public class LoadTest5 extends TestCase { private WebDriver driver; public LoadTest5(){} public LoadTest5(String testName){ super( ...

Resolving a NullPointerException in Selenium Java JUnit Test Cases

Encountered a puzzling error while running a test in navigateAllMenus.java. When the script tries to locate loginLink, it halts and throws a java.lang.NullPointerException on line 28: _a_LoginPage.loginLink(driver).click();. Despite attempting different x ...

What method does Gradle's java plugin use to execute JUnit tests in parallel: Does it use a single queue with multiple forks, or does it create one queue per fork

I recently decided to give Gradle a try, even though I had no prior experience with it. Surprisingly, I have been able to accomplish what I set out to do and am quite pleased with the outcomes. However, I encountered an issue when running Selenium tests wi ...

The sequence of the selenium tests is not running as expected

Despite using @FixMethodOrder(MethodSorters.NAME_ASCENDING), my tests are not running in the desired order. I have two tests: The first test is named aTest_Login() The second test is named bTest_CreateContact() Occasionally, the second test is executed b ...

What is the best way to execute various test suites based on parameters?

Currently, I have a Selenium testing code running with Junit 4.12 using @RunWith and @Suite annotations. Previously, I ran the test suite with three separate tests on a single machine. However, I now need to run my tests on multiple machines, some of which ...

The command window does not close after running tests in IE with Selenium

We have encountered an issue with our Maven-based Selenium project for GUI testing. Following test execution, Internet Explorer is unable to close the Selenium command window. Despite using selenium.stop(); in the @After method, the command window remains ...