Tag «Selenium»

JUnit 4 – Introduction to “Annotations”

JUnit 4 introduced a new feature called “annotations”.  This helps greatly in automating test cases.  I agree that knowledge of Java programming language can help in implementing a robust test automation framework.  But the testers who don’t have knowledge of Java will be really benefited by “annotations” We will try to understand this feature in …

JUnit 4 – Executing multiple Test Suites

So far we have learnt JUnit 4 from the aspect of running a single test case.  In this post, we will explore how to run multiple test cases with JUnit 4. I am less bothered about how the JUnit is used for unit testing, but my concern is how we can utilize JUnit (referring to …

Running Selenium Tests with JUnit 4

Step 1: Create a new project Java SugarCRMJunitTests in Eclipse as shown in the below figure. Step 2: Right Click newly created Java Project (SugarCRMJunitTests) –> New –> Package –> Give name “SugarTests” Step 3: Right Click SugarTests package –> New –> JUnit Test Case (Select checkboxes SetupBeforeClass, tearDownAfterClass)    –> Give the name as “SugarTestScripts” …

Execute Selenium Test Using Eclipse

We already have configured Selenium Client Driver with Eclipse.  Now, copy the Selenium server into the SeleniumTests folder inside Eclipse-Workspace folder and then create “Selenium-server.bat” file with the following code in it.  Below code should not be copied and pasted into the notepad as “-” (hyphen) is getting saved as a special character and does …

Selenium – Setting up Selenium & Eclipse

Now its time to learn how to configure Selenium RC client driver with Eclipse IDE and how to run Selenium RC server instance.  We will try to understand this step by step. Note: Download JDK ( from the Oracle / Sun website and install prior to installing Eclipse) Download Eclipse Go to URL – http://www.eclipse.org/downloads/ …

Introduction to Selenium

Selenium is a Test Automation tool used for automating Web Applications testing.  Before starting to learn this tool, I strongly recommend downloading any of the Open Source web application from sourceforge.net.  I will be using Sugar CRM for demonstration purposes.  I have chosen this application mainly because this has a free edition.  We can just …