QTP Online Quiz


Advertisements


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 - Steps recorded using Analog recording can be editable in keyword view.

A - True

B - False

Answer : B

Explanation

We cannot edit Analog recording steps

Q 2 - Which of the following is a recovery operation available in UFT?

  1. Click Button with label

  2. Click Link with Text

  3. Click Default Button/Press the Enter Key

  4. Click Cancel Button/Press the Enter Key

  5. Mouse Left/Right Click

  6. Press Key or Key Combination

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

B - (1) and (3) Only

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

D - (3) (4) and (5) Only

Answer : A

Explanation

The valid recovery operations are Click Default Button/Press the Enter Key, Click Cancel Button/Press the Escape Key, Click Button with Label and Press Key or Key Combination.

Answer : A

Explanation

It comprises of calls to actions

Q 4 - Which statement type can you use in your test to wait for a condition to be met and fail the test if it times out before meeting the condition?

A - pause method

B - exist method

C - standard checkpoint

D - wait statement

Answer : C

Explanation

Standard Checkpoint helps testers to wait for a condition to be met and fail the test if it times out before meeting the condition

Q 5 - You are creating a recovery scenario to handle a pop-up message box with OK Button. Which recovery option should you select?

A - Keyboard or mouse operation

B - Close application process

C - Function call

D - Restart Microsoft Windows

Answer : A

Explanation

Keyboard or mouse operation is the appropriate recovery operation to be used.

Q 6 - What happens during a run session, if an object is contained in both local and shared repositories.

A - QTP uses objects from Shared Repository

B - QTP uses objects from Local Repository

C - Run Error occurs

D - QTP does not identify the object and skip the step.

Answer : B

Explanation

If an action uses an object contained in both local and shared repository QuickTest always searches for and uses objects in the local object repository.

Q 7 - If you have not saved your test with active screen files and later you want to edit your test using active screen options. How can you regenerate the active screen information?

A - you can not edit it now, test should be re-designed.

B - performing the maintenance run.

C - performing the update run.

D - Saving the active screens resources with test.

Answer : C

Explanation

Active screen can be regenerated by performing the update run.

Q 8 - What is the shortcut key for the standard checkpoint?

A - F8

B - F10

C - F11

D - F12

Answer : D

Explanation

Shortcut key for the standard checkpoint is F12.

Q 9 - Which objectRepositoryUtil method is used to add an object to the object repository?

A - Load

B - GetObject

C - AddObject

D - Add

Answer : C

Explanation

You can add an object to Object Repository using the ObjectRepositoryUtil method AddObject.

Q 10 - How does HP UFT identify each object you record? (Select two.)

  1. by class

  2. by properties

  3. by methods

  4. by ID

  5. by name

A - (1) and (3) only

B - (2) and (4) only

C - (1) and (2) only

D - (4) and (5) only

Answer : C

Explanation

UFT recognizes objects through class and properties


qtp_questions_answers.htm

Advertisements