11
Course Catalog for Selenium Automation Using Ruby Language http://www.kavinschool.com Contact Us : 1-510-991-7591 Page 1 of 11 Selenium Automation Using Ruby Language This is a 10 weeks commitment course, 4 hours/week with 15 min break. We provide online/onsite instructor led courses for this course. Due to popular request we have recently added self-study materials for this course for a lower fee. Course contents are subject to change. Please look the schedules page for current start date of the courses and fees information. Click here to contact us for any questions. Due to limited seats availability register and pay for the course at least a week before to guarantee a seat for you. Call us at 510.991.7591 for more information. Bring your own laptop. All the installation instructions and step by step guide is provided to you ahead of time. Install the required software’s and/or tools ahead of time for the next week. This will allow covering the course materials instead of wasting time on installation. Contents Selenium Automation Using Ruby Language .............................................................................................. 1 Week 1: - Introduction to Selenium IDE .................................................................................................. 2 Week 2: - Quick Tour for Selenium IDE & STLC ....................................................................................... 3 Week 3: - Selenium Concepts and Commands ........................................................................................ 4 Week 4:- Regular Expressions in Selenium & Selenium Locators ............................................................ 5 Week 5:- Selenium Core & Orange HRM Case Study .............................................................................. 6 Week 6:- Learning Ruby Basic & Advanced ............................................................................................. 7 Week 7:- Selenium RC in Interactive Mode and Ruby Overview ............................................................. 8 Week 8:- OrangeHRM Ruby Test Cases & MySQL DB ............................................................................. 9 Week 9:- Data Driven Testing Using Selenium & Ruby ......................................................................... 10 Week 10:- Data Driven Testing Using Random Values & Overview of Selenium Grid ........................... 11

Course Catalog for Selenium Automation Using Ruby Language

  • Upload
    others

  • View
    10

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 1 of 11

Selenium Automation Using Ruby Language

This is a 10 weeks commitment course, 4 hours/week with 15 min break. We provide

online/onsite instructor led courses for this course. Due to popular request we have recently

added self-study materials for this course for a lower fee. Course contents are subject to change.

Please look the schedules page for current start date of the courses and fees information. Click

here to contact us for any questions. Due to limited seats availability register and pay for the

course at least a week before to guarantee a seat for you. Call us at 510.991.7591 for more

information.

Bring your own laptop. All the installation instructions and step by step guide is provided to you

ahead of time. Install the required software’s and/or tools ahead of time for the next week. This

will allow covering the course materials instead of wasting time on installation.

Contents Selenium Automation Using Ruby Language .............................................................................................. 1

Week 1: - Introduction to Selenium IDE .................................................................................................. 2

Week 2: - Quick Tour for Selenium IDE & STLC ....................................................................................... 3

Week 3: - Selenium Concepts and Commands ........................................................................................ 4

Week 4:- Regular Expressions in Selenium & Selenium Locators ............................................................ 5

Week 5:- Selenium Core & Orange HRM Case Study .............................................................................. 6

Week 6:- Learning Ruby Basic & Advanced ............................................................................................. 7

Week 7:- Selenium RC in Interactive Mode and Ruby Overview ............................................................. 8

Week 8:- OrangeHRM Ruby Test Cases & MySQL DB ............................................................................. 9

Week 9:- Data Driven Testing Using Selenium & Ruby ......................................................................... 10

Week 10:- Data Driven Testing Using Random Values & Overview of Selenium Grid ........................... 11

Page 2: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 2 of 11

Week 1: - Introduction to Selenium IDE Week one provides high level overview of the entire course contents of Basic Selenium Using Ruby

Language. The course starts with installing Selenium IDE (and optionally Firefox) in Mozilla Firefox.

Creating simple test cases that search “Energy Efficient” key word in different domain’s search engines.

Using Selenium IDE demonstrates to create a Selenium Test Suite using the “Energy Efficient” test cases.

The above exercises “Energy Efficient” test case allows you to understand how Selenium is dependent

on the HTML structure of the application under test (AUT).

First week sets the stage by installing useful tools/plugins like Firebug, Dom Inspector, X-Path Checker,

XPather, Regular Expression Tester, and HTML Validator. These tools will allow you understand the

locator strategies, and how to aptly provide locators for different commands in Selenium. Optionally you

can also install 7-Zip for opening Zipped files, and Notepad++ which allows you to look out the source

codes of different programming languages.

Presentation

1. Selenium Tutorial Course Details

2. Selenium and IDE Overview

3. Installing Selenium IDE

4. Running a Simple Test

5. Creating Selenium Test Suites

6. Exercises On Selenium IDE

7. Installing useful tools

8. Installing 7 Zip

9. Installing NotePad++

Exercises:

1. Energy Efficient Test Cases for

Yahoo

GE

Bing

Google

2. Energy Efficient Test Suite

Page 3: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 3 of 11

Week 2: - Quick Tour for Selenium IDE & STLC

Week two focuses on Selenium IDE Tool. The first section introduces and provides detailed

description about each of the features available within Selenium IDE. Age classification

exercises will demonstrate to the students how to use different Selenium IDE options. The

second section provides advanced features about how to add your own custom formatters for

Selenium. The Google Map exercise demonstrates how to specifically look for an element within

a page.

Optionally provides overview about Software testing life cycle (STLC) in parallel with Software

development life cycle.

Presentation

1. Quiz on Week 1

2. Quick Tour of Selenium IDE - Simple Features

3. Quick Tour of Selenium IDE - Advanced Features

4. Software Testing Life Cycle

5. Exercises for Week 2

6. Exercise Answers for Week 1

Exercises:

1. Age Classification Problem

2. Google Maps Direction Problem

3. Customized Formats to convert the Selenium Test Cases

1. CSV and TAB

2. StoreTestIQ Format (Pipe) and Double Tilde format

4. Export to Different languages

Page 4: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 4 of 11

Week 3: - Selenium Concepts and Commands

The week three starts with Selenium concepts like actions, assessors and asserts and explains the

selenium locators and pattern matchers.

The second section provides details and examples for

Variable Substitution

Stored Vars and Maps

JavaScript Evaluation

Handling Alerts, Prompts and Confirms

Browser commands like goBack and refresh

Navigator Properties

Presentation

1. Quiz on Week 2

2. Installing Selenium Plug-ins & Usage

3. Selenium Concepts

4. Selenium Commands - Part I

5. Exercises on Week 3

6. Answers for Week 2

Exercises:

1. Variable Substitution - HelloWorld

2. StoredVars – Yahoo Login

3. JavaScript Evaluation – Barnes & Nobles

4. Alert – onload alert and click alert

5. GoBack and Wait

6. Navigator Properties

7. Test Suite on Commands

Page 5: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 5 of 11

Week 4:- Regular Expressions in Selenium & Selenium Locators

The week four continues with the commands from the third week and introduces Regular

Expression Tester Tool Firefox plugin. Introduces regular expression Meta characters and

demonstrates within Regular Expression Tester tool how to create different regular expressions

from the scratch. How to use regular expressions within Selenium is demonstrated using

different Selenium IDE examples like ShowWinName and UserInputForm.

The second section of the week four focuses on introducing Orange HRM application which is

used for several examples. Provides example for narrating your selenium test cases.

Presentation

1. Quiz on Week 4

2. Selenium Commands Continued from last week (same document)

3. Using Regular Expressions in Selenium IDE

4. Narrating Selenium Test Cases

5. Orange HRM Project Overview

6. Exercise on Commands

Exercises:

1. ShowWinName – Regular Expression

2. UserInputForm – Regular Expression

3. Examples for Narrating Test Cases

4. Solved Example for Devry Popup Window

5. Different ways to find Page Load Time

6. List of courses – Example for using XPath Count

Page 6: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 6 of 11

Week 5:- Selenium Core & Orange HRM Case Study

The week five focuses on installing Selenium core and demonstrating how to use Selenium core

and running test cases in different browsers like IE, Firefox and Google Chrome.

During the week five Orange HRM Case study exercises are created and provided how to handle

Selenium IDE to create Unique Random values along with other two test cases.

Applying CSS on your selenium test cases and make it presentable manner is shown with

example.

Presentation

1. Quiz on Week 4

2. Installing Selenium Core

3. Case Study - OrangeHRM Test Cases

4. Applying CSS for Selenium HTML Test Cases

5. Selenium Core Overview

6. Running Selenium Core Test Suites

7. Exercises for Week 5

Exercises:

1. Orange HRM Case Study Test Cases

2. Applying CSS to Selenium HTML Test Cases

3. Selenium Core Test Suites

a. Using Commands Suite

b. School Test Suite

c. GE Test Suite

d. OrangeHRM Test Suite

Page 7: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 7 of 11

Week 6:- Learning Ruby Basic & Advanced

The week six focuses on teaching fundamentals of Ruby. Ruby codes are executed via irb, SciTe

and command line Ruby.

Presentation

1. Quiz on Week 5

2. Installing Ruby

3. Installing SciTE

4. Exploring Ruby - Basic

5. Exploring Ruby - Advanced

6. Books to buy or read

Exercises:

1. Irb - exercises

2. Basic – Ruby

if, case, unless, while, until, for examples 3. Advanced – Ruby

method, singleton, animal1, animal2, animal3, module, time, csv, random, regex

examples

Page 8: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 8 of 11

Week 7:- Selenium RC in Interactive Mode and Ruby Overview

The week seven focuses on Selenium RC and starts with Selenium Server in interactive mode, by

executing the existing HTML test cases in interactive mode. Introduces varies browser modes in

interactive mode and explains Selenium Server command lines using Selenium Server Launcher

GUI tool. Takes a simple example and converts them in to Selenium Ruby and provides how to

run that in different browsers.

Presentation

1. Quiz on Week 6

2. Installing JRE

3. Installing Selenium Server

4. Installing Selenium Server Launcher

5. Installing Selenium Client for Ruby

6. Selenium RC Overview

7. Running Selenium RC in Interactive Mode

8. Selenium on Ruby Overview

9. References

Exercises:

1. Selenium References for different languages

2. Example for Selenium RC in interactive mode

a. Using Session ID

b. Without Using a Session ID

3. Running Test Suites in Selenium on Ruby

4. Starting & Stopping Selenium Server Using Batch Scripts

Page 9: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 9 of 11

Week 8:- OrangeHRM Ruby Test Cases & MySQL DB

The week eight focuses on using Selenium RC to automate the OrangeHRM test cases. It takes

existing OrangeHRM Selenese Test Cases, converts them into Ruby format. Modify the test

cases to run using Selenium RC without any problem. Create test suites using two different

methods namely using "Ruby Require" method and "Ruby Test/Unit module" methods. Create a

batch file to run automatically the test suite and to send the results to your e-mail id.

As an added bonus, if time permits, install MySQL Server and use Ruby to create table(s) and do

the operations like Insert and Select. Install the workbench and ruby gems to access MySQL.

The second section demonstrates how to use MySQL workbench to create EER Model and

forward engineering to create the database and tables.

Presentation

1. Quiz on Week 7

2. Installing MySQL Community Server

3. Installing MySQL WorkBench

4. Installing Ruby DB Gems

5. Using MySQL WorkBench

6. Ruby Orange HRM Test Cases on Selenium RC

7. Ruby Data Base Access

Exercises:

OrangeHRM o HTML Test Case/Test Suite

o Ruby Test Cases/Test Suite

o Running Test Cases using command script

o Running Test Results using Email

MySQL Workbench

o DB Connection

o Creating Schema in EEP Model

o Forward Engineer

o SQL Editor

o Using Ruby to access DB

Page 10: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 10 of 11

Week 9:- Data Driven Testing Using Selenium & Ruby

The week nine provides an overview about data driven testing using Selenium. The different

Ruby language specific Data Sources are introduced. Learn to read the CSV and XML files using

Ruby. Later create Orange HRM test cases to get the data from different sources. The example

test cases will focus on reading from CSV (Comma Separated Values) and XML (eXtensible

Markup Language) files and using the data within your test cases.

Presentation

1. Quiz on Week 8

2. Overview of Data Driven Testing

3. Ruby Data Sources

4. Selenium Test Cases Using CSV

5. Selenium Test Cases using XML

Exercises:

1. XML Examples

2. OrangeHRM Ruby Test Cases - CSV

a. Test case for a single user

b. Test case to handle multiple user ids

3. OrangeHRM Ruby Test Cases - XML

4. OrangeHRM Test Case for PIM

Page 11: Course Catalog for Selenium Automation Using Ruby Language

Course Catalog for Selenium Automation Using Ruby Language

http://www.kavinschool.com Contact Us: 1-510-991-7591 Page 11 of 11

Week 10:- Data Driven Testing Using Random Values & Overview of Selenium

Grid

The tenth session focuses on overview of Selenium Grid and the remaining portion of the data

driven testing using random data. Initially the random packages Random-Data and Faker

introduced, later OrangeHRM website examples are created to use the Random Package. How to

handle page and form related errors and the test cases are also modified to handle the screen

capture capabilities of Selenium.

Presentation

1. Quiz on Week 9

2. Gems Installation for Random Values

3. Test Cases using Random Values

4. Selenium Grid Overview

Exercises:

Ruby o Faker Examples

o Random Data Examples

Orange HRM Test Cases Using Random Data o ESS Contact – HTML Test Case

o ESS Contact – Ruby Test Case with Random Values

o ESS Contact Sending Test Case results using Email

o ESS Contact – Screenshots for Browser Side Errors