This post is a list of 100 tips about Java and Testing tools. The tips are composed of the following tools and will be posted in this order:
- Selenium WebDriver
Every day I will post on my Twitter and LinkedIn account one tip for you.
This page is updated weekly.
|1||JUnit 5||With JUnit5 you can parameterize your tests using a ValueSource|
|2||Selenium Web||Selenium WebDriver has a Grid-based on Docker images where you can distribute and/or parallelize your web tests|
|3||WireMock||You can run WireMock in different modes: standalone, JUnit 4.x Rule, or through the WireMockServer class|
|4||TestNG||TestNG has an extensively Command Line Parameters to run your tests|
|5||RestAssured||With RestAssured you can configure it to return BigDecimal instead of float or double|
|6||JUnit||You can use Composed Annotation to add more than one action for your tests, like the @Test and a filter using JUnit5|
|7||Selenium WebDriver||Selenium WebDriver needs a binary for the browser you will use|
|8||WireMock||You can easily create a Mock Server with a few lines of code using WireMock|
|9||TestNG||You can create Test Groups to easily filter your test by any category with TestNG|
|10||RestAssured||With RestAssured you can choose between #Jackson, #Jackson2, GSON or Johnzon to use the automatic serialization/deserialization|
|11||JUnit||With JUnit5 you can use @DisplayName to add a custom name during the test execution instead of seeing the test method name.|
|12||Selenium WebDriver||You can locate one or more elements using different locators in Selenium WebDriver|
|13||WireMock||With WireMock you can apply different configurations like network and port bindings, HTTP, proxy, file location, gzip, cors, etc…|
|14||TestNG||You can inject data into your tests using the @Parameter annotation in TestNG|
|15||RestAssured||With RestAssured you can validate your JSON Schema.|
In this link, you can find an example and the additional library to use
|16||JUnit||With JUnit5 you can use Java 8 lambdas inside the assertions|
|17||Selenium WebDriver||You can perform actions like click, type, and drag-and-drop in Selenium WebDriver|
|18||WireMock||You can run WireMock standalone creating service virtualization for your necessity using the jar file or writing Java code|
|19||TestNG||With TestNG, you can add dependency between tests|
|20||RestAssured||With RestAssured you can extract values from the JSON response using the JSON Path|
|21||JUnit||You can use Assumptions on #JUnit5 to assume you are in the expected state/place, like on the dev environment|
|22||Selenium WebDriver||You can manipulate the browser doing actions like navigation, back, forward, refresh and manage different windows in Selenium WebDriver|
|23||WireMock||You can create a Stub using WireMock, adding priority, sending response headers, and specifying the response body to it|
|24||TestNG||You can create tests dynamically using the @Factory annotation in TestNG|
|25||RestAssured||With RestAssured you can extract values from the XML response using the XML Path|
Would like to follow me and see the tips daily? Just click on the social media below.
Would you like to have 5 specific examples?
You can download my eBook 5 Tools Java Developers Can Use To Deliver High-Quality Software.