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 tool(s) is/are available along with the installation of UFT?

  1. Silent Test Runner

  2. Test Batch Runner

  3. Script Batch Runner

  4. Test Result Creation Tool

  5. HP Video Player

  6. Remote Agent

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

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

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

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

Answer : D

Explanation

The tools that are available along with the installation of UFT are Silent Test Runner, Test Batch Runner, Remote Agent, HP Micro Player, Test Result Deletion tool.

Q 2 - How can you create a .zip file of your test?

  1. File > Export Test to zip file

  2. File > Save as zip file

  3. File > Save Test with sources and select Archive test and resource files in a zip file check box

  4. CTRL+ALT+S

  5. you can not create a .zip file of the test.

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

B - (4) Only

C - (1) and(3) Only

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

Answer : A

Explanation

UFT has a feature to export youur test to a zip file. you can do this by selecting ‘File >> Export Test to zip file’ (CTRL+ALT+S) menu options, or while saving the test with resources(File>Save Test with Resources) and select Archive test and resource files in a zip file check box.

Q 3 - Instead of using File > Open Test to open an existing test, what other possible way(s) you can use to open an existing test?

  1. Select Test from the recent file list in the File menu

  2. Select Test from the recent file list in the start page

  3. dragging a test from windows explorer

  4. Selecting Right click in test editor and select Open Test

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

B - (3) Only

C - (1) and(3) Only

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

Answer : D

Explanation

ou can open a test by dragging it from windows explorer , also for a recent file used you can select the test from Recent file list.

Answer : A

Explanation

Any object in UFT is identified with the help of its class and object’s properties.

Answer : D

Explanation

Define a monitor limit can be used to cause the test to fail?

Answer : B

Explanation

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

Q 7 - When you insert a new step using step generator, where does it get added?

A - by replacing the current step.

B - after the selected step.

C - at the beginning of steps

D - at the end of steps.

Answer : B

Explanation

When you add a new step using step generator, it is added to the test after the selected step.

Answer : D

Explanation

If the Smart Identification mechanism cannot successfully identify the object, the test fails and a normal failed step is displayed in the Test Results.

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

Q 10 - Which statement(s) can be used to declare a variable explicitly?

  1. Dim

  2. ReDim

  3. Static

  4. protected

  5. DECLARE

A - (1) and (2) only

B - (2) and (3) only

C - (3) and (5) only

D - (4) and (5) only

Answer : A

Explanation

A variable can be declared explicitly using Dim, ReDim, Private, Public


qtp_questions_answers.htm

Advertisements