Keyword Driven Framework in Automation – User friendly Tech help

What is a Keyword Framework?
n
nKeyword Driven Framework refer to an application-independent automation framework, where for a particular test case, we would create an set of keywords and then associate an action (or function) which each of these keyword.These keywords run independent of the test automation tool used to execute them and the test script code that “drives” the application-under-test and the data. 
n
nWorking Copy of the Keyword Driven Framework
n
Keyword-driven tests look very similar to manual test cases. In a keyword-driven test, the functionality of the application-under-test is documented in a table, as well as in step-by-step instructions for each test.
n
nImplementation:- 
nIt can be implemented in two ways:-
n
n1.Keywords are associated with entire functions
n(Refer the below example, here ‘COMMENT,LAUNCH,VERIFYRESULT‘ refers the complete operation)
n
n2.Keywords are associated with the lowest level operation on an object
n(‘Click‘ keyword in the below example)
n
nExample:-
nLets say we want to automate “Windows Calculator” and following is our test case:-
n1.Go to Run and Type Calc
n2.Do addition operation on 2 buttons
n3.Check the Result
n
nNow lets design a Keyword driven sheet for the above test case:-n

n

n

n

n

n

n

n

Keyword Driven Test Sheet

n

nTest Details:-Steps to be performed.
nMainWindow :- Application window
nKeyword:- This column lists the action taken with the mouse (or by the tester).Here we have two types of Keyword, Function (COMMENT,LAUNCH,VERIFYRESULT) and Step-by-Step(like Click)
nObject:- Main object on which action is taken in our case it is only Button
nValue:-This Arguments column represent the value that we have passed to the object while performing the operations (1, 2, 3, 5, +, -, and so on).
n
nWe can define Keyword more specifically, as follows
n
What is Keyword?
nKeyword:-Any word as the key to a code or a reserved word to identify a specific command. Keywords trigger specific functions in the framework to perform a specific operation on the desired object in the application.
n
nExamples of Keywords:-

n

    n

  •  Test Objects  ->Winedit,Weblist,Dialog
  • n

  •  Functions -> COMMENT,LAUCH,REUSLT,BULITIN
  • n

  •  Methods ->Set, Click
  • n

  •  Statement ->Dim, If Endif
  • n

  •  Operator -> *,+
  • n

n

Understanding Keyword Driven Framework in UFT

n

Meaning of Automation Framework

Was this article helpful?
YesNo

Similar Posts