2. Unit Testing
Unit testing is a software testing method by which individual units of source code
Benefit using automation test
1. Saving time
2. Cost-effective
3. Energy saving
Why unit testing needed ?
1. To know the functionality is success
2. To know the functionality is not success / bug
3. To check validation the application
4. Feature
a. Record and playback test case
b. Can export to multiple type of file
Selenium IDE(Integrated Development Environment) is a tools used to record the browser activity
About
Installation
a. Search Selenium IDE in add ons firefox
b. Restart firefox
Selenium IDE
5. Toolbar
: To start and end record
: Controlling fast the test run
: To running test suite
: To running test case
/ : Pause and resume playback
Selenium IDE
6. Selenium RC
Platform supported by Selenium RC
Selenium RC is a client/servers model allowing client libraries to execute the test on browser
Controlled by server
Browsers
- Firefox, IE, Chrome
Operating System
- Windows,OS X, Linux and Solaris
Programming Languages
- C#, Java, Perl, PHP, Python, and Ruby
Testing Frameworks
- Bromine, JUnit & TestNG(Java), NUnit(.Net),
RSpec & Test::Unit(Ruby), Unittest (Python)
7. Selenium WD
Selenium WebDriver is designed to provide a simpler, more
concise programming interface in addition to addressing some
limitations in the Selenium-RC
Platform supported by Selenium RC
Browsers
- Firefox, IE, Chrome
Operating System
- Windows,OS X, Linux and Solaris
Programming Languages
- C#, Java, Perl, PHP, Python, and Ruby
Testing Frameworks
- Bromine, JUnit & TestNG(Java), NUnit(.Net),
RSpec & Test::Unit(Ruby), Unittest (Python)
8. Selenium RC vs WD
Selenium RC Selenium WD
Selenium server is required to start Selenium server is not required to start*Speed in process
*Speed in process
Support to test iOS &
android application
Doesn’t support to test iOS &
android application
9. Start Hub
Open command line: directory/java –jar selenium-server-standalone-2.42.2.jar –role hub
Note : Default port 4444
Start Node
Open command line : directory/java –jar selenium-server-standalone-2.42.2.jar –role node –hub
http://ipaddres:4444/grid/register
Note : Default port 5555
Selenium Grid
10. Node Chrome
Open command line : directory/java –jar selenium-server-standalone-2.42.2.jar –role node –hub
http://ipaddres:4444/grid/register -Dwebdriver.chrome.driver=direktori crome
Example : diretory/java –jar selenium-server-standalone-2.42.2.jar –role node –hub
http://ipaddres:4444/grid/register -Dwebdriver.chrome.driver=D:driverchromedriver.exe
Node IE
Open command line : directory/java –jar selenium-server-standalone-2.42.2.jar –role node –hub
http://ipaddres:4444/grid/register -Dwebdriver.ie.driver=direktori IE
Example : directory/java –jar selenium-server-standalone-2.42.2.jar –role node –hub
http://ipaddres:4444/grid/register -Dwebdriver.chrome.driver=D:driverIEDriverServer.exe
Selenium Grid