Top Banner
Quontra solutions ww.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499 elenium Open Source Too
17

Selenium open source tools

Jun 23, 2015

Download

Education

"Quontra Solutions is the premier online training provider with an in-depth intention to deliver quality online training in selenium tool which is the most industry driven automation tool. Become a selenium automation tester in USA with hands-on experience earned at the time of training. This course covers basic selenium tool introduction to the general concepts of automation tool and its role in test activities. It is an added advantage to the people who don’t have time to go for regular class room training and who wish to take online training on their own pace from their office or home. Live online training with demonstrative course structure and quizzes, exercises and live assignments to prove their learning experience. At the end of the course you are able to handle your own projects by creating test cases and web applications with selenium.
Selenium course features:

• Real world projects to get practical based experience
• Online tests to explore the resource learning
• Experienced certified trainers as instructors
• One to one personalized training with desktop access
• Knowledge testing environment and product life cycle
• Case studies and state of art library to access study material
• 24/7 expertise support to solve the testing issues
• Resume build assistance to win in interviews

Attend Free Demo before Join the Class.

QUONTRA SOLUTIONS
204-226 Imperial Drive, Rayners Lane, Harrow HA27HH
Email: [email protected]
Contact: +44(0)-20-3734-1498 / 1499
Web: http://www.quontrasolutions.co.uk
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Selenium open source tools

Quontra solutions

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Selenium Open Source Tool

Page 2: Selenium open source tools

What is Selenium?

• Javascript framework that runs in your web-browser

• Works anywhere Javascript is supported• Hooks for many other languages– Java, Ruby, Python

• Can simulate a user navigating through pages and then assert for specific marks on the pages

• All you need to really know is HTML to start using it right away

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 3: Selenium open source tools

Where to get it?

• You can use Selenium-Core and customize everything

• But it is easier to just get a Firefox plug-in “Selenium-IDE” that helps you “record” test cases

• You can record how an app is being used and then play back those recordings followed by asserts

• Get everything at: www.openqa.org/selenium/

Page 4: Selenium open source tools

Selenium IDEThe root of web application you want to test

The list of actions in the actual test case to execute

The log of the events that were executed, including any errors or warning that may have occurred

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 5: Selenium open source tools

Selenium IDEExecution Commands

Try the test in the Web based TestRunner

Reference of the currently selected command

Record test actions

Specify commands, including asserts

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 6: Selenium open source tools

Test Creation Demo

• Create test case to log into the gallery

• Create test case to log out of the gallery

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 7: Selenium open source tools

Start Pixory

Connect to the Server

Go to the Login Screen

Hit the Record Button

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 8: Selenium open source tools

Type in Username and Password IDE should update

Hit submit

Hit record again to stop

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 9: Selenium open source tools

Add assertTextPresent and type the text to search for

Hit play to make sure your test is successful

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 10: Selenium open source tools

Creating a Test Suite• A Test Suite in

Selenium is just an HTML file that contains a table of links to tests

<html><head><meta content="text/html; charset=ISO-8859-1"http-equiv="content-type"><title>Demo Test Suite</title></head>

<body><table id="suiteTable">

<tbody> <tr><td>

<b>Demo Test Suite</b> </td></tr><tr><td><a href="./testLogin.html">TestLogin</a>

</td></tr><tr><td><a href="./testLogout.html">TestLogout</a>

</td></tr></tbody>

</table></body></html>

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 11: Selenium open source tools

Executing the Test Suite

• Selenium Core is a collection of Javascript and HTML with iFrames– Due to security concerns Core must be

deployed within the same server as the application being hosted

– The simplest way to run Pixory is to just run the Java application and let it use its own server

– Problems using Core with Pixory• Selenium IDE is a plug-in for Firefox and

thus can go around these restrictions

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 12: Selenium open source tools

Running the Test Suite• We basically want to execute

the test suite using the Selenium IDE plug-in TestRunner.html

chrome://selenium-ide/content/selenium/TestRunner.html?baseURL=<BASE>&test=file:///<TEST SUITE FILE>&auto=true

chrome://selenium-ide/content/selenium/TestRunner.html?baseURL=http://localhost:8081&test=file:///Users/ms333/projects/classes/running/v_and_v/hw3/selenium/test/TestSuite.html&auto=true

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 13: Selenium open source tools

Test Suite

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 14: Selenium open source tools

Test Suite

Application being tested

Test Cases

Steps of the test case

Execution Control

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 15: Selenium open source tools

Test Runner Control

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 16: Selenium open source tools

Test Runner Control

Run All Tests

Run Selected Test

Pause/Play Execution

Step through Execution

Control Speed of ExecutionHighlight

Elements in the Execution

View the DOM of the current Page being tested

Summary of the Test

View the log of the current executionwww.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

Page 17: Selenium open source tools

www.quontrasolutions.co.uk Call us @ 20-3734-1498 / 1499

FOR MORE DETAILS CONTACT US AT

QUONTRA SOLUTIONS