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 - Which of the following statement can be used if you want a run session to wait until the a webedit field is enabled?.

  1. Browser("Browser").Page("Page").WebEdit("Edit").WaitProperty("disabled",0)

  2. Browser("Browser").Page("Page").WebEdit("Edit").WaitProperty("disabled",1)

  3. Browser("Browser").Page("Page").WebEdit("Edit").WaitProperty("enabled",1)

  4. Browser("Browser").Page("Page").WebEdit("Edit").Enabled = True

  5. Browser("Browser").Page("Page").WebEdit("Edit").Enabled(5)

  6. Browser("Browser").Page("Page").WebEdit("Edit").Enabled = True

A - (1) and (3) only

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

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

D - (1) (2) (4) and (6)

Answer : A

Explanation

You can either use enabled or disabled property to check whether webEdit field is enabled. if enabled value will be 1 else 0.

Q 2 - When you split an action in your test that uses a local repository, Quick Test makes a copy of the local object repository and if you add objects to one of the split actions, the new object are added only to the corresponding repository.

A - True

B - False

Answer : A

Explanation

Yes, When you split an action in your test that uses a local repository, Quick Test makes a copy of the local object repository and if you add objects to one of the split actions, the new object are added only to the corresponding repository.

Q 3 - Input or Output action parameter name are not case sensitive.

A - True

B - False

Answer : B

Explanation

Input or output action parameter names are case sensitive.

Q 4 - Which checkpoint type should you use to validate the enabled state of a button?

A - text

B - enabled

C - standard

D - XML

Answer : C

Explanation

Standard checkpoint helps us to validate the enabled state of a button.

Q 5 - Which feature requires a connection to ALM?

  1. Version Control

  2. Jump to Step

  3. System Monitor

  4. Save Test with Resources

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

B - (3) Only

C - (1) Only

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

Answer : C

Explanation

User has to connect to ALM if Version Control is enabled for the project.

Q 6 - What happens when you hit debug button on a run error message box during a run session?

A - stops the run session.

B - attempts to perform the step again.

C - skips the step and continue execution.

D - suspends the run session.

Answer : D

Explanation

UFT suspends the run session and enable you to debug the test.

Q 7 - A checkpoint returns a _________ value.

A - Integer

B - Float

C - Boolean

D - Checkpoint does not return a value

Answer : C

Explanation

Checkpoint returns a Boolean value.

Q 8 - What will happen if more than one function of same name exists in the test or function library.

A - UFT stops and returns error

B - UFT gives a warning and continue running

C - UFT always considers the last function

D - UFT always considers the first function

Answer : C

Explanation

When more than one function with the same name exists in the test script or function library, the last function will always be called.

Q 9 - What does the following statement return? -

str = "QuickTestProfessional"

msgbox mid(str,instr(str,"P"),len(str))

A - QuickTest

B - Professional

C - TestPro

D - Run Error / Syntax Error

Answer : B

Explanation

str = “QuickTestProfessional”.

qtp_questions_answers.htm

Useful Video Courses


Video

HP UFT / QTP Online Training

108 Lectures 8 hours

Pavan Lalwani

Advertisements