:Test Environment:
- Apache Maven 2.2.1
- Java version: 1.6.0_24
- OS name: "Windows XP" version: "5.2"
- Eclipse Version: Helios Release Build id: 20100610-0636
- Selenium RC 1.0.2
About Our Test Framework:
Our test automation framework is Java-based and built on top of JUnit framework. To understand this framework, pre-requisite skills are:
- Understanding of OOP concepts.
- What is Class.
- What is Interface.
- Ability to write simple programs using Java.
- Understanding of JUnit .
- Development with Eclipse.
Selenium-RC (Remote Control) 1.0.2:
Selenium-RC allows the test automation developer to use a programming language for maximum flexibility and extensibility in developing test logic. For instance, if the application under test returns a result set, and if the automated test program needs to run tests on each element in the result set, the programming language’s iteration support can be used to iterate through the result set, calling Selenium commands to run tests on each item.
Selenium-RC provides an API (Application Programming Interface) and library for each of its supported languages: HTML, Java, C#, Perl, PHP, Python, and Ruby. This ability to use Selenium-RC with a high-level programming language to develop test cases also allows the automated testing to be integrated with a project’s automated build environment.
Find the link for further details
http://seleniumhq.org/docs/01_introducing_selenium.html
Maven 2.2.1:
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.
Find the link for further details:
http://maven.apache.org/guides/mini/guide-creating-archetypes.html
How to install selenium RC:
Firstly there is nothing known as installing selenium Remote Control.
RC has to be configured in eclipse Following are the steps:
1) Make sure java and eclipse are installed in your machine.
2) Download the selenium -RC 1.0.2 jar files from selenium site.
(On myt machine selenium rc is downloaded at C:\selenium-remote-control-1.0.2\selenium-server-1.0.3)
3) Include the class files in the project classpath
(Select project in Eclipse. Click file/properties ... write the whole steps here.
List the name of the jar files here.
selenium-server-coreless.jar
selenium-server-sources.jar
selenium-server.jar
4) Make sure JUnit is installed in eclipse.
(How to make sure that?. If it is not installed then how to install it?)
JUnit: What version of junit ?
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing framework.
Find the link for further details:
http://java.sun.com/developer/Books/javaprogramming/ant/ant_chap04.pdf
How to include Maven plug in eclipse:
Installing a Maven Plugin for Eclipse can be a bit tricky if you want to get the whole spectrum of features.
Find the link for further details:
http://www.dotkam.com/2008/02/24/install-maven-plugin-for-eclipse/
Setting up Environment variables:
1. JAVA_HOME = ../java
eg. it is set as follows on my machine:
C:\Program Files\Java\jdk1.6.0_26
2. M2_HOME = ../maven
eg.: c:/apache-maven-2.2.1
3. PATH = ../java/bin;../maven/bin;
e.g. C:\PROGRAM FILES\JAVA\JDK1.6.0_26\BIN; C:\apache-maven-2.2.1\bin
Importing testing project in Eclipse:
1. Open Eclipse
- Click on File -> Import -> Maven -> Existing Maven Project -> Click Next -> Select root directory -> Finish.
- Wait for few second and select imported project and click on Project -> Clean.
How to START / STOP selenium server from command line:
Open command prompt and go to selenium server director and run following command
"java -jar selenium-server.jar -port 4444"
e.g.
cd C:\selenium-remote-control-1.0.2\selenium-server-1.0.3
java -jar selenium-server.jar -port 4444
For STOP:
press CTRL + C from keyboard.
- Apache Maven 2.2.1
- Java version: 1.6.0_24
- OS name: "Windows XP" version: "5.2"
- Eclipse Version: Helios Release Build id: 20100610-0636
- Selenium RC 1.0.2
About Our Test Framework:
Our test automation framework is Java-based and built on top of JUnit framework. To understand this framework, pre-requisite skills are:
- Understanding of OOP concepts.
- What is Class.
- What is Interface.
- Ability to write simple programs using Java.
- Understanding of JUnit .
- Development with Eclipse.
Selenium-RC (Remote Control) 1.0.2:
Selenium-RC allows the test automation developer to use a programming language for maximum flexibility and extensibility in developing test logic. For instance, if the application under test returns a result set, and if the automated test program needs to run tests on each element in the result set, the programming language’s iteration support can be used to iterate through the result set, calling Selenium commands to run tests on each item.
Selenium-RC provides an API (Application Programming Interface) and library for each of its supported languages: HTML, Java, C#, Perl, PHP, Python, and Ruby. This ability to use Selenium-RC with a high-level programming language to develop test cases also allows the automated testing to be integrated with a project’s automated build environment.
Find the link for further details
http://seleniumhq.org/docs/01_introducing_selenium.html
Maven 2.2.1:
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.
Find the link for further details:
http://maven.apache.org/guides/mini/guide-creating-archetypes.html
How to install selenium RC:
Firstly there is nothing known as installing selenium Remote Control.
RC has to be configured in eclipse Following are the steps:
1) Make sure java and eclipse are installed in your machine.
2) Download the selenium -RC 1.0.2 jar files from selenium site.
(On myt machine selenium rc is downloaded at C:\selenium-remote-control-1.0.2\selenium-server-1.0.3)
3) Include the class files in the project classpath
(Select project in Eclipse. Click file/properties ... write the whole steps here.
List the name of the jar files here.
selenium-server-coreless.jar
selenium-server-sources.jar
selenium-server.jar
4) Make sure JUnit is installed in eclipse.
(How to make sure that?. If it is not installed then how to install it?)
JUnit: What version of junit ?
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing framework.
Find the link for further details:
http://java.sun.com/developer/Books/javaprogramming/ant/ant_chap04.pdf
How to include Maven plug in eclipse:
Installing a Maven Plugin for Eclipse can be a bit tricky if you want to get the whole spectrum of features.
Find the link for further details:
http://www.dotkam.com/2008/02/24/install-maven-plugin-for-eclipse/
Setting up Environment variables:
1. JAVA_HOME = ../java
eg. it is set as follows on my machine:
C:\Program Files\Java\jdk1.6.0_26
2. M2_HOME = ../maven
eg.: c:/apache-maven-2.2.1
3. PATH = ../java/bin;../maven/bin;
e.g. C:\PROGRAM FILES\JAVA\JDK1.6.0_26\BIN; C:\apache-maven-2.2.1\bin
Importing testing project in Eclipse:
1. Open Eclipse
- Click on File -> Import -> Maven -> Existing Maven Project -> Click Next -> Select root directory -> Finish.
- Wait for few second and select imported project and click on Project -> Clean.
How to START / STOP selenium server from command line:
Open command prompt and go to selenium server director and run following command
"java -jar selenium-server.jar -port 4444"
e.g.
cd C:\selenium-remote-control-1.0.2\selenium-server-1.0.3
java -jar selenium-server.jar -port 4444
For STOP:
press CTRL + C from keyboard.