SELENIUM
Selenium is software which contains
some set of programs
Selenium components:
Selenium IDE: it is set of programs + a user interface from
where the user can interact with that set of programs.
Advantages:
v
Free
software
v
Easy
to install
v
Its main feature is record and
playback
v
Scripts
recorded in IDE can be converted into other language like Java, C#, Python and
Ruby
v
It is not only a time saver but also an
excellent way of Learning scripts syntax
v
We can
insert comments, commands
Disadvantages:
v Main disadvantage of IDE is that it runs only in Firefox
Browser
v We can’t write the script manually
v Cannot upload files
v It does not directly support loops and conditions
v Reading from external files like .txt, .xls is not possible
v We can perform very limited testing
Selenium RC (remote control): it is a set
of programs to perform automation testing, to interact with those programs we
need to configure them in any user interface. Generally people use eclipse as
it is a powerful editor for writing java programs.
Note: after selenium rc they have made selenium web driver as more powerful.
Selenium web driver is providing more facilities for automation testing when
compare to RC people started using web driver and slowly RC is getting
deprecated.
Disadvantages:
v
There are
very limited features in RC when working with Ajax based UI elements
v
we
need to start, stop the server manually
v
Controlling
multiple windows is somewhat difficult
Selenium web driver: it is a set
of powerful programs to perform automation testing, to interact with those
programs we need to configure them in any user interface.
Generally people use eclipse for configuring the web driver programs
into eclipse
Eclipse is a powerful editor for writing the java
programs.
Advantages;
1) Support for iPhone and Android testing
2) Implementation of listeners - a much
awaited feature
3) Better features for Ajax testing.
4) You can easily simulate clicking on
front and back button of browser.
5) You can extract objects in bulk like
QTP. For ex - extract all links of page. With RC this was a big hastle
6) Unlike RC you don’t have to start a
server in web driver.
7) You can simulate movement of a mouse
using selenium.
8) ) Tabs and pops are more or less the
same. RC can also handle and Web driver can also handle.
9) You can find coordinates of any object
using Web driver.
10)
You
have classes in Web driver which help you to simulate key press events of
keyboard.
11)
Keyword
driven framework is very easy to build in web driver.
Selenium grid: it is a set of programs used for executing
the tests parallel on multiple machines in order to increase the performance of
execution.
SELENIUM GRID Advantages
v
Remote Execution of the selenium tests can be done
using Selenium Grid without actually copying your test code to remote system.
v
Selenium Grid can be used to save time by
executing
Independent
test cases in parallel.
v
Load Testing can be done if we register a lot of
remote control to a single hub and execute test case in parallel to simulate
multiple transactions at a single time period.
No comments:
Post a Comment