Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.

Slides:



Advertisements
Similar presentations
Privacy Settings How to complete your Privacy section.
Advertisements

Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
Creating and Editing a Web Page Using Inline Styles
Selenium HP Web Test Tool Training
This presentation can be downloaded at Presented by the Office of Public Affairs Using the Cal State L.A. Web.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
FIRST COURSE Creating Web Pages with Microsoft Office 2007.
INSTRUCTIONAL SUPPORT SERVICES (ISS) SHORT COURSE, FALL 2012 UMSL Introduction to Web Page Design.
Selenium – Testing Tool. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.
FrontPage Basics Contributed by Richard Truxall, The Library Network Community Information Toolkit Copyright © 1999, Library of Michigan.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Creating a Web Page HTML, FrontPage, Word, Composer.
Web Design HTML, Frontpage, DreamWeaver μέρος β ΠΡΥ019 - Πληροφορική Δρ.Βάσος Βασιλείου.
© 2012 Boise State University1 WordPress Training February 14, 2013.
A guide for UICET for using Wikispaces.  A wiki is a web page or collection of web pages that can be linked together as a website.  Wikis are often.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Using Dreamweaver. Slide 1 Dreamweaver has 2 screens that do different things The Document window where you create your WebPages The Site window where.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
1 Test Automation For Web-Based Applications Selenium HP Web Test Tool Training Portnov Computer School.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
© 2012 Boise State University1 WordPress Training February 14, 2013.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Dr. Hala Fawzi  Make sure you are signed into Wikispaces  Go to: 
Websites 101 Technology Committee UPSOM. Web Class – Goals  Make a simple web page (or series of pages)  Upload that page to the internet  Feel comfortable.
Tutorial 1: Browser Basics.
HTML Concepts and Techniques Fourth Edition Project 6 Using Frames in a Web Site.
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
1 Creating a Second Web Page This section shows you how to create the Huntington Beach Web site.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
Create Your Own Webpage. Today’s Class Internet Safety & Privacy Tables Embedding music and video Frames.
Selenium Web Test Tool Training Discover The Automating Power Of Selenium Author : Girija Prasad Panda Alcatel-Lucent.
Creating a Web Site Using 000webhost.com The 000webhost.com Site You will be required to create an account in order to use their host computer 000webhost.com.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Selenium and Selenium on Rails. Agenda  Overview of Selenium Simple Selenium Tests Selenium IDE  Overview of Selenium on Rails  Problems with Selenium.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
How to make tables in HTML By Daniel Arze. How do they do this?
Wikispaces in Education Tutorial Fatema Kashoob Nawal ALKathiri
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
January 2006Colby College ITS Setting Up Course Pages.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Automated Web Page Testing with Selenium IDE: An Overview Mary Ann May-Pumphrey 11/20/08.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
Landscaper 101. Time Code AMC AMCNET HELP!!! Where do you go for help? –Upper right corner has a ? for the online help –This presentation.
Test Automation For Web-Based Applications Portnov Computer School 1 Selenium HP Web Test Tool Training.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Step 1 “LOG IN” to your Zukul Account Step 2 Left click your mouse on “My Tools” Step 3 Left click your mouse on the “LP Creator” Button in the menu column.
Creating and Editing a Web Page
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
Creating Web Pages with Links, Images, and Embedded Style Sheets
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
XP Creating Web Pages with Microsoft Office
ACCELLER WIKI TRAINING Share your knowledge with others.
Selenium and Selenium on Rails
Selenium HP Web Test Tool Training
With Microsoft FrontPage 2000
Selenium HP Web Test Tool Training
Selenium Web Test Tool Training Using Ruby Language
Selenium Web Test Tool Training Using Ruby Language
HOW TO ADD SIGNATURE TO MICROSOFT OFFICE OUTLOOK
Selenium Web Test Tool Training Using Ruby Language
Presentation transcript:

Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan Passoubady (Kangs) Copy Right: 2008, All rights reserved by Kangeyan Passoubady (Kangs). Republishing requires author’s permission

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 2 Day Creating a Selenium Test Suite 1

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 3 Selenium Concepts Selenium understands two types of files 1.Test Case 2.Test Suite Every test must be contained within a test suite Both test cases and test suites are defined by using simple tables in HTML

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 4 Format of a Selenium Test Selenium HTML Table commands are called Selenese commands Selenese provides simplicity Selenese defined in HTML Table with 3 columns –First Column: Selenium command –Second Column: Required first parameter –Third Column: Optional second parameter

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 5 Selenium Test Writing in HTML Selenium is sensitive to the format of the table All selenium command rows must have three columns or they will not be recognized as commands You can only test URL’s that are in the same domain as the selenium core Separation of concerns is hard – Tests become very dependent on the internal structure of the HTML

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 6 Selenium Test Writing in HTML Selenium Test Cases Can be created in two ways  Editing the Basic Test Suite  Using Add Test Case Method

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 7 Selenium Test Suite in Hard Way  Editing the Basic Test Suite  Add Your Test Cases Manually

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 8 Selenium Test Case Example #1 Now go to “C:\BasicSelenium\Week1\Ex” Double click and open “TC_GE_EE.html” in any browser (*1) Open the Test Case in Selenium IDE, Look at the source (*2) Name of the test case Selenium Command First Parameter or Target Optional Second Parameter *2 *1

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 9 Selenium Test Case Example #2 Omitting the template code, Look at the TR value of the table open type textToSearch energy efficient clickAndWait searchSubmit Each row contains one test case step Comments are displayed as it is 1.Record test case 2.Save into your computer 3.If needed manually open and edit the test case steps in a notepad 4.Knowledge of HTML is required

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 10 Record One More Test Case #1 File  New Test Case (Make Selenium IDE in Record Mode) Open Go all the way down, click on the “Contact Information” link Click on “Feedback & Inquiries” link –Consumer/Other (Leave the default option) –Select a Subject (Other) –Select a Country (U.A.E) – (type –Comments or Questions (type Just testing) –Submit (click once)

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 11 Record One More Test Case #2 In the result page, highlight “Thank you for taking the time to contact GE” Right Click and Select waitForTextPresent “Thank you for taking the time to contact GE” Highlight “Feel free to continue browsing.” Right Click and Select VerifyTextPresent “Feel free to continue browsing.” Right Click on “GE.com Home Page” link and Select verifyElementPresent “link=GE.com Home Page”

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 12 Record One More Test Case #3 Now Stop recording in Selenium IDE window File  Save the test case as “GE_TC2.html” File  Save the test suite as “GE_TS1.html” Save both the files in the same location as you stored in the “GE_TC1.html”

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 13 Format of Selenium Test Suite Similar to test cases commands, but points to the Selenium Test Cases A HTML table that points to many test cases Just double Click and open the “ GE_TS1.html ” in any browser. Click the individual test cases.

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 14 Edit Selenium Test Suite If you have only one “test case” in your test suite, Open the “GE_TS1.html” in NotePad. Add a line of code before the end of tag GE Test Case 2 File → Save then Exit. Now you can double click and see the entire test suite in your browser. You can Edit the Test Suite in notepad when you want to –Change the name of the test cases –Add, Remove, and Rename test cases –Arrange order of test cases. Don’t forget to keep all the test cases in the same directory

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 15 Create EE Test Suite #1 This time we’ll use Selenium to create the Test Suite for us. Open Firefox Open Tools  Selenium IDE File  Open  TC_GE_EE.html (*1) *1

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 16 Selenium Test Suite in Easy Way  Add Test Cases Using File Menu Option  Save Test Suite

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 17 Create EE Test Suite #2 File  Add Test Case  TC_Google_EE.html (*2) Press Ctrl+D, Select TC_Yahoo_EE.html (*3) *2 *3

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 18 Create EE Test Suite #3 Now Enlarge the Test Case Section You will see all your test cases listed File  Save Test Suite As “TS_EE.html” *4 *6 Click here to enlarge *5

Discover the automating power of Selenium Copyright © by Kangeyan Passoubady (Kangs) 19 Create EE Test Suite #4 Now Click on the “Play Entire Test Suite” icon. Congrats!! *6 Click here to play your test suite