Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R

Slides:



Advertisements
Similar presentations
Pubman and Selenium tests. What is Selenium Selenium is a suite of Web application test automation tools for any browser on any operating system –Firefox,
Advertisements

Web Application Server Apache Tomcat Downloading and Deployment Guide.
Selenium HP Web Test Tool Training
Test Automation Framework Ashesh Jain 2007EE50403 Manager Amit Maheshwari.
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
Selenium – Testing Tool. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.
SMS Gateway OZEKI NG Document version: v Adding SMS functionality to SysAid.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Cognizant Reusable Automation Framework for Testing C.R.A.F.T.
Tomcat Celsina Bignoli History of Tomcat Tomcat is the result of the integration of two groups of developers. – JServ, an open source.
Amazon EC2 Quick Start adapted from EC2_GetStarted.html.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Automation using Selenium Authored & Presented by : Chinmay Sathe & Amit Prabhu Cybage Software Pvt. Ltd.
ENTERPRISE JOB SCHEDULER SAJEEV RAMAKRISHNAN 29 AUG 2014.
1 SAMBA. 2 Module - SAMBA ♦ Overview The presence of diverse machines in the network environment is natural. So their interoperability is critical. This.
BASIC NETWORK CONCEPTS (PART 6). Network Operating Systems NNow that you have a general idea of the network topologies, cable types, and network architectures,
Maven & Bamboo CONTINUOUS INTEGRATION. QA in a large organization In a large organization that manages over 100 applications and over 20 developers, implementing.
Customized cloud platform for computing on your terms !
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Selenium automated testing in Openbravo ERP Quality Assurance Webinar April 8th, 2010.
Val Kravets, Luis Sanchez, Allen Chung, Phillip Anderson, Leyla Norooz, Brian Ramnarian, Todd Watson.
AUTOBUILD Build and Deployment Automation Solution.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Testing Ajax Applications when to test, what to test, how to test Ajax applications Square One University Series.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
Web Automation Testing With Selenium By Rajesh Kanade.
Pubman and Selenium tests. What is Selenium Selenium is a suite of Web application test automation tools for any browser on any operating system –Firefox,
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
GAAIN Virtual Appliances: Virtual Machine Technology for Scientific Data Analysis Arihant Patawari USC Stevens Neuroimaging and Informatics Institute July.
SilkTest 2008 R2 SP1: Silk4J Introduction. ConfidentialCopyright © 2008 Borland Software Corporation. 2 What is Silk4J? Silk4J enables you to create functional.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Selenium January Selenium course content  Introduction (Session-1)Session-  Automation  What is automation testing  When to go for automation.
Page 1 | | ©2009 Installation of Selenium IDE and RC Amit Maheshwari 20 th Sep’10.
Mohit Anand, Software Engineer Adobe 1 Selecting GUI Automation Testing Tool for Mobile Domain.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
BIF713 Operating System Concepts MS Windows. Agenda 1. What is an Operating System (definition)? 2. Types of Operating Systems 3. Basic Operations: –
Introduction TO Network Administration
Unit 1 – Web Concepts Instructor: Brent Presley.
Perfecto’s CQ Lab using Selenium RemoteWebDriver & Appium
Windows SharePoint Services Installation and Configuration.
Test Automation Using Selenium Presented by: Shambo Ghosh Ankit Sachan Samapti Sinhamahapatra Akshay Kotawala.
Tata Consultancy Services1 WebDriver Basics Submitted By : Akhil K Gagan Deep Singh Naveenrajha H M Poornachandra Meduri Shubham Utsav Sunil Kumar G Vivek.
ALL INFORMATION PRESENTED AS WELL AS ALL SESSIONS ARE MICROSOFT CONFIDENTIAL AND UNDER YOUR NON-DISCLOSURE AGREEMENT (NDA) AND\OR TECHNOLOGY PREVIEW.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
QA Online Training In QA Click Academy. Selenium is a test automation framework used to test web applications such as browsers. It consists of different.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Planning Server Deployments Chapter 1. Server Deployment When planning a server deployment for a large enterprise network, the operating system edition.
SAFARI TEST AUTOMATION: NAVIGATING THROUGH THE JUNGLE BY KARAN KUMAR AND JAMES CHUONG.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
Arklio Studija 2007 File: / / Page 1 Automated web application testing using Selenium
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Appium Studio Appium testing made easy at any scale.
JRA2: Acceptance Testing senarious
Operating System Concepts
Understanding SOAP and REST calls The types of web service requests
Platform as a Service.
Drupal VM and Docker4Drupal For Drupal Development Platform
Onlineitguru Selenium is one of the most widely used open-source tool that is used for testing software or Automation. It is licensed under Apache License.
Cross platform automated appium testing - A Primer
Selenium Testing Training
What is selenium? Selenium is a portable software-testing framework for web applications. Selenium provides a playback (formerly also recording) tool.
Selenium Web Test Tool Training Using Ruby Language
Login For Excellence Selenium Training In Chennai.
Selenium Tutorials Cheyat Training.
The Most Popular Android UI Automation Testing Tool Andrii Voitenko
Web Application Development Using PHP
Presentation transcript:

Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R Rajalakshmi Sankar Shiny Richard. V Sweta Bansal 31 – October - 2014 1

INTRODUCTION TO SELENIUM Selenium is a free (open source) automated testing suite for web applications across different browsers and platforms. It is quite similar to HP Quick Test Pro (QTP) only that Selenium focuses on automating web-based applications. Selenium is not just a single tool but a suite of software , each catering to different testing needs of an organization. It has four components (i) Selenium Integrated Development Environment (IDE) (ii)Selenium Remote Control (RC) (iii) Selenium Web Driver (iv)Selenium Grid 2

SELENIUM SUITE In future, Selenium RC and Web Driver are merged into a single framework to form Selenium 2. Selenium 1, by the way, refers to Selenium RC. 3 3

SELENIUM SERVER Selenium Server receives Selenium commands from our test program, interprets them, and reports back to our program the results of running those tests. Selenium-Core is a JavaScript program, actually a set of JavaScript functions which interprets and executes Selenese commands using the browser’s built-in JavaScript interpreter. The RC server bundles Selenium Core and automatically injects it into the browser. This occurs when your test program opens the browser (using a client library API function). The Server receives the Selenese commands from our test program using simple HTTP GET/POST requests. We can use any programming language that can send HTTP requests to automate Selenium tests on the browser. 4

RUNNING SERVER Before starting any tests we must start the server. Go to the directory where Selenium RC’s server is located and run the following from a command-line console. “java -jar selenium-server-standalone-<version-number>.jar” This can be simplified by creating a batch or shell executable file (.bat on Windows and .sh on Linux) containing the command above. Then make a shortcut to that executable on our desktop and simply double-click the icon to start the server. 5

A test program can be run on selenium RC and Web driver. Running a test A test program can be run on selenium RC and Web driver. Selenium RC requires a selenium RC server and language specific client driver, whereas Web driver requires only server. Selenium has a set of libraries available in the specific programming language. 6

Running a test in selenium RC Install the Selenium RC Server. Set up a programming project using a language specific client driver. Create the test program in a suitable environment. Before starting any tests we must start the server . Once the server has started, we can run the test program by giving Run as--> Java application or Junit test case. For Web driver, we can run the program directly. Its not necessary to start the server separately. 7 7

SELENIUM GRID Selenium Grid allows us to : Scale by distributing tests on several machines ( parallel execution ). Manage multiple environments from a central point. Making it easy to run the tests against a vast combination of browsers / OS. Minimize the maintenance time for the grid by allowing us to implement custom hooks to leverage virtual infrastructure for instance. 8

Selenium Grid uses a hub-node concept where you only run the test on a single machine called a hub, but the execution will be done by different machines called nodes. 9

WHEN TO USE SELENIUM GRID? Run your tests against different browsers, operating systems, and machines all at the same time. This will ensure that the application you are testing is fully compatible with a wide range of browser-OS combinations. Save time in execution of your test suites. If you set up Selenium Grid to run, say, 4 tests at a time, then you would be able to finish the whole suite around 4 times faster. 10

GRID VERSIONS There are two versions of Selenium Grid. They are (i)Grid 1.0 (ii)Grid 2.0 GRID 1.0: Selenium Grid 1 has its own remote control that is different from the Selenium RC server. We need to install and configure Apache Ant first before you can use Grid and it can only support Selenium RC commands/scripts. We can automate only one browser per remote control. GRID 2.0: Selenium Grid 2 is now bundled with the Selenium Server jar file. We do not need to install Apache Ant in Grid 2 and can support Selenium RC and Web Driver Scripts. We can automate up to 5 browsers. 11

HUB AND NODE The hub is the central point where we load our tests into. There should only be one hub in a grid. The hub is launched only on a single machine, say, a computer whose OS is Windows 7 and whose browser is IE. The machine containing the hub is where the tests will be run, but you will see the browser being automated on the node. NODE: Nodes are the Selenium instances that will execute the tests that you loaded on the hub. There can be one or more nodes in a grid. Nodes can be launched on multiple machines with different platforms and browsers. The machines running the nodes need not be the same platform as that of the hub. HUB: 12

Selenium grid requirements Two machines. One to act as hub(Machine A). One to act as node(Machine B) . Selenium server .jar file. 13

Setting up selenium Grid Download selenium server .jar file. Place the jar file in the hard drive of both machine A and machine B. 14

Configuration of hub and node Open the hub (machine A) Open command prompt and traverse to the directory which has the server .jar file. Type “java -jar selenium-server-standalone-2.30.0.jar -role hub”. Do the same in node (machine B ) using the command “java -jar selenium-server-standalone-2.42.0.jar -role node -hub http://192.168.1.3:4444/grid/register”. Now the hub and node configuration is completed. 15

Adding additional nodes Any number of nodes can be added. All the additional nodes should have .jar file in their hard drive. Open command prompt in all machines. Traverse to directory which contains the .jar file in each machine. Type “java -jar selenium-server-standalone-2.42.0.jar -role node -hub http://192.168.1.3:4444/grid/register” Where 192.168.1.3 is the IP address of the hub. 16

Designing Test Scripts That Can Run on the Grid To design test scripts that will run on the grid, we need to use DesiredCapabilites and the RemoteWebDriver objects. DesiredCapabilites is used to set the type of browser and OS that we will automate. RemoteWebDriver is used to set which node (or machine) that our test will run against. 17

Using the DesiredCapabilites Object Go to the Grid's web interface and hover on an image of the browser that you want to automate. Take note of the platform and the browserName shown by the tool tip. Also, to use the DesiredCapabilites object, you must first import this package in the program. In this case, the platform is "XP" and the browserName is "firefox". 18

Using the RemoteWebDriver Object To use the RemoteWebDriver object, you must import these packages. Then pass the DesiredCapabilities object that we created before as a parameter for the RemoteWebDriver object. 19

Running a Sample Test Case on the Grid Below is a simple WebDriver TestNG code that you can create in Eclipse on Machine A(Hub). Once you run it, automation will be performed on Machine B(Node). 20

There are two main ways to go about expanding your selenium testing Selenium Grid Considerations There are two main ways to go about expanding your selenium testing to include multiple browsers and multiple versions DIY with Selenium Grid or using a cloud solution like Sauce Labs, which is effectively Selenium Grid in the cloud without the infrastructure setup or maintenance. The high maintenance nature of building a Grid results in a high TCO but there is a return on that investment. Building a Selenium Grid has two key benefits Control Speed of test execution Selenium Grid is a solution enabling web-testing on a larger scale and continuous integration 21

THANK YOU 22