Automation Testing, Manual Testing, QTP/UFT 11 , QC/ALM 11 ,SAP TAO, Unix, Selenium, Oracle SQL, Shell Scripting and For Online Trinings to contact me : Cell:+91-8897972059 , Email Id : quicktestprotech@gmail.com

Wednesday, August 17, 2011

QTP 11.0 (HPO-M47) Certification Exam Model Questions -2


1) Object Spy can be found in __________ menu.

A. Tool
B. Tools
C. Task
D. Tasks

2) The ________________ displays the open documents side-by-side.

A. Tile Vertically
B. Tile Horizontally
C. Cascade
D. Tile Cascade

3) For opening the Quick Test Professional Help we can use _________

A. F3
B. F5
C. F1
D. F2

4) If QTP cannot find any object that matches the description, or if it finds more than one object that matches, QuickTest may use the ___________________ mechanism to identify the object.

A. Ordinal Identifier
B. Index Identifier    
C. Smart Identification
D. Assistive Identification

5)  You can configure the _________ and ___________.properties that QuickTest uses to record descriptions of the objects in your application

A. Mandatory, assistive, and ordinal identifier
B. Mandatory, required, and ordinal identifier
C. Smart, assistive, and ordinal identifier
D. Index, assistive, and ordinal identifier

6)  The ___________ property set for each test object is created and maintained by QuickTest.

A. Run-Time Object
B. Test Object        
C. Smart Identification Object
D. Assistive Object

7) You can access and perform ______________ methods using the Object property.

A. Run-Time Object
B. Test Object        
C. Smart Identification Object
D. Assistive Object


8)  You can view or modify the test object property values that are stored with your test in the _______________

A. Information Pane
B. Data Table
C. Information Pane & Data Table Both
D. Object Properties & Object Repository dialog box.

9)  You can retrieve or modify property values of the test object during the run session by adding _______________ statements in the Keyword View or Expert View.

A. GetROProperty & SetROProperty
B. GetTOProperty & SetTOProperty
C. GetTOProperty & SetROProperty
D. GetROProperty & SetTOProperty

10) If the available test object methods or properties for an object do not provide the functionality you need, you can access ______________ of any run-time object using the Object property.

A. The internal methods and properties
B. The mandatory methods and properties
C. The selective methods and properties    
D. The assistive methods and properties

11) The Information pane provides a list of _________ in the test:

A. Semantic errors 
B. Syntax errors 
C. Common errors 
D. Logic errors

12) When we switch from Expert view to the Keyword view, QTP automatically checks for syntax errors in the test and shows them in the information pane.


A. True         
B. False

13) If the information pane is not open, QTP automatically opens it in case a syntax error is detected.

A. True         
B. False

14) The __________ provides a list of the resources that are specified in your test but cannot be found.


A. Missing pane
B. Missing Resources pane                      
C. Resources pane
D. Missing Items pane


15) Whenever you open a test or a function library, QTP automatically checks for the availability of specified resources.


A. True
B. False

16) The Data Table does not assist you in parameterize your test.

A. True         
B. False

17) Tabs in the Debug Viewer pane are:


A. Watch, Variables, Debug
B. Watch, Data, Command
C. Watch, Variables, Command      
D. View, Variables, Command


18) The ________ tab enables you to view the current value of any variable or VBScript expression.


A. Watch
B. View         
C. Locate
D. Current


19) The _________ tab displays the current value of all variables that have been recognized up to the last step performed in the run session.

A. View         
B. Variables
C. Locate
D. Current


20) The___________ tab enables you to run a line of script to set or modify the current value of a variable or VBScript object in your test or function library.


A. View         
B. Variables
C. Command
D. Current



Question Number
Answer
1
B
2
A
3
C
4
C
5
A
6
B
7
A
8
D
9
B
10
A
11
B
12
A
13
A
14
B
15
A
16
B
17
C
18
A
19
B
20
C

QTP 11.0 (HPO-M47) Certification Exam Model Questions -1


1) QuickTest processes comments when it runs a test.

A. True
B. False

2) Press __________ to add a new step below the currently selected step.

A. F8           
B. Shift + A            
C. F0           
D. Shift + A + Q

3) While working with the Keyword View, you can _________ steps to move them to a different location in a test or in an action

A. Copy and Paste   
B. Cut and Paste     
C. Drag and drop     
D. Both A. and C.

4) You can specify the order in which the columns are displayed in the Keyword view.

A. True                  
B. False

5) You can view _________ while working with keyword view.

A. Object properties           
B. Action properties           
C. Action call properties
D. Checkpoint properties     
E. Output value properties   
F. None of the above         
G. All of above

6) You cannot manage some aspects of a local object repository using the QuickTest Object Repository automation object model.

A. True                  
B. False

7) For each action, you can use a combination of objects from your local and shared object repositories.

A. True                  
B. False

8) QuickTest adds all new objects to the local object repository even if one or more shared object repositories are already associated with the action assuming that an object with the same description does not already exist in one of the associated shared object repositories.

A. True                  
B. False

9) If a child object is added to a local object repository, and its parents are in a shared object repository, then you have to manually drag and drop its parent objects from shared object repository to local object repository.

A. True                  
B. False

10) The ________ is not accessible as a separate file

A. Local object repository             
B. Shared object repository
C. Both                                     
D. None

11) You can use the Keyword View to add a step ___________ in your test.

A. At the end
B. Below the currently selected step
C. At the beginning
D. At any point

12) The Documentation cell is ___________.

A. Read-only
B. Write-only
C. Read and Write
D. Read write & execute

13) An Item column can be any of the following:

A. A test object
B. A statement like Dim
C. A step generated by step generator
D. All of above


14) The Operation cell in the keyword view specifies the operation to be performed on the item listed in the ___________ Column.

A. Operation
B. Documentation
C. Item
D. Value


15) Even if the Item column in the Keyword View is displayed to the right of the Operation column, you must still first select an item to view the list of available operations in the Operation column.

A. True
B. False

16) The Value cell in the keyword view can contain ___________ Value

A. Constant
B. Parameter
C. Both A. & B.        
D. None of these

17) The ______________ enables you to encode your passwords and place secure values into the Data Table.

A. Password Encoder
B. Password Decoder
C. Password Encode
D. Password Decode

18) You can also encrypt strings in Data Table cells using the _____________ option in the Data Table menu.

A. Decrypt
B. Encrypt
C. Encrypt Code      
D. Decrypt Code

19) In addition to adding standard statement steps to your test using the Keyword View, you can also insert

A. Checkpoint step
B. Output value step
C. Comment step     
D. All of above

20) The correct syntax of the conditional statement starting with Do is ________

A. Do While             
B. Do Until              
C. Do Next    
D. Both A. and B.

QTP 11.0 Certification


QTP 11 Version was introduced in September 2010, in July 2011 QTP 11 certification (Code: HPO-M47) has been introduced in place of QTP 10.


Changes in between QTP 10 and QTP 11 Certification Exams:


For QTP 10.00 and for earlier versions we need take both Quality Center and QTP exams to get AIS (Accredited Integration Specialist) Certificate. Starting with QTP 11 we just take one core exam that is HP AIS –Functional Testing (Code: HPO-M47) in formally known as QTP 11.0 certification.
QTP 11 Certification Exam Details:

  • Exam type: Objective (Multiple Choice)

  • Exam Duration: 105 Minutes

  • Number of Questions (items): 72

  • Pass percentage: 75%



Syllabus for QTP 11 (HPO- M47) Certification Exam

SNO                       Sections                                                                Percentage of Items
I)              Automated Test Planning                                                           10%
II)            Creating Basic Tests and Working with Objects                          19%
III)           Test Verification & Enhancements                                               24%
IV)           Modular automated test builds                                                    11%
V)            QTP and ALM integration                                                             7%
VI)           Automated test troubleshooting                                                    10%
VII)           Advanced QTP Scripting                                                               4%
VIII)          Expert View                                                                                   7%
IX)           Web applications                                                                            8%


Detailed Syllabus


I) Automated Test Planning

  • Plan for Test Automation.

  • Plan for QTP testing.

  • Identify and describe features and settings.

  •  Explain QTP licensing and packaging.


II) Creating Basic Tests and Working with Objects

  •  Create the basic test.

  •  Explain how QTP works with objects.

  • Add steps without recording.

  • Object Identification Configuration and Smart Identification



III) Test Verification & Enhancements

  • Add Checkpoints

  •  Enhance tests with parameters.

  • Define Test results

  •  View test results.


IV) Modular automated test builds

  • Build Modular Tests using Actions

  • Using Shared Object Repositories.


V) QTP and ALM integration

  • Explain the QTP/ALM connection.

  •  Define ALM management of QTP resources.

  • Explain versioning features in QTP


VI) Automated test troubleshooting

  • Troubleshoot Object Recognition problems.

  • Use Recovery scenarios.

  • Use the Debugging Tool.

  • Measure System Performance.

  • Configure log tracking


VII) Advanced QTP Scripting

  •  Import and export Excel sheets.

  • Get and set object properties.

  • Using Programmatic Descriptions to bypass repository.



VIII) Expert View

  • Features of Expert View

  •  Describe dynamic object programming.

  • Identify and describe VBScript elements.


IX) Web applications

  • Recognize Web Add-in Extensibility.

  • Describe Web event recording use and configuration.

  • Identify new web testing capabilities.


 ------------------------------------------------------------
Note: Maximum items (Questions) on QTP Tool features only, Less / no importance for Scripting logic (VB Script). Industry point of view and Product Understanding point view Certification is useful, but work point of limited use only.

In order to get certification -

  •  Explore all Tool Menus and remember QTP commands and Shortcut keys

  •  Read HP QTP Documentation

  • Collect Exam papers dumps and Practice

  • Practice Tool features


------------------------------------------------------------------ 
Model Questions


1)  You can view _________ while working with keyword view.


A. Object properties           
B. Action properties           
C. Action call properties
D. Checkpoint properties     
E. Output value properties   
F. None of the above         
G. All of above




2)  You cannot manage some aspects of a local object repository using the QuickTest Object Repository automation object model.


A. True                  
B. False




3)  For each action, you can use a combination of objects from your local and shared object repositories.


A. True                  
B. False


4)  QuickTest adds all new objects to the local object repository even if one or more shared object repositories are already associated with the action assuming that an object with the same description does not already exist in one of the associated shared object repositories.


A. True                  
B. False


5)  If a child object is added to a local object repository, and its parents are in a shared object repository, then you have to manually drag and drop its parent objects from shared object repository to local object repository.


A. True                  
B. False


6)  The ________ is not accessible as a separate file


A. Local object repository             
B. Shared object repository
C. Both                                     
D. None


7)  You can use the Keyword View to add a step ___________ in your test.


A. At the end
B. Below the currently selected step
C. At the beginning
D. At any point


8)  The Documentation cell is ___________.


A. Read-only
B. Write-only
C. Read and Write
D. Read write & execute


9) An Item column can be any of the following:


A. A test object
B. A statement like Dim
C. A step generated by step generator
D. All of above


10)  The Operation cell in the keyword view specifies the operation to be performed on the item listed in the ___________ Column.


A. Operation
B. Documentation
C. Item
D. Value


11)  Even if the Item column in the Keyword View is displayed to the right of the Operation column, you must still first select an item to view the list of available operations in the Operation column.


A. True
B. False


Answers:


1)
G
2)
B
3)
A
4)
A
5)
B
6)
A
7)
D
8)
A
9)
D
10)
C
11)
A

Tuesday, July 26, 2011

HP ALM11 Business Process Model Vedio


QTP Secret Code Chart Revealed For DeviceReplay PressKey, KeyDown, KeyUp and PressNKeys

QTP Secret Code Chart Revealed For DeviceReplay PressKey, KeyDown, KeyUp and PressNKeys



Why this post?
Let’s face it. If you’ve been doing test automation for any length of time you’ve faced situations in which you need to perform mouse or keyboard actions using screen coordinates.
When the Set and Type Methods Suck:
Even though most objects have Set and Type methods, these methods -- for whatever reason -- may not work in all situations. If they don’t then your next step may be to try VBSCript’s sendkey method. But even sendkeys sometimes do not have a way to perform certain actions, such as pressing the left alt key. Hence the need for QTP’s undocumented Device Replay features.
No ASCII No Problem:
A few months back, I posted an article outlining three different ways to use keyboard input in QTP. I recently came across some more Device Replay Key codes for the PressKey, Keydown, Keyup and PressNKeys that I’d like to share with you. These methods are particularly helpful in certain situations in which you need to perform an action using a code that does not have an ASCII equivalent.
Chart of the keyboard key codes for the PressKey, Keydown, Keyup and PressNKeys:
The number keys:
KeystrokeCode to use
11
22
33
44
55
66
77
88
99
00
The keypad number keys:
KeystrokeCode to use
179
280
381
475
576
677
771
872
973
082
The Function keys:
KeystrokeCode to use
F159
F260
F361
F462
F563
F664
F765
F866
F967
F1068
F1187
F1288
The Letter keys:
KeystrokeCode to use
A30
B48
C46
D32
E18
F33
G34
H35
I23
J36
K37
L38
M50
N49
O24
P25
Q16
R19
S31
T20
U22
V47
W17
X45
Y21
Z44
The Enter,Space,Shift,Ctrl and Alt keys:
KeystrokeCode to use
ENTER28
SPACE57
LEFT SHIFT42
LEFT CTRL29
LEFT ALT56
RIGHT SHIFT54
RIGHT CTRL157
RIGHT ALT184
;39
'40
,51
.52
/53
The Weird/Other keys:
KeystrokeCode to use
-12
[26
]27
`41
=13
BACKSPACE14
CAPSLOCK58
DELETE211
DOWN208
END207
HOME199
INSERT210
LEFT203
NUMLOCK69
KEYPAD DECIMAL83
KEYPAD DIVIDE181
KEYPAD ENTER156
KEYPAD MINUS74
KEYPAD MULTIPLY55
PAUSE116
PAGE DOWN209
PAGE UP201
RIGHT205
SCROLL LOCK70
TAB15
UP20O
Examples:
'Device Replay Example using the calculator with the multiple key
Set myReplay = Createobject("Mercury.DeviceReplay")
SystemUtil.Run "calc.exe"
Window("regexpwndtitle:=Calculator").Activate
myReplay.PressKey 73'9
wait 1
myReplay.PressKey 55' Keypad Multiply
wait 1
myReplay.PressKey 81'3
wait 1
myReplay.PressKey 156'Enter
The end result should be 27
'Device Replay Example using notepad with the shift key
Set myReplay = Createobject("Mercury.DeviceReplay")
SystemUtil.Run "notepad.exe"
wait 1
Window("nativeclass:=Notepad").Activate
wait 1
myReplay.KeyDown 42''Hold shift key down
wait 1
myReplay.PressKey 36'T
wait 1
myReplay.PressKey 24'H
wait 1
myReplay.PressKey 18'I
wait 2
myReplay.KeyUp 42'Press shift key up
wait 1
myReplay.PressKey 57 'space
wait 1
myReplay.PressKey 36' t
wait 1
myReplay.PressKey 24 'h
wait 1
myReplay.PressKey 18 ie
The example should type out: THIthi

QTP ASCII CHR() CODE CHART

                                             QTP ASCII CHR() CODE CHART





ASCII
Entering/Reading ASCII codes - when using QTP - is sometimes needed to achieve certain functionality.
ASCII stand for American Standard Code for Information Interchange and it is a character encoding scheme based on the English alphabet.
QTP has two built in functions (ASC and Chr) that are helpful to know when you need to work with ASCII info.
ASC() Function
ASC()  is a QTP function that returns the code of the character passed to it. For example if you wanted to know what the ASCII/ANSI code for the pound symbol #:
Msgbox Asc(“#”)
The above will return the code 35
Chr() Function
If you wanted to enter or search for the pound key in a string you would use the QTP Chr() function. This function will return the character associated with the code passed to it. For example:
Msgbox Chr(35)
This will return the pound sign.
Common ASCII codes for QTP
Here are some of the most common ASCII codes I often use in QTP:
QTP CODESYMBOLDESCRIPTION
Chr(34)"Double Quotes
Chr(10) Line Feed
Chr(13) Carriage Return
Chr(32) Space
Chart for all the QTP Chr() codes:
QTP CODESYMBOLDESCRIPTION
Chr(0)NULNull char
Chr(1)SOHStart of Heading
Chr(2)STXStart of Text
Chr(3)ETXEnd of Text
Chr(4)EOTEnd of Transmission
Chr(5)ENQEnquiry
Chr(6)ACKAcknowledgment
Chr(7)BELBell
Chr(8)BSBack Space
Chr(9)HTHorizontal Tab
Chr(10)LFLine Feed
Chr(11)VTVertical Tab
Chr(12)FFForm Feed
Chr(13)CRCarriage Return
Chr(14)SOShift Out / X-On
Chr(15)SIShift In / X-Off
Chr(16)DLEData Line Escape
Chr(17)DC1Device Control 1 (oft. XON)
Chr(18)DC2Device Control 2
Chr(19)DC3Device Control 3 (oft. XOFF)
Chr(20)DC4Device Control 4
Chr(21)NAKNegative Acknowledgement
Chr(22)SYNSynchronous Idle
Chr(23)ETBEnd of Transmit Block
Chr(24)CANCancel
Chr(25)EMEnd of Medium
Chr(26)SUBSubstitute
Chr(27)ESCEscape
Chr(28)FSFile Separator
Chr(29)GSGroup Separator
Chr(30)RSRecord Separator
Chr(31)USUnit Separator
Chr(32) Space
Chr(33)!Exclamation mark
Chr(34)"Double quotes (or speech marks)
Chr(35)#Number
Chr(36)$Dollar
Chr(37)%Procenttecken
Chr(38)&Ampersand
Chr(39)'Single quote
Chr(40)(Open parenthesis (or open bracket)
Chr(41))Close parenthesis (or close bracket)
Chr(42)*Asterisk
Chr(43)+Plus
Chr(44),Comma
Chr(45)-Hyphen
Chr(46).Period, dot or full stop
Chr(47)/Slash or divide
Chr(48)0Zero
Chr(49)1One
Chr(50)2Two
Chr(51)3Three
Chr(52)4Four
Chr(53)5Five
Chr(54)6Six
Chr(55)7Seven
Chr(56)8Eight
Chr(57)9Nine
Chr(58):Colon
Chr(59);Semicolon
Chr(60)<Less than (or open angled bracket)
Chr(61)=Equals
Chr(62)>Greater than (or close angled bracket)
Chr(63)?Question mark
Chr(64)@At symbol
Chr(65)AUppercase A
Chr(66)BUppercase B
Chr(67)CUppercase C
Chr(68)DUppercase D
Chr(69)EUppercase E
Chr(70)FUppercase F
Chr(71)GUppercase G
Chr(72)HUppercase H
Chr(73)IUppercase I
Chr(74)JUppercase J
Chr(75)KUppercase K
Chr(76)LUppercase L
Chr(77)MUppercase M
Chr(78)NUppercase N
Chr(79)OUppercase O
Chr(80)PUppercase P
Chr(81)QUppercase Q
Chr(82)RUppercase R
Chr(83)SUppercase S
Chr(84)TUppercase T
Chr(85)UUppercase U
Chr(86)VUppercase V
Chr(87)WUppercase W
Chr(88)XUppercase X
Chr(89)YUppercase Y
Chr(90)ZUppercase Z
Chr(91)[Opening bracket
Chr(92)\Backslash
Chr(93)]Closing bracket
Chr(94)^Caret - circumflex
Chr(95)_Underscore
Chr(96)`Grave accent
Chr(97)aLowercase a
Chr(98)bLowercase b
Chr(99)cLowercase c
Chr(100)dLowercase d
Chr(101)eLowercase e
Chr(102)fLowercase f
Chr(103)gLowercase g
Chr(104)hLowercase h
Chr(105)iLowercase i
Chr(106)jLowercase j
Chr(107)kLowercase k
Chr(108)lLowercase l
Chr(109)mLowercase m
Chr(110)nLowercase n
Chr(111)oLowercase o
Chr(112)pLowercase p
Chr(113)qLowercase q
Chr(114)rLowercase r
Chr(115)sLowercase s
Chr(116)tLowercase t
Chr(117)uLowercase u
Chr(118)vLowercase v
Chr(119)wLowercase w
Chr(120)xLowercase x
Chr(121)yLowercase y
Chr(122)zLowercase z
Chr(123){Opening brace
Chr(124)|Vertical bar
Chr(125)}Closing brace
Chr(126)~Equivalency sign - tilde
Chr(127) Delete

Loading...