QTP Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to QTP Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 1 - When you create a bitmap checkpoint, UFT captures only the visible part of the object as bitmap, it does not capture anything which is scrolled off the screen.

A True

B False

Answer : A

Explanation

QTP/UFT captures only the visible part of the object when using bitmap checkpoint

Q 2 - Which function can be used to convert data from one subtype to another?

  1. Date

  2. Format

  3. CInt

  4. CStr

A - (2) (3) and (4) only

B - (3) Only

C - (1) and(3) Only

D - (3) and (4) only

Answer : D

Explanation

CInt converts to Integer and CStr converts to string.

Q 3 - How can you add recordable or non-recordable operations to your test?

  1. Use the Step Generator

  2. Insert through Keyword View.

  3. Drag objects from Available Keywords.

  4. Drag objects from the Data Table.

A - (1) (2) and (3) only

B - (3) and (4) Only

C - (1) (2) and(3) Only

D - All (1) (2) (3) and (4)

Answer : C

Explanation

It can be added using step generator or through keyword view or it can be dragged objects from available keywords.

Q 4 - You have defined a global synchronization timeout of 30 seconds for your test. The synchronization point timeout for a button to become enabled is set to 10000. During playback of the script, what is the maximum amount of time UFT will wait for the button to become enabled?

A - 10 seconds

B - 30 seconds

C - 40 seconds

D - 10030 seconds

Answer : C

Explanation

UFT waits up to the amount of time set for the object synchronization timeout option, plus the time set for the synchronization point timeout.

Q 5 - Which tab in the Debug Viewer pane allows you to view or change variables or properties?

A - Watch

B - Variables

C - Command

D - View

Answer : A

Explanation

Watch tab in the Debug Viewer pane allows you to view or change variables or properties.

Answer : B

Explanation

WebEdit("Name:=Author" , "Index:=3") is the correct syntax of descriptive programming.

Q 7 - You decided to parameterize a value using Random Number parameter, what option you will choose to generate a new number and use it for the parameter throughout the test?

A - Generate new random number for each action iteration

B - Generate new random number once per entire test run

C - Generate new random number for each test iteration

D - None of these

Answer : B

Explanation

Select ‘Generate new random number once per entire test run’ generates a new number which can be used throughout the test.

Q 8 - Which test object property is used to access native properties of a run-time object?

A - ChildObjects

B - GetROProperty

C - GetTOProperty

D - Object

Answer : D

Explanation

Object property of an object can be used to access native properties of a run-time object.

Q 9 - What are the options available under Quality Center version Control menu list?

  1. Check out, Undo Check out, Check In

  2. Check Out, Check In, Version History

  3. Check Out, Check In, Get Latest version

  4. Baseline History, Version History

  5. Verify Version, delete Version

A - (1) (2) and (3) only

B - (1) (4) and (5) Only

C - (1) (2) and (4) Only

D - (2) (3) and (5)

Answer : C

Explanation

Options available under Quality Center control menu are – Check out, Check in, Undo Check out, Version History,Baseline History.

Q 10 - You have defined a global synchronization timeout of 30 seconds for your test. The synchronization point timeout for a button to become enabled is set to 30,000. During playback of the script, what is the maximum amount of time HP UFT will wait for the button to become enabled?

A - 30 seconds

B - 33 seconds

C - 60 seconds

D - 30,030 seconds

Answer : C

Explanation

Synchronization point timeout is in ms. Hence 30,000ms = 30s. UFT will wait for 30+30 = 60seconds.

qtp_questions_answers.htm
Advertisements