Quick Tip: Running automated tests in parallel

The What I have a bunch of tests that i would like to run faster, by making them execute in parallel. In my tests: I am not using a DataProvider and only want to make the same test run several times. I am using a DataProvider and want my test to run with the provided… Read More

Quick Tip: Selenium – select / deselect a value from a dropdown

The What Having an HTML dropdown on a web page, i would like to select, via Selenium, an element from it, or deselect the selected one. An example of an HTML representation of a dropdown can be found below – it displays a list of winter months: <select id=”winter”> <option value=”Dec”>December</option> <option value=”Jan”>January</option> <option value=”Feb”>February</option>… Read More

A few developer principles that testers should follow

I’m thinking you should, in no particular order… Start from the basic . When learning a new language, start from the beginning. Understand the elementary notions of it. Make sure you know what the language represents, what it is used for, how to write it properly. Read the tutorials, try out the examples. Be lazy.… Read More

Useful: working with files and folders with FileUtils

When it comes to working with files (reading or writing their content, copying) or folders (copying their content, deleting them), the Apache FileUtils library offers a large number of methods for easily performing these tasks. Some of these are depicted below, together with their usage. For the full reference, check out this page: . Importing… Read More

Useful: generating random strings with RandomStringUtils

When writing tests that require the generation of random strings, a very useful class can come in handy, namely RandomStringUtils from the Apache Commons Langs utilities library. It can be used for generating string that contain only letters, only numbers, both, these and other characters.

Run tests on multiple browsers

Running tests on multiple browsers helps ensure that the behavior and look of your application is consistent for all your users. Selenium offers the possibility to use most common browsers to run your tests against. However, if your application needs to run also on mobile devices, from within their browsers (not from within native applications… Read More