top of page

READ THE BLOG
Search
- Jun 9, 2014
- 4 min
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...


- Jun 9, 2014
- 2 min
TestNG custom listeners: ITestListener
For a better understanding of what these two types can offer, the following references should be read: http://testng.org/javadocs/org/t...


- May 5, 2014
- 2 min
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...


- Mar 1, 2014
- 4 min
Running TestNG tests
Running TestNG tests can be done in two ways: either directly from the IDE (by selecting the desired tests and choosing to 'Run TestNG...


- Feb 27, 2014
- 2 min
Common Selenium exceptions
org.openqa.selenium.NoSuchElementException: this is probably the most common exception you will run into when creating Selenium tests....


- Feb 27, 2014
- 3 min
Waiting for UI events
Selenium has a mechanism of waiting for the page to load, for those situations when an action causes a page refresh. In this case, if the...


- Feb 27, 2014
- 4 min
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...


- Feb 27, 2014
- 2 min
TestNG @Test attributes
description: a string that gives information about the test it is attached to. timeOut: this is the maximum number of milliseconds for a...


- Feb 27, 2014
- 3 min
TestNG annotations
Tests written with the TestNG framework need to be annotated properly in order to be recognized as tests. A Java class will contain...


- Feb 25, 2014
- 5 min
Creating the page objects
What is a page object Simply put, a page object is an object that Selenium uses as a representation of an HTML element. Selenium tests...


- Feb 25, 2014
- 3 min
CSS Selectors
Identifying HTML elements in order to interact with them within you tests can be done by using CSS Selectors, which use pattern matching...


- Feb 25, 2014
- 1 min
XPATH selectors
Select a node by its name: nodename. Example: if the node is an h3 element, the selector is: h3. Select all the nodes that have a certain...


- Feb 22, 2014
- 2 min
Setting up the Selenium bits
After the project is created, you need to setup the Selenium dependency, in order to use the library's functionality. Make sure you...


- Feb 22, 2014
- 4 min
Create the Maven profile for running tests.
After the project has been created, you will need to decide how you want your automated tests to run. Keeping in mind that developers...


- Feb 20, 2014
- 3 min
Import the testing dependencies
How this works is that upon project compilation (when you run the 'mvn clean install' command), Maven will search in the repository it...
bottom of page