Keyword Driven Testing

Keyword Driven Methodology

Keyword Driven Methodology:

Generating Tests manually using shared object repositories

Keyword driven Testing:

In this approach keywords can be used to design and execute Tests

Ex:

Test Object, Utility object, Automation object, Method, VBScript Statement, Function, Action
Etc...

Steps to create Tests using Shared object Repositories:

i) Create shared object repositories

(It is one time activity, once you create shared repositories then You and Your team members use them multiple times)

ii) Associate shared object repositories

Or

Load shared object repositories during run-time

iii) Generate statements

    Using Editor View

    Or

    Using Keyword view

    Or

    Using Step Generator

    Or

    By drag and drop objects from OR to editor

------------------------------------------------------------
Step Generator

Design -> Step Generator

Or

F7
-----------------

It is a library of functions and utility objects, used to generate recordable and non-recordable Steps or Statements.


Non-recordable steps
-------------------

Examples:

i) Operations on disabled objects

Ex:
Total = Window("Flight Reservation").WinEdit("Total:").GetVisibleText()
Msgbox Total

ii) Irregular operations

Dialog("Login").WinEdit("Agent Name:").Set "Hyderabad" -Regular Operation
Agent_Name = Dialog("Login").WinEdit("Agent Name:").GetVisibleText() -Iregular operation
Msgbox Agent_Name

iii) operations on static objects (Ex: messages etc...)

Message = Dialog("Login").Dialog("Flight Reservations").Static("The password is 'MERCURY'").GetVisibleText()
Msgbox Message

0 comments:

Post a Comment