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 - While merging two object repositories using Merge Tool, if an object in the secondary repository has the same name, description properties and values as an object in the primary object repository which has some additional properties and values, how this conflict can be handled?

  1. By keeping the object added from the primary object repository only.

  2. By keeping the object added from secondary repository only.

  3. By keeping the object added from both the repository.

  4. by ignoring both repository and adding a fresh new object.

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

B - (2) and (4) Only

C - (2) and (3) Only

D - (3) and (4) only

Answer : A

Explanation

You can handle this conflict by either adding objects from primary object repository only or only from secondary object repository or both..

Q 2 - What can be used to capture timings in your test?

  1. StartTransaction and EndTransaction

  2. StartTime and EndTime

  3. Timer

  4. Sync

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

B - (3) and (4) Only

C - (1) and (3) Only

D - (2) and (4)

Answer : C

Explanation

StartTransaction and EndTransaction can be used to capture timings, instead of this you can also use Timer function.

Q 3 - Which names are used to identify the status of your application before and after your automated test executes?

  1. initial condition

  2. static state

  3. end condition

  4. done condition

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

B - (3) Only

C - (1) and(3) Only

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

Answer : C

Explanation

A point to note here is that when you are iterating over a specific business process the initial and end conditions should be same.

Answer : B

Explanation

Design time data table is used to store data for input parameters.

Q 5 - Which Recording mode records mouse and keyboard operations.

A - Analog

B - Low

C - Normal

D - Insight

Answer : A

Explanation

Analog Recording mode records mouse and Keyboard Operations.

Q 6 - Which method retrieves a property of a runtime object?

A - GetROProperty

B - GetTOProperty

C - GetRuntimeObjectProperty

D - GetRTProperty

Answer : A

Explanation

GetROProperty retrieves a property of a runtime object.

Q 7 - If you have defined an input parameter for an action as "TestId", which of the following can be used to retrieve this parameter value?

A - Parameter("TESTID")

B - Parameter("TestId")

C - Parameter("testid")

D - Parameter("TestID")

Answer : B

Explanation

Input or output action parameter names are case sensitive.

Q 8 - After registering a function to a test object using RegisterUserFunc, it is displayed as .... in Keyword view and Step Generator.

A - Item

B - Operation

C - Library

D - Arguments

Answer : B

Explanation

After registering a function to a test object using RegisterUserFunc, it is displayed as Operation in Keyword view and Step Generator.

Answer : D

Explanation

Defualt mandatory properties for an WebImage Object are – alt, html tag and image type.

Q 10 - In the test results, square brackets around a test object name indicate that the test object was dynamically created using which functions? (Select two.)

  1. Child Objects method

  2. Smart Identification

  3. DynamicBuild method

  4. Create method

  5. Programmatic Description

A - (2) and (5)

B - (3) and (1)

C - (2) and (4)

D - (1) and (5)

Answer : D

Explanation

Child Objects method and Programmatic Description

qtp_questions_answers.htm
Advertisements