Вы находитесь на странице: 1из 21

Home for Software Test Automation eLearning

Table of Contents

Home for Software Test Automation eLearning Table of Contents Java SDK Installation 2 Purpose 2 Is

Java SDK Installation

2

Purpose

2

Is Java Installed on your machine?

2

How to Install Java SDK

2

IDE Installation

6

Firefox Installation

6

Steps to Install IDE

6

Firebug Installation

8

Purpose

8

Steps to Install Firebug

8

Eclipse IDE Installation

Steps to Install Eclipse

ANT Installation

Steps to Install ANT

Call: +1-314-827-5272

to Install Eclipse ANT Installation Steps to Install ANT Call: +1-314-827-5272 12 12 19 19 Email:

12

12

19

19

Email: learn@itelearn.com

Home for Software Test Automation eLearning Java SDK Installation Purpose : To run any of

Home for Software Test Automation eLearning

Java SDK Installation

Purpose: To run any of your Eclipse scripts on Java, JUnit or TestNG, you will need the Java Virtual Machine which is part of the

Java SDK(software development kit).

To check, open command prompt “CMD” (How? Go to Start, Run and type

cmd) and run the following from any directory and type “java” and hit enter. If you get a message like the below screenshot, Java SDK is not installed correctly.

Is Java Installed on your machine?

not installed correctly. Is Java Installed on your machine? How to Install Java SDK Step 1:

How to Install Java SDK

Step 1: Visit Java website http://www.java.com/en/ and click on Free Java Download.

Java website http://www.java.com/en/ and click on Free Java Download. Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

Java website http://www.java.com/en/ and click on Free Java Download. Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 2: Click on “Agree and Start Free Download” button.

Step 2: Click on “Agree and Start Free Download” button. You can use Java 6 version. Next, click on Run button.

You can use Java 6 version. Next, click on Run button. Step 3: Agree to any

Step 3: Agree to any security alerts and then click on “Install” button as shown in the below screenshot.

and then click on “Install” button as shown in the below screenshot. Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

and then click on “Install” button as shown in the below screenshot. Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 4: Installing toolbars or other related promotional products is

Step 4: Installing toolbars or other related promotional products is optional.

toolbars or other related promotional products is optional. Step 5: You will see the final window

Step 5: You will see the final window as below with a confirmation message.

5: You will see the final window as below with a confirmation message. Call: +1-314-827-5272 Email:

Call: +1-314-827-5272

5: You will see the final window as below with a confirmation message. Call: +1-314-827-5272 Email:

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 6: Verify that Java is installed correctly by going

Step 6: Verify that Java is installed correctly by going back to the command prompt and running java on the command line. It should show message like the one below. Now you have Java up and running.

show message like the one below. Now you have Java up and running. Call: +1-314-827-5272 Email:

Call: +1-314-827-5272

show message like the one below. Now you have Java up and running. Call: +1-314-827-5272 Email:

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning IDE Installation Firefox Installation Download and Install Firefox Browser

IDE Installation

Firefox Installation

Download and Install Firefox Browser version 12.0 from Screencast.com)

Steps to Install IDE

Step 1: Visit http://seleniumhq.org/ and click on Download Selenium

http://seleniumhq.org/ and click on Download Selenium Step 2: Download latest IDE “selenium -ide- 1.8.0.xpi”

Step 2: Download latest IDE “selenium-ide-1.8.0.xpi”

Selenium Step 2: Download latest IDE “selenium -ide- 1.8.0.xpi” Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

Selenium Step 2: Download latest IDE “selenium -ide- 1.8.0.xpi” Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Step 3: Complete installation and re-start FireFox

eLearning Step 3: Complete installation and re-start FireFox Step 4: Find the Selenium Add from FireFox
eLearning Step 3: Complete installation and re-start FireFox Step 4: Find the Selenium Add from FireFox

Step 4: Find the Selenium Add from FireFox Menu > Tools > Selenium IDE

Find the Selenium Add from FireFox Menu > Tools > Selenium IDE Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

Find the Selenium Add from FireFox Menu > Tools > Selenium IDE Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Firebug Installation Purpose : Will help to inspect elements, edit

Firebug Installation

Purpose: Will help to inspect elements, edit web pages and capture xPaths.

Steps to Install Firebug

Step 1: Visit http://getfirebug.com/ and click on “Install Firebug for Firefox”

and click on “Install Firebug for Firefox” Step 1.1: You may be asked to choose your

Step 1.1: You may be asked to choose your FireFox version. Ideally at the moment FB 1.7.3 should be ideal. This will also work FF 4 series.

at the moment FB 1.7.3 should be ideal. This will also work FF 4 series. Call:

Call: +1-314-827-5272

at the moment FB 1.7.3 should be ideal. This will also work FF 4 series. Call:

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 1.2: If you see this screen, click on firebug-1.7.3.xpi

Step 1.2: If you see this screen, click on firebug-1.7.3.xpi and click Allow button if it pops-up.

firebug-1.7.3.xpi and click Allow button if it pops-up. Step 2: Click Install Now Call: +1-314-827-5272 Email:

Step 2: Click Install Now

and click Allow button if it pops-up. Step 2: Click Install Now Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

and click Allow button if it pops-up. Step 2: Click Install Now Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Step 3: Complete installation and re-start FireFox

eLearning Step 3: Complete installation and re-start FireFox Step 4: You will find a small bug
eLearning Step 3: Complete installation and re-start FireFox Step 4: You will find a small bug

Step 4: You will find a small bug icon on the bottom right side of your FF browser.

will find a small bug icon on the bottom right side of your FF browser. Call:

Call: +1-314-827-5272

will find a small bug icon on the bottom right side of your FF browser. Call:

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 5: Watch a demo video on Firebug here

Step 5: Watch a demo video on Firebug here http://getfirebug.com/video/Intro2FB.htm

a demo video on Firebug here http://getfirebug.com/video/Intro2FB.htm Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

a demo video on Firebug here http://getfirebug.com/video/Intro2FB.htm Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Eclipse IDE Installation Steps to Install Eclipse Step 1: DOWNLOAD

Eclipse IDE Installation

Steps to Install Eclipse

Step 1: DOWNLOAD : Can be downloaded from SCREENCAST.COM.

‘OR’

Visit http://www.eclipse.org/downloads/ and Download Eclipse Classic (You can do 32 bit if it is Windows XP or VISTA Business Edition. For other Windows OS you can use 64bit)

Business Edition. For other Windows OS you can use 64bit) Step 2: Extract: Extract the ZIP

Step 2: Extract: Extract the ZIP file to a new folder like C:\Selenium\Eclipse

Step 3: Open Eclipse by double clicking Eclipse.exe in this folder.

Step 3: Open Eclipse by double clicking Eclipse.exe in this folder. Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

Step 3: Open Eclipse by double clicking Eclipse.exe in this folder. Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 4: Create a workplace for practice. Like C:\Selenium\Workspace. This

Step 4: Create a workplace for practice. Like C:\Selenium\Workspace. This is where you can practice and store all Java projects and codes for Selenium.

practice and store all Java projects and codes for Selenium. Step 5: You can choose to

Step 5: You can choose to close the welcome screen or watch some overview on the tool.

choose to close the welcome screen or watch some overview on the tool. Call: +1-314-827-5272 Email:

Call: +1-314-827-5272

choose to close the welcome screen or watch some overview on the tool. Call: +1-314-827-5272 Email:

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 6: You are now ready to create your 1

Step 6: You are now ready to create your 1 st Java project on Eclipse IDE for Selenium

your 1 s t Java project on Eclipse IDE for Selenium Step 7: Navigate to File>New>Java

Step 7: Navigate to File>New>Java Project.

IDE for Selenium Step 7: Navigate to File>New>Java Project. Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

IDE for Selenium Step 7: Navigate to File>New>Java Project. Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 8: Enter the project name and click “Finish”. Project

Step 8: Enter the project name and click “Finish”. Project with name Autotrader is created.

click “Finish”. Project with name Autotrader is created. Step 9: Create a new java class in

Step 9: Create a new java class in that project by Right clicking on Autotrader folder and navigate to New>Class. Enter name in the window and click Finish.

navigate to New>Class. Enter name in the window and click Finish. Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

navigate to New>Class. Enter name in the window and click Finish. Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Step 10: Class Created

Software Test Automation eLearning Step 10: Class Created Step 11: Remove the default public class Call:
Software Test Automation eLearning Step 10: Class Created Step 11: Remove the default public class Call:

Step 11: Remove the default public class

Step 10: Class Created Step 11: Remove the default public class Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

Step 10: Class Created Step 11: Remove the default public class Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 12: Paste the code from the text file into

Step 12: Paste the code from the text file into the class in Eclipse (code generated from IDE JUnit version):

class in Eclipse (code generated from IDE JUnit version): Step 13: Delete the 1st line "package

Step 13: Delete the 1st line "package com.example.tests;" from the code

Step 14: Right click on project folder and navigate to Properties>Java Build Path>Libraries>Add External JARs and browse to the location in your system where JARs are located. Add “junit-4.8.1.jar” and “selenium-java-2.0b2.jar” and click OK.

junit-4.8.1.jar ” and “ selenium-java-2.0b2.jar ” and click OK . Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

junit-4.8.1.jar ” and “ selenium-java-2.0b2.jar ” and click OK . Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 15: Change the class name in the IDE script

Step 15: Change the class name in the IDE script to match the class name that we created under the project folder

Step 16: Start the Selenium Server at specific port.

- Ensure you have Java installed on your machine. Go to run and type cmd.

- Enter "Java -version" anywhere. If not installed visit java.sun.com.

- Go to Run and type "cmd"

- Download "selenium-server-standalone-2.21.0", if this is not available from http://seleniumhq.org/download/

- Go to the folder where the "selenium-server-standalone-2.21.0" is downloaded

- Type this in the Jar folder. "java -jar selenium-server-standalone-2.21.0.jar -port 4444". This will start the Selenium Server.

Step 17: Run the JUnit code through that port

Step 18: After you are done

type Ctrl+C to stop server and type exit to close the cmd window

Call: +1-314-827-5272

done type Ctrl+C to stop server and type exit to close the cmd window Call: +1-314-827-5272

Email: learn@itelearn.com

Home for Software Test Automation eLearning

ANT Installation

Steps to Install ANT

Goto http://archive.apache.org/dist/ant/binaries/ link. Step 2: Click on apache-ant-1.8.2-bin.zip . This allows
Goto http://archive.apache.org/dist/ant/binaries/ link. Step 2: Click on apache-ant-1.8.2-bin.zip . This allows

Step 2: Click on apache-ant-1.8.2-bin.zip. This allows you to download on your local machine.

Step 3: Create a new folder ANT in C:\Selenium.

Step 4: Unzip the file and store the unzipped folder “apache-ant-1.8.2” in new folder. Example,

“C:\Selenium\ apache-ant-1.8.2”.

Step 5: Go to Start > My Computer > Properties. Click Advanced Settings.

Go to Start > My Computer > Properties. Click Advanced Settings. Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

Go to Start > My Computer > Properties. Click Advanced Settings. Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Step 6: Click on Environment Variables.

eLearning Step 6: Click on Environment Variables. Step 7: Add a New System Variable “AntTest”. Click
eLearning Step 6: Click on Environment Variables. Step 7: Add a New System Variable “AntTest”. Click

Step 7: Add a New System Variable “AntTest”. Click on New in System Variables and add values as shown below:

on New in System Variables and add values as shown below: Step 8: Click OK Step

Step 8: Click OK

Step 9: Now goto Path variable in System Variables. Click on Edit as shown below:

goto Path variable in System Variables. Click on Edit as shown below: Call: +1-314-827-5272 Email: learn@itelearn.com

Call: +1-314-827-5272

goto Path variable in System Variables. Click on Edit as shown below: Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com

Home for Software Test Automation eLearning

Home for Software Test Automation eLearning Step 10: DO NOT CHANGE ANY VALUE THAT IS ALREADY

Step 10: DO NOT CHANGE ANY VALUE THAT IS ALREADY THERE. At the end of Variable Value, put a semi-colon(;) and paste the complete path of ANT\bin folder again here like below:

the complete path of ANT\bin folder again here like below: Step 11: Click on OK and

Step 11: Click on OK and you are done with ANT installation.

Step 12: Now Confirm ANT is installed. Go to command prompt.

Step 13: On the command prompt type ‘ant’ from any directory that you are present in.

Step 14: Now go to “C:\Program Files\Java\jdk1.6.0_27\lib” and copy tools.jar file.

Step 15: Now go to “C:\Program Files\Java\jre6\lib” and paste tools.jar file here.

Call: +1-314-827-5272

C:\Program Files\Java\ jre 6\lib ” and paste tools.jar file here. Call: +1-314-827-5272 Email: learn@itelearn.com

Email: learn@itelearn.com