Thursday, June 17, 2010

Shortcut key in QTP

  •  Normal Record Mode := F3
  • Analog Record Mode := Shift+alt+F3
  •  Low level Recording := Ctrl+shift+F3
  •  Stop Recording : =F4
  •  Run the Script := F5
  • comment block := Ctrl + M
  • Uncomment Block := Ctrl+Shift+M
  • Standard checkpoint := F12
  • Step Generator := F7
  • Run from Step: = Ctrl+F5
  • Step Info := F11
  • Step Out: = F10
  • Step Out: = Shift+F11
  • Run to Step := Ctrl+F10
  • Add to Watch: = Ctrl+T
  • Insert/ Remove Breakpoint: = F9
  • Enable / disable Breakpoint := Ctrl +F9
  • Clear All Breakpoints:= Ctrl+Shift+F9
  • Syntax Check := Ctrl + F7

Explain the difference between Keyword view and Expert view

Keyword view:

Keyword is a table view structure, it represent for each row for part of the action. It contain following view as below like “item, operation, value, documentation, assignment and comments “

Item
Represent hierarchical tree view of the Test object within the table. It contains following items available on
·         Test object
·         Utility object
·         Function call
·         Statement




Operation 

What operation should be performed for each test objects in the table view like..
·         Run
·         Set
·         Secure
·         Enter
·         Type
·         Select
·         Close


Value
File location, Path , Value, Inputs of the each Test objects








Documentation
It will capture the file location; Test objects inputs and each to understand the each test objects what does for the test objects in the application

Expert View:

QTP displays each step as a VBScript line or statement. In object-based steps, the VBScript statement defines the object hierarchy
Note: Test object and method names are not case sensitive
The following diagram shows how the same object hierarchy is displayed in the Expert View and in the Keyword View