Category: Testing
Java SE: Unit Testing CDI with JUnit and JBoss Weld SE
In this tutorial we will show you how to use Java EE Context Dependency Injection in a Java SE environment by Unit Testing CDI with JUnit and JBoss Weld. To enable CDI in our...
Capturing ScreenShots Failed Selenium Test Cases
In this example we will show you how to capture screenshots failed selenium test cases. It can be quite tricky to see why a selenium test has failed. That’s why it is also great...
How to implement RunListener a JUnit Listener example
In this example we will show you how you can add a JUnit Listener to your test cases. This JUnit Listener can listen to events of JUnit lifecycle. We can add this listener by...
Selenium Record Video with JUnit in Java
In this example we show you how you can record a video of selenium test cases in java. This way you can watch how your selenium tests are performing. If you sun your selenium...
Taking a Selenium ScreenShot with JUnit in Java
In this example we will show you how you can take a selenium screenshot whenever you desire. Selenium has a built in ScreenShot function. This allows the developer to take screenshots of the selenium...
Selenium FireFox WebDriver Test Cases with JUnit in Java
In this example we will show you how to run Selenium FireFox WebDriver Test Cases with JUnit in Java. Most of the time the default installation of firefox is picked up. But when you...
Selenium Chrome WebDriver Test Cases with JUnit in Java
In this example we will show you how to run Selenium Chrome WebDriver Test Cases with JUnit in Java. In order to run Selenium Chrome Test Cases you need the ChromeDriver which you can...
Skip Unit Tests in Maven
To skip unit tests you can configure maven with surefire plugin to completely skip your unit tests or selectively skip your unit tests, based on criteria. We also explain the two options when disabling...
Run JUnit tests in Parallel using Maven Surefire Plugin
We will show you a solution to run your JUnit tests in parallel. This can be accomplished by using maven sure fire plugin. You can configure the surefire plugin to use differenct strategies. WarningIf...