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 - 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.

Q 3 - Where can you reset the add-in manager if it does not display when you launch UFT?

A - General Options

B - Run Options

C - Test Properties

D - Test Settings

Answer : A

Explanation

It is available under Tools menu.

Q 4 - Which step categories can be added using the Step Generator Tool ?

  1. run-time objects

  2. default object types

  3. test objects

  4. utility objects

  5. data objects

  6. Functions

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

B - (2) (4) and (6) Only

C - (1) (5) and(6) Only

D - (3) (4) and (6)

Answer : D

Explanation

Test object, utility objects and functions can be added using the step generator tool.

Q 5 - Which steps are required to connect to ALM from UFT? (Select three.)

  1. define a project

  2. connect to the server

  3. authenticate user

  4. create a user

  5. define a domain

  6. select a project

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

B - (1) (2) and (3)

C - (2) (3) and (6)

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

Answer : C

Explanation

Steps includes connect to the server,authenticate user and selecting a project.

Q 6 - Which DataTable method makes an external spreadsheet available to UFT?

A - GetSheet

B - OpenSheet

C - ImportSheet

D - ExportSheet

Answer : C

Explanation

ImportSheet method makes an external spreadsheet available to UFT.

Q 7 - 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 8 - When you set the path of your application at 'Record and Run Setting' to automatically open the application on recording, what is the statement that gets added in expert view for this step of opening application?

A - SystemUtil.Run

B - ExecuteFile

C - InvokeApplication

D - QTP does not add a statement for this statement.

Answer : D

Explanation

When you specify an application to open using the Record and Run Settings dialog box, QuickTest does not add a SystemUtil.Run or any other statement to your test.

Q 9 - Which statement can be used to handle unexpected errors in your test?

A - On Error Goto 0

B - On Error Goto ErrHandler

C - On Error Resume Next

D - ON Error SKIP

Answer : C

Explanation

We can use On error resume next in UFT script to handle unexpected errors.

Q 10 - What is the Return Type for Click method?

A - Number

B - String

C - Boolean

D - None

Answer : D

Explanation

Click method does not return anything.

qtp_questions_answers.htm
Advertisements