Testers generally perform operations on application to check the functionality , so Quick Test record these operations in the form of vb scripting. With the help of recording, testers convert all test procedures or test steps into automation scripts. It's nothing but record helps to generate test scripts using Vb scripting.
Record Operations:
QTP generates test steps by recording the typical procedure that we perform n the application . A step is anything which a user does on the application, that changes the content of a page or object in the application. QTP supports three kind of recording modes
- Normal/ High level Recording/ Context sensitive recording
- Analog Recording
- Low Level recording
In this mode of recording QTP records the mouse and keyboard operations with respect to the Object or window , Simply it records the GUI objects. By default the QTP is always in normal mode. The Shortcut key to record is F3.
Record and Run Setting Wizard:
The purpose of this wizard is to choose the technology which we want to record . I mean which type of application we want to record . It has two technical environments
- Web Environment
- Windows Environment
When this operation is selected QTP records operation on any opened application .
- Step 1 In QTP click the record button.The Record and Run settings Dialog Box Opens.This box opens automatically each time you begin recording a new test
- Step 2 Record & Run settings shows a tabs corresponding to add-ins installed and loaded for your test.So, for example if you have SAP Add-in Installed and loaded you will see a SAP tab. The Windows Application tab is always available and be used for environments, such as Visual Basic, ActiveX, and terminal emulators.
- For any Environment, the Record and Run settings can be classified into two generic groups
- 1) Record & Run on ANY window belonging to that particular environment
- 2)Record & Run on a SPECIFIC window belonging to that particular environment - which is the recommended Option
- For the time being , lets stick to default settings .Once settings are done , QTP remembers and uses the same settings for additional record sessions on the same test, unless you manually open the Record and Run Settings dialog box to modify the settings.
- Step 3 Click okay. QTP Starts Recording Mode
- Step 4 Record the 5 test steps. In QTP , Stop recording. Save the script as "LogIn"
In this mode, QTP records mouse pointer movement. It has two types of analog recordings one is related to the screen and the second is relative to the specific window. If we record the analog relative to the screen then when we move the window from that location and if we run still the QTP records the mouse pointer movements at the previous location of the screen only. If we record the analog recording relative to the Window , then it will identify the location of the window moved and it will run accordingly. Short cut key for this analog recording is Shift+ Alt + F3.This is an optional recordng mode . The testers use this mode when they required to draw , paint and signature.This recording can be recorded only when we are recording an application. generally this key will be disabled.
Low Level Recording:
In this mode QTP records advanced tech objects or unrecognized objects. It particularly records all the movements of mouse pointer. QTP generally uses this mode and normal recording automatically depending upon the object properties. The Shortcut key to record in Low level Mode is Ctrl+ Shift+ F3
No comments:
Post a Comment