0% found this document useful (0 votes)
17 views

Day5 Selenium

The document discusses Selenium, an open-source tool used for automating tests on web browsers. It can test applications using any browser on Windows, Mac or Linux. Test scripts can be written in languages like Java, Python, and Ruby. The document also discusses challenges with manual testing and compares Selenium to other tools. It provides steps to install Java, Eclipse IDE, and Selenium WebDriver and configure it with Eclipse.

Uploaded by

Anchal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Day5 Selenium

The document discusses Selenium, an open-source tool used for automating tests on web browsers. It can test applications using any browser on Windows, Mac or Linux. Test scripts can be written in languages like Java, Python, and Ruby. The document also discusses challenges with manual testing and compares Selenium to other tools. It provides steps to install Java, Eclipse IDE, and Selenium WebDriver and configure it with Eclipse.

Uploaded by

Anchal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 39

Software Engineering

Software Testing

Divya M G
SDOS Group
Centre for Development of Advanced Computing(C-DAC)
Bangalore
[email protected]

1
Selenium

Selenium is an open-source tool that is used for automating the tests


carried out on web browsers. Web applications are tested using any web
browser.

• Test scripts can be written in any of these programming languages:


Java, Python, C#, PHP, Ruby, Perl & .Net
• Tests can be carried out in any of these OS: Windows, Mac or Linux
• Tests can be carried out using any browser:
Mozilla Firefox, Internet Explorer, Google Chrome, Safari or Opera
• It can be integrated with tools such as TestNG & JUnit for managing test
cases and generating reports

eDAC-August2020 Sofware Engineering 2


Challenges With Manual Testing

eDAC-August2020 Sofware Engineering 3


1. Java: The Java Development Kit (JDK), officially named Java Platform
Standard Edition or Java SE, is needed for writing Java programs.
2. Eclipse: It is an integrated development environment (IDE) for
developing applications using the Java programming language and other
programming languages .
3. Selenium: Selenium is one of the leaders in the market of Web
Automation Tools, and WebDriver is one of the essential members of the
Selenium family, which provides various capabilities to simulate the user
behaviors on the Web Applications.

eDAC-August2020 Sofware Engineering 4


Selenium vs QTP vs RFT

Features HP QTP IBM RFT Selenium


License Required Required Open-source
Cost High High Open-source software
Customer Support Dedicated HP Dedicated Open-source
support IBM support Community
Hardware High High Low
consumption during
script execution
Coding experience Not required Required Ample amount of
coding skills and
experience needed
Environment support Only for Only for Windows, Linux,
Windows Windows Solaris OS X (If
browser & JVM or
JavaScript support
exists)
Language Support VB Script Java and C# Java, C#, Ruby,
Python, Perl, PHP and
JavaScript

eDAC-August2020 Sofware Engineering 5


System/Laptop details
Windows 8.1
64 bit OS, x86 base Processor
Google Chrome – Version 87

eDAC-August2020 Sofware Engineering 6


Web Browser Version

eDAC-August2020 Sofware Engineering 7


Java Installation
https://www.oracle.com/java/technologies/javase-jdk15-downloads.html

eDAC-August2020 Sofware Engineering 8


eDAC-August2020 Sofware Engineering 9
eDAC-August2020 Sofware Engineering 10
eDAC-August2020 Sofware Engineering 11
Set the Java Environment Path

Windows 7StartSystem Advanced System Settings Environment


Variables

eDAC-August2020 Sofware Engineering 12


Under ‘System Variable’, Select “Path” to edit. At the
end of the line, enter the following path
–  %JAVA_HOME%bin; Now, you can click ‘OK’

eDAC-August2020 Sofware Engineering 13


Verify Java Installation
Go to Command Prompt and type java -version If you see a screen like below,
Java is installed.

eDAC-August2020 Sofware Engineering 14


Eclipse IDE

https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2020-09/R/eclipse-
inst-jre-win64.exe

eDAC-August2020 Sofware Engineering 15


eDAC-August2020 Sofware Engineering 16
eDAC-August2020 Sofware Engineering 17
C:\eclipse

For installation, Double click on Application software

eDAC-August2020 Sofware Engineering 18


eDAC-August2020 Sofware Engineering 19
eDAC-August2020 Sofware Engineering 20
eDAC-August2020 Sofware Engineering 21
The workspace is a directory on the disk where the Eclipse platform and
all the installed plug-ins store preferences, configurations and temporary
information. Subsequent Eclipse invocations will use this storage to restore
the previous state.

Restart the computer. By restarting the computer it refreshes system


memory and allows changes made by installers and uninstallers to
take effect.

eDAC-August2020 Sofware Engineering 22


Selenium WebDriver
https://www.selenium.dev/downloads/

Selenium is stored and extracted at C:\selenium

eDAC-August2020 Sofware Engineering 23


Configure Selenium WebDriver with Eclipse

Create Project: Navigate to File --> New --> Project. 

eDAC-August2020 Sofware Engineering 24


eDAC-August2020 Sofware Engineering 25
eDAC-August2020 Sofware Engineering 26
Create Package under the Project
“EDAC_12DEC2020”

eDAC-August2020 Sofware Engineering 27


Package name: moduleA_Lotus

eDAC-August2020 Sofware Engineering 28


The project & the package created, now create class(es)
to write the code. To create a new class, follow the steps
as mentioned below:

eDAC-August2020 Sofware Engineering 29


eDAC-August2020 Sofware Engineering 30
eDAC-August2020 Sofware Engineering 31
Add Selenium WebDriver Jars to the project
“EDAC_12dec2020”

eDAC-August2020 Sofware Engineering 32


eDAC-August2020 Sofware Engineering 33
eDAC-August2020 Sofware Engineering 34
eDAC-August2020 Sofware Engineering 35
eDAC-August2020 Sofware Engineering 36
eDAC-August2020 Sofware Engineering 37
The configuration of the Selenium WebDriver jars is now complete.
Conclusively, you are all set to write your first test script using Selenium
WebDriver in Eclipse.

eDAC-August2020 Sofware Engineering 38


Thank You

eDAC-August2020 Sofware Engineering 39

You might also like