QTP
Commands
***********************************************
QTP Commands are available in 3 ways.
1.Menu
options
2.Tool
Bar options
3.Short
cut keys (for Some important operations only)
File menu: Through file menu user can create, save
tests, open existing tests, export tests in zip format.
|
Command
|
|
|
New
> Test
|
|
|
New
> Business Component
|
|
|
New
> Scripted Component
|
|
|
New
> Application Area
|
|
|
New
> Function Library
|
|
|
Open
> Test
|
|
|
Open
> Business/Scripted Component
|
|
|
Open
> Application Area
|
|
|
Open
> Function Library
|
|
|
Close
|
|
|
Close
All Function Libraries
|
|
|
Quality Center Connection
|
|
|
Quality Center Version Control
|
|
|
Save
|
|
|
Save
As
|
|
|
Save
Test with Resources
|
|
|
Save
All
|
|
|
Enable
Editing
|
|
|
Export
Test to Zip File
|
|
|
Import
Test from Zip File
|
|
|
Convert
to Scripted Component
|
|
|
Print
|
|
|
Print
Preview
|
|
|
Settings
|
|
|
Process
Guidance Management
|
|
|
Associate
Library '<Function Library Name>' with '<Document Name>'
|
|
|
Recent
Files
|
|
|
Exit
|
Edit Menu: It provides editing options and renaming, deleting and
splitting actions.
|
Command
|
|
|
Undo
|
|
|
Redo
|
|
|
Cut
|
|
|
Copy
|
|
|
Paste
|
|
|
Delete
|
|
|
Copy
Documentation to Clipboard
|
|
|
Action
> Split
Action
|
|
|
Action
> Rename Action
|
|
|
Action
> Delete Action
|
|
|
Action
> Action Properties
|
|
|
Action
> Action Call Properties
|
|
|
Step
Properties > Comment Properties
|
|
|
Step
Properties > Object Properties
|
|
|
Step
Properties > Checkpoint Properties
|
|
|
Step
Properties > Output Value Properties
|
|
|
Step
Properties > Report Properties
|
|
|
Find
|
|
|
Replace
|
|
|
Go
To
|
|
|
Bookmarks
|
|
|
Advanced
> Comment Block
|
|
|
Advanced
> Uncomment Block
|
|
|
Advanced
> Indent
|
|
|
Advanced
> Outdent
|
|
|
Advanced
> Go to Function Definition
|
|
|
Advanced
> Complete Word
|
|
|
Advanced
> Argument Info
|
|
|
Advanced
> Apply "With" to Script
|
|
|
Advanced
> Remove "With" Statements
|
|
|
Optional
Step
|
View menu: Through this menu we can launch and close, active screen, Data Table, Debug viewer, information, missing resources etc.
Insert Menu: Through this menu user can inserting check
points, out put values, synchronizing points.
In
this menu step generator available, using this user can generate recordable and
non-recordable scripts.
Through
insert menu user can insert VB Script conditional and loop statements and
transaction points (Start and End).
Through
insert menu user can create new actions, call existing actions and copy
existing actions.
Automation Menu:
This
menu provides Record, Run options and Run setting options
Through
this menu we can start normal recording, analog recording and Low level
recording.
Through
this menu we can stop recoding, running and also we run tests.
|
Command
|
|
|
Record
|
|
|
Run
|
|
|
Stop
|
|
|
Run Current Action
|
|
|
Run from Step
|
|
|
Maintenance Run Mode
|
|
|
Update Run Mode
|
|
|
Analog Recording
|
|
|
Low Level Recording
|
|
|
Record and Run Settings
|
|
|
Process Guidance List
|
|
|
Results
|
Resources Menu:
This menu provides object repository and recovery scenarios options.
Through
this menu we can create /modify/delete objects information and we can associate
repositories.
Through
this menu we can create, modify and delete recovery scenarios.
|
Command
|
|
|
Object
Repository
|
|
|
Object
Repository Manager
|
|
|
Associate
Repositories
|
|
|
Map
Repository Parameters
|
|
|
Recovery
Scenario Manager
|
|
|
Associated
Function Libraries
|
Debug Menu:
This
menu provides debug commands for step by step execution.
Through
this menu we can insert/remove/break points.
Tools Menu:
This
menu provides Tools settings option, view options and object identification
configuration.
Through
this menu we can set tool options as well as test pane view options.
In
this menu object spy option available, through this we can get object’s
information.(Properties and values)
In
this menu Virtual object option available; through this option we can create
virtual objects.
|
Command
|
|
|
Options
|
|
|
View Options
|
|
|
Check Syntax
|
|
|
Object Identification
|
|
|
Object Spy
|
|
|
Web Event Recording Configuration
|
|
|
Data Driver
|
|
|
Change Active Screen
|
|
|
Virtual Objects > New Virtual Object
|
|
|
Virtual Objects > Virtual Object Manager
|
|
|
Customize
|
Window Menu:
This
menu provides QTP tool window style settings.
Help Menu:
This
menu provides QTP help as well as VB Script help.
Through
this menu we can contact technical support people and we can send feedback.
Through
this menu we can check for updates and download or install directly.
Migrating QTP 9.5 to 10.00
1. If the scripts are in QC we can follow below method
A. If all scripts are in Quality Center then you can simply use the "Asset Upgrade Tool for QC". There is a folder with that name on the QuickTest installation DVD.
2. If the upgrade tool doesn't work on any version earlier than v10.
There is another way to upgrade those scripts from QTP 9.5 to QTP 10?
A. you have to open the script in QTP 10 and save the same which is the suggested process of HP. request HP to provide a tool for this.
--------------------------------------------------------------------------------
From QTP help ("Convert a Set of Tests from an Older QuickTest Version to the Current Version" example in Open Method of Application object):
'************************************************************************************************************************
'Description:
'
'This example specifies a folder in which tests from an older QuickTest version are
'stored and then loops through each test in the folder (and its subfolders) to open
'each one and save it in the current version format.
'
'************************************************************************************************************************
Dim qtApp 'As QuickTest.Application ' Declare the Application object variable
Dim filesys
Dim maindir
Dim testCol
Dim checkfolder
' Create the QuickTest Professional object
Set qtApp = CreateObject("QuickTest.Application")
qtApp.Launch
qtApp.Visible = True
' Get the collection of test scripts
Set filesys = CreateObject("Scripting.FileSystemObject")
' TO DO: Sepecify the test script directory....
Set maindir = filesys.GetFolder("C:\temp")
Set testCol = maindir.SubFolders
' Loop through each test in the collection
For Each fl In testCol
' Verify the folder is a QTP test
checkfolder = fl.Path & "\Action0"
If (filesys.FolderExists(checkfolder)) Then ' The folder is a QTP test folder
' Convert test
qtApp.Open fl.Path, False, False
' wscript.sleep 1000
' Save converted test
qtApp.Test.Save
End If
Next
qtApp.Quit
' Release the File System Objects
Set testCol = Nothing
Set maindir = Nothing
Set filesys = Nothing
' Release the QuickTest Professional application object
Set qtApp = Nothing
Supposedly, this should do it if you run it on a machine with QTP 10 installed - though you would have to tweak it a bit for tests stored in QC. The idea is to open each test in edit mode, then save it.
No comments:
Post a Comment