Saturday, May 21, 2011

Linear Scripting QTP Framework


It is the simplest of all Frameworks and also known as "Record & Playback".


In this Framework,
  1.  Tester manually records each step (Navigation and User Inputs).
  2.  Inserts Checkpoints (Validation Steps) in the first round. 
  3.  Plays back the recorded script in the subsequent rounds.

Advantages:
  1. Fastest way to generate script (No programming is required at all).
  2. Automation expertise not required.
  3. Easiest way to learn the features of the Testing Tool.

Disadvantages:
  1. Little reuse of scripts (functions are not used).
  2. Test data is hard coded into the script (Data table is not used).
  3. Maintenance Nightmare (If the requirement/test data is changing very frequently then it’s very difficult to modify).

Example:


Consider logging into an application and checking whether the application has loaded on successful log-on. Here, the tester will simply record the steps and add validation steps.


Dialog("Login").WinEdit("Username:").Set "Ankur"

Dialog("Login").WinEdit("Password:").Set "Password1"

Dialog("Login").WinButton("OK").Click

No comments:

Post a Comment

Search This Blog