Qtp Question

download Qtp Question

of 55

description

I need MCQ of the QTP and loadrunner

Transcript of Qtp Question

101) A test comprises calls to actions. When you create a new test, it contains a call to a ...... action. A) OneB) TwoC) ThreeD) Multiple102) When you open a test, you can choose to view ......A) the test flow (calls to actions)B) you can view and edit the individual actions stored with your test.C) Both A & BD) None103) For every action called in your test, QuickTest creates a corresponding ........ in the Data Table so that you can enter Data Table parameters that are specific to that action only.A) action sheetB) Excel sheetC) Both A & BD) None104) When you create a test, it includes ..... action.A) SingleB) unlimitedC) ThreeD) Multiple105) There are three kinds of actions: A) non-reuse action, reuse action, external actionB) Call to internal action, Call to reusable action, external actionC) non-reusable action, reusable action, external actionD) Call to non-reusable action, reusable action, external action106) By default, new actions are A) ShortB) ExternalC) reusableD) non-reusable107) You can display or hide the Action toolbar in the Keyword View by choosing ........ A) View > Toolbars > ActionB) View > Toolbars > ActionsC) View > Toolbar > ActionD) Views > Toolbars > Action108) The ...... enables you to view either the entire test flow (the calls to the actions in the test) or you can view the steps for a selected reusable or external action.A) Action FlowB) Action fileC) Action ListD) Action Repository109) In the ......., the Action List is always visible and the Expert View always displays the script for the selected action.A) Keyword ViewB) Expert ViewC) Action FlowD) Action View110) If the action is called more than once within the test flow or if the action is called by a reusable action, the Reusable action option is ......A) read-onlyB) write-onlyC) both read and writeD) read-write-executable.111) You cannot expand ...... actions from the test flow view.A) reusableB) non-reusableC) both A & BD) None112) You can associate shared object repositories with ...... actions simultaneously, using the Associate Repositories dialog boxA) sevenB) TwoC) ThreeD) Multiple113) You can associate ....... object repositories with an action, and the same object repository can be associated with different actions as neededA) NineB) Twenty oneC) as many as you needD) Twelve114) Sometimes you may want to call an action from within an action. This is called .......A) ReusabilityB) NestingC) SharingD) None115) If a reusable action is called more than once in a test and you split the action into two independent actions, each call to the action within the test will be followed by a call to the new (reusable) action. If a reusable action is called from another test, however, ...... it may cause the calling test to fail.A) NestingB) SplittingC) ReusingD) Both A & C116) You must use the ...... Action option in QuickTest if you want to save an action under another name.A) ResaveB) RenameC) ReuseD) Split117) When you remove an external action, you remove all calls and the action from the action list. The original action is also affected.A) TrueB) False18) You can also press ...... to open the Rename Action dialog boxA) Shift + F2B) Shift + F3C) Shift + F4D) Shift + F5119) If you want to include one or more statements in every new action in your test, you can create an ....A) reusable actionB) split actionC) FunctionD) action template120) With QuickTest Professional 9.0, a maximum of .......... Actions can be placed into a scriptA) 110B) 256C) 120D) 512121) Only the file name ...... is recognized as an action templateA) ActionTemplate.mstB) Action_Template.mstC) Action-Template.mstD) ActionTemplates.mst

Answers

101) a, 102) c, 103) a, 104) a, 105) c, 106) d, 107) a, 108) c, 109) b, 110) a, 111) a, 112) d, 113) c, 114) b, 115) b, 116) b, 117) b, 118) a, 119) d, 120) c, 121) a

Object Repository

122) You can import and export object repositories from and to .... files. A) XMLB) MTSC) TSRD) XLS123) In general, the ....... object repository is easiest to use when you are creating simple record and run tests.A) SharedB) LocalC) BothD) None124) The Object Repository automation object model enables you to manipulate QuickTest ....... object repositories and their contents from outside of QuickTest. A) SharedB) LocalC) BothD) None125) Before using the Object Repository automation object model to manipulate shared object repository stored in Quality Center, you must download the shared object repository and save it to the file system.A) TrueB) False126) SetTOProperty changes the property values used to identify an object during the test run. It also effects the values saved in the Object Repository for the object. A) TrueB) False127) After creating or editing an object repository XML file, it is recommended to use the QuickTest ..........functionality to verify that your file conforms to the QuickTest object repository schema.A) Schema VerificationB) Schema ValidationC) XML ValidationD) XML Verification128) To display the Comment in the Object Repository dialog box, you must use the attribute name .........A) miccommentpropertyB) commentpropertyC) mic_comment_propertyD) None of above129) ObjectRepositoryUtil Object Enables you to manipulate .....object repository files from outside of QuickTest Professional. A) SharedB) LocalC) BothD) None130) You can use the Object Repository Merge Tool to merge objects from ......A) two shared object repositories into a single shared object repository.B) the local object repository of one or more actions or components into a shared object repository.C) Both A & BD) None131) GetTOProperty method returns the value of a specified property for a test object from the Object Repository. A) TrueB) False132) The new Object Repository Comparison Tool is accessible from the Object Repository Manager. You can use this tool to identify the differences between objects in ........A) two specified shared object repository files.B) a Shared and a Local object repository files.C) either Shared or Local object repository files.D) two specified Local object repository files.133) You can use the objects and methods of the QuickTest .................... to write scripts that automatically manipulate object repositories, instead of performing these operations manually using the Object Repository Manager. A) Automation object modelB) Object Repository automation object modelC) Object Repository modelD) Object Repository Script Object model134) You must convert object repository files from QuickTest Professional 8.2.1 or earlier to the current format before you can use them in QuickTest Professional 9.0 or later. Which method lets you do so. A) Conversion methodB) Converge methodC) Convert methodD) None135) You open the Object Repository window for a specific component by choosing ..........A) Resources > Object RepositoryB) Tools > Object RepositoryC) File > Object RepositoryD) Help > Object Repository136) In QTP 9 or above, Test objects can be stored in two types of object repositories........A) a shared object repository and a Per-Action object repository.B) a shared object repository and a local object repository.C) a shared object repository and a Action object repository.D) Both A & C137) The Object Repository Manager enables you to open ...... shared object repositories and modify them as neededA) multipleB) threeC) twoD) Seven138) ........ Method Loads the specified object repository. A) OverloadB) LoadC) Both A & BD) None139) An object repository that is currently open by another user is locked, is it possible to merge a locked object repository.A) YesB) No140) You can manage the shared object repository associations of a selected test using the ............A) Associate Repositories dialog boxB) Object Repositories dialog boxC) Associate Repositories Manager dialog boxD) Object Repositories Manager dialog box141) All changes you make to an object repository are automatically updated in all components open on the same computer that use the object repository as soon as you make the changeeven if you have not yet saved the object repository with your changes. A) TrueB) False142) If you want to modify an object stored in a shared object repository, you can modify it.......A) using the Object Repository ManagerB) you can modify it locally using the Object Repository window.C) Both A & BD) None of above143) ................ Returns an ObjectRepositories collection representing all object repository files associated with the action. A) Object PropertyB) Automation Object ModelC) ObjectRepositories PropertyD) OR PropertyAnswers

122) a, 123) b, 124) a, 125) a, 126) b, 127) b, 128) a, 129) c, 130) c, 131) a, 132) a, 133) b, 134) c, 135) a, 136) b, 137) a, 138) b , 139) a, 140) a, 141) a, 142) c, 143) c.Checkpoints QTP Questions 14 - Checkpoints 154)The ........ checks a variety of objects such as buttons, radio buttons, combo boxes, lists, and so forth.

A) Image checkpointB) standard checkpointC) Bitmap checkpointD) Accessibility checkpoint

155)You create an image checkpoint by inserting a ........ on an image object.

A) Image checkpointB) standard checkpointC) Bitmap checkpointD) Accessibility checkpoint

156)......... are also supported for some list view objects, such as WinListView and VbListView, as well as other list view objects in external add-in environments.

A) Table checkpointsB) standard checkpointsC) Accessibility checkpointsD) XML checkpoints

157).......identifies areas of your Web site that may not conform to the World Wide Web Consortium (W3C) Web Content Accessibility Guidelines.

A) Accessibility CheckpointB) standard checkpointsC) Database checkpointsD) Accessible Checkpoint

158)........ Specifies the time interval (in seconds) during which QuickTest attempts to perform the checkpoint successfully.

A) Check timeoutB) Checkpoint interval timeoutC) Checkpoint timeoutD) Quicktest timeout

159)........... Specifies when to perform the checkpoint in the test.

A) Insert statement.B) Check statement.C) timeout statement.D) checkpoint statement.

160)You can view the results of the checkpoint in the ........

A) Test Results windowB) Checkpoint windowC) Information PaneD) Checklist window

161)By default, the bottom right part of the Test Results window displays information on the selected checkpoint only if it has the status Failed.

A) TrueB) False

162)You can also use the ......... to check specific property values.

A) CheckProperty methodB) CheckItemProperty methodC) ItemProperty methodD) Property method

163)If you want to retrieve the return value of a checkpoint (a boolean value that indicates whether the checkpoint passed or failed), you must add ......... the checkpoint argument in the statement in the Expert View.

A) parentheses aroundB) Properties withC) Arguments withD) Values alongwith

164)You can use a formula in a checkpoint to confirm that an object created on-the-fly (dynamically generated) or another variable object in your Web page or application contains the value it should for a given context.

A) TrueB) False

165)You cannot modify the settings of existing checkpoints.

A) TrueB) FalseAnswers

154) b, 155) b, 156) a, 157) a, 158) c, 159) a, 160) a, 161) a, 162) a, 163) a, 164) a, 165) bQTP Questions 15 - Data Table 166) You can edit information in the Data Table by typing directly into the table cells.A) TrueB) False167) Each row in the table represents the set of values that QuickTest submits for the ......... arguments during a single iteration of the test or action.A) parameterizedB) Non-parameterizedC) distributedD) None of above168) For every action called in your test, QuickTest creates a corresponding ........ in the Data Table so that you can enter Data Table parameters that are specific to that action only.A) action sheetB) Excel sheetC) Both A & BD) None169) When you create a test, it includes ..... action.A) SingleB) unlimitedC) ThreeD) Multiple170) There are three kinds of actions: A) non-reuse action, reuse action, external actionB) Call to internal action, Call to reusable action, external actionC) non-reusable action, reusable action, external actionD) Call to non-reusable action, reusable action, external action171) By default, new actions are A) ShortB) ExternalC) reusableD) non-reusable172) You can display or hide the Action toolbar in the Keyword View by choosing View > Toolbars > Action. A) View > Toolbars > ActionB) View > Toolbars > ActionsC) View > Toolbar > ActionD) Views > Toolbars > Action173) The ...... enables you to view either the entire test flow (the calls to the actions in the test) or you can view the steps for a selected reusable or external action.A) Action FlowB) Action fileC) Action ListD) Action Repository174) In the ......., the Action List is always visible and the Expert View always displays the script for the selected action.A) Keyword ViewB) Expert ViewC) Action FlowD) Action View175) ....... Method - Imports a sheet of a specified file to a specified sheet in the run-time Data Table.

A) SheetImportB) ImportSheetC) ImportDataTableD) ImportTable176) The column headings in the sheet you import must match the Data Table parameter names in the action for which the sheet is being imported. Otherwise, your test or component may fail. A) TrueB) False

177) The sheet you import automatically takes the name of the sheet it replaces. A) TrueB) False178) The use of complex and/or nested formulas in the Data Table is supported.A) TrueB) False

179) The data your test uses is stored in the ....... Data Table, which is displayed in the Data Table pane at the bottom of the screen while you insert and edit steps. A) design-timeB) Run-timeC) CurrentD) None180) During the run session, QuickTest creates a ....... Data Tablea live version of the Data Table associated with your test.

A) TrueB) False

181) If it is important for you to save the resulting data from the run-time Data Table, you can insert a ..........statement to the end of your test to export the run-time Data Table to a file.

A) Export.DatatableB) DataTable_ExportC) DataTable.ExportD) Both A & B182) When you parameterize a step in a test using the Data Table, you must decide whether you want to make it a global Data Table parameter or an action Data Table parameter. A) TrueB) False183) After running a parameterized test, you can view the actual values taken from the Data Table in the Test Results Run-Time Data Table.A) TrueB) False184) ...... Property - Returns the design-time Data Table, which enables you to modify the data that is used for the Data Table parameters in your test or business component. A) DataTableB) DesignTableC) Design_TableD) None185) The Data Table assists you in parameterizing your test.A) TrueB) FalseAnswers

166) a, 167) a, 168) c, 169) b, 170) c, 171) b, 172) a, 173) d, 174) a, 175) b, 176) a, 177) a, 178) b, 179) a, 180) a, 181) c, 182) a, 183) a, 184) a, 185) a

QTP Questions 16 - Descriptive Programming in QTP 1) Programmatic description can be very useful if you want to perform an operation on an object that is stored in the object repository. A) TrueB) False2) There are two types of programmatic descriptions:A) Static & DynamicB) Statement & DynamicC) Step & DynamicD) Standard & Dynamic3) You can also use programmatic descriptions to perform the same operation on several objects with certain identical properties, or to perform an operation on an object whose properties match a description that you determine dynamically during the run session.A) TrueB) False4) QuickTest evaluates all property values in programmatic descriptions as regular expressionsA) TrueB) False5) From the below 4 statements which one is invalid:A) Browser("Title:=Mercury Tours").Page("Title:=Mercury Tours").WebEdit("Name:=Author", "Index:=3").Set "Amit Kumar"B) Browser("Index").Page(Desc1).Link(docu3)C) Browser("Mercury Tours").Page("Title:=Mercury Tours").WebEdit("Name:=Author", "Index:=3").Set "Amit Kumar"D) Browser("Title:=Mercury Tours").Page("Title:=Mercury Tours").WebEdit("Author").Set "Amit Kumar"6) When using programmatic descriptions from a specific point within a test object hierarchy, you must continue to use programmatic descriptions from that point onward within the same statement.A) TrueB) False7) You can run any application from a specified location using a ..... statement.A) Start.ApplicationB) System.UtilRunC) SystemUtil.RunD) SystemUtii.RUn8) When creating a programmatic description for an ActiveX test object and the relevant run-time object is windowless (has no window handle associated with it), you must add the ........ property to the description and set its value to True.A) Window HandleB) WindowLessC) WinlessD) None9) You can compare the run-time value of a specified object property with the expected value of that property using either programmatic descriptions or user-defined functions.A) TrueB) False10) When you specify an application to open using the Record and Run Settings dialog box, QuickTest adds a SystemUtil.Run statement to your test.A) TrueB) FalseQTP Questions 17 - QTP Expert View 1) You can use the Expert View tab to view a text-based version of your test. A) TrueB) False2) Expert View contains each step as a VBScript line. In object-based steps, the VBScript line defines the ........ hierarchy.A) ActionB) ObjectC) TestD) Step

3) If you focus on a specific step in the Keyword View and switch to the Expert View, the cursor is located in that ..... line of the test.A) NextB) PreviousC) LastD) Corresponding

4) For each object and method in an Expert View statement, a corresponding row exists in the Keyword View.A) TrueB) False5) When you switch from the Expert View to the Keyword View, QuickTest automatically checks for syntax errors in your script, and shows them in the Information pane. A) TrueB) False6) In the Expert View, the ....... is always visible and the Expert View always displays the script for the selected action.A) Action ListB) Expert ListC) Check ListD) View List

7) You can insert a checkpoint or output value statement in the Expert View manually. A) TrueB) False8) You can copy a Checkpoint or Output statement from the Expert View to another test.A) TrueB) False

9) You can also manually enter standard VBScript statements, as well as statements using QuickTest test objects and methods, in the Expert View.A) TrueB) False10) You cannot print the test displayed in the Expert View or a function library.A) TrueB) False11) When you type in the Expert View or a function library, .......... enables you to select the test object, method, property, or collection for your statement from a drop-down list and view the relevant syntax.A) Object Property dialog boxB) Web edit Property dialog boxC) IntellisenseD) dropdown listQTP Questions 18 - Function Library 1)Using QuickTest, you can define and store your user-defined functions in a .....

A) function libraryB) directly in an action within a test.C) both A & BD) None

2)Default file extention of function library is

A) .flfB) .qtflC) .qflD) .tfl

3)When you store a function in a test action, it can be called from any other action or test.

A) TrueB) False

4)You cannot define private functions and store them in a function library.

A) TrueB) False

5)You can drag and drop a function (or part of it) from one document to another.

A) TrueB) False

6)You can add steps to your function library manually or using the Step Generator.

A) ManuallyB) using Step GeneratorC) Both A & BD) None

7)In function libraries, IntelliSense does not enable you to view test object names or collections because function libraries are not connected to object repositories.

A) TrueB) False

8)Function Libraries can be edited during the debug session.

A) TrueB) False

9)To close all open function libraries:

A) Choose File > Close All Function Libraries,B) Window > Close All Function Libraries.C) Widow > Close AllD) Both A & B

10)Any text file written in standard VBScript syntax can be used as a function library.

A) TrueB) False

11)If you create a user-defined function manually and do not define the scope as Public or Private, it will be treated as a ..... function, by default.

A) PrivateB) PublicC) Both A & BD) None

12)If you choose not to register your function at this time, you can manually register it later by adding a RegisterUserFunc statement after your functionA) RegisterUserFunctionB) RegisterUserFuncC) RegUserFuncD) Both A & BQTP Questions 19 - QTP Parameterization

1)You can parameterize values ..... in your test.

A) in StepsB) in CheckpointsC) of Action ParametersD) Both A & BE) All of above

2)You can parameterize values in steps and checkpoints while ...... your test.

A) recordingB) editingC) Both A & B

3)There are four types of parameters: Test/Action, Random number, Environment Variable, Regular Expression.

A) TrueB) False

4)While using Test and Action Input Parameters,you can enter the parameter name in the Expert View using the Parameter utility object, in the format: ............ for the current action.

A) Parameter("ParameterName")B) ParameterName("Parameter")C) Parameter("Parameter-Name")D) Parameter("Parameter_Name")

5)..... parameters are available only for top-level actions.

A) ActionB) Environment VariableC) TestD) None

6)...... parameters are available for subsequent steps and for nested actions. They are defined in the action containing the steps or in the action that calls the nested action.

A) ActionB) Environment VariableC) TestD) Parent action

7)When specifying the name for data table parameter, the first character of the parameter name must be a ......

A) letterB) underscoreC) numberD) both A & b

8)By outputting values to the global Data Table sheet from one action and using them as input parameters in another action, you can easily pass values from one action to another.

A) TrueB) False

9)....... parameters are especially useful for localization testing, when you want to test an application where the user interface strings change, depending on the selected language.

A) ActionB) EnvironmentC) TestD) Parent action

10)You can also store environment variable files in Quality Center.

A) TrueB) False

11)....... built-in environment variable that tells version of the OS on which you are working.

A) OSB) OS_VerC) OSVERD) OSVersion

12)Random number parameters are appropriate for non-numericvalues, such as text or hypertext links.

A) TrueB) False

Answers

1) e, 2) c, 3) b, 4) a, 5) c, 6) D, 7) d, 8) A, 9) b, 10) a, 11) d, 12) bQTP Questions 20 - Regular Expressions

1)Regular expressions enable QuickTest to identify objects and text strings with undependable values.

A) TrueB) False

2)You can use regular expressions only for values of type string and number.

A) TrueB) False

3)If you expect the value of a property to change in an unpredictable way during each run session, you can use regular expressions

A) TrueB) False

4)All ........ are automatically treated as regular expressions.

A) programmatic descriptionB) WindowC) WinObjectD) Collection

5)If a backslash character is used before a character that has no special meaning, the backslash is ignored.

A) TrueB) False

6)You can use regular expressions in the Find what and Replace with strings to enhance your search.A) TrueB) False

7)Regular Expressions can also be used with XML checkpoints.

A) TrueB) False

8)What is the Regular Expression Matching Zero or More Specific Characters

A) xB) #C) *D) &Answers

1) A, 2) B, 3) B, 4) A, 5) A, 6) A, 7) A, 8) cQTP Questions 21 - Virtual Object 1)Virtual objects enable you to record and run tests on objects that are normally recognized by QuickTest.

A) TrueB) False

2)In the test results, the virtual object is displayed as though it is a standard class object.

A) TrueB) False

3)QuickTest does not support virtual objects for ....... recording.

A) analogB) low-levelC) normalD) both A & BE) both A & C

4)You can use the Object Spy to view virtual object properties.

A) TrueB) False

5)You cannot insert any type of checkpoint on a virtual object

A) TrueB) False

6)The ............ contains all the virtual object collections defined on your computer.

A) Virtual Objects ManagerB) Virtual ManagerC) Virtual Object ManagerD) Virtual Object Wizard

7)Extention of virtual object collection files

A) .vcfB) .votC) .vctD) .vcd

8)You can remove virtual objects from your test by ....... these objects.

A) disabling recognition ofB) deletingC) deleting virtual object collection files ofD) All of AboveE) both A & B

9)When you want QuickTest to recognize virtual objects during recording, ensure that the ....... check box in the General tab of the Options dialog box is cleared.

A) Disable recognition of virtual object Files while recordingB) Disable recognition of virtual object Collection while recordingC) Disable recognition of virtual objects while recordingD) Enable recognition of virtual objects while recording

10)QuickTest identifies a virtual object according to its ......

A) PropertiesB) boundariesC) Object SpyD) Edges

Answers

1) B, 2) A, 3) D, 4) B, 5) A, 6) C, 7) b, 8) E, 9) C, 10) BQTP Questions 22 - Recovery scenarios 1)Recovery scenarios activate specific recovery operations when ......... occur.

A) Specific ErrorsB) Test ErrorsC) Trigger EventsD) QTP Errors

2)You can also control and activate your recovery scenarios during the run session by inserting .............. into your test.

A) Trigger EventsB) Recovery EventsC) Recovery StatementsD) Catch Statements

3)If you choose On error in the Activate recovery scenarios box in the Recovery tab of the Test Settings dialog box, the recovery mechanism does not handle triggers that occur in the last step of a test.

A) TrueB) False

4)By default, recovery scenario operations are activated only after a step returns an error.

A) TrueB) False

5)A ....... is a convenient way to organize and store multiple recovery scenarios together.

A) recovery fileB) recovery folderC) Recovery LogD) Log File

6)The Recovery Scenario Manager dialog box enables you to create and edit recovery files, and does not let you create and manage the recovery scenarios stored in those files.

A) TrueB) False

7)Each recovery scenario is represented by an icon that indicates its type.

A) TrueB) False

8)The Recovery Operations screen in Recovery Scenario Wizard enables you to manage the collection of ........ in the recovery scenario.

A) recovery operationsB) recovery FilesC) Trigger eventsD) All of Above

9)If you define a Restart Microsoft Windows recovery operation, it is always inserted as the last recovery operation, and you can change its position in the list.

A) TrueB) False

10)If more than one scenario uses a function with the same name from different function libraries, the recovery process may fail.

A) TrueB) FalseAnswers

1) c, 2) c, 3) a, 4) A, 5) A, 6) b, 7) a, 8) a, 9) b, 10) aQTP Questions 23 - Debug 1)To debug a function library, you must first associate it with a test and then debug it from that test.

A) TrueB) False

2)To detect and isolate defects in a test or function library, you can control the run session using the .... command

A) PauseB) RunC) F14D) Session

3)When the test or function library run stops at a breakpoint, you can use the ...... to check and modify the values of VBScript objects and variables.

A) Debug WindowB) Debug Dialog C) Debug ViewerD) Debug page

4)While the test and function libraries are running in debug mode, they are read-only

A) TrueB) False

5)You cannot debug a file that is called using an ...... statement, or any of the functions contained in the file.

A) ExecuteFilesB) Execute_FileC) Execute-FileD) ExecuteFile

6)The debug session can continue at the backend while you can perform file operations like opening a new test etc.

A) TrueB) False

7)Any changes you apply to external resources saved in the file system, such as function libraries, are implemented only when the test is closed and reopened but any changes you apply to any external resource that is saved in your Quality Center project, such as a function library, will be implemented immediately.

A) TrueB) False

8)You can use the .......... command to begin your debug session at a specific point in your test.

A) Start from StepB) Run to Step C) Run from StepD) Start to Step

9)You can specify the time (in milliseconds) QuickTest pauses between each step by modifying the ..... option in the Run tab of the Options dialog box (Tools > Options).

A) Delay step execution byB) Delay every step execution byC) Delay all steps execution byD) Delay each step execution by

10)To display the Debug toolbar, choose ............

A) View > Toolbar > DebugB) View > Toolbars > DebugsC) Views > Toolbar > DebugD) View > Toolbars > DebugAnswers

1) A, 2) A, 3) C, 4) A, 5) D, 6) B, 7) B, 8) A, 9) D, 10) DQTP Questions 24 - Add-in 1)You can install the QuickTest...... add-ins (Web, ActiveX, Visual Basic) when you install QuickTest Professional, or you can install the QuickTest built-in add-ins at a later time by running the installation again.

A) internalB) externalC) built-inD) All of above

2)Add-ins that are installed separately from the QuickTest Professional installation are referred to as ....... add-ins.

A) internalB) externalC) built-inD) built-out

3)When QuickTest opens, you can choose which of the installed add-ins you want to load using the QuickTest Professional - ...... dialog box.

A) Add-In WindowB) Add-In C) Add-In ManagerD) Add-In Management

4)Installing and Loading an Add-in is one and the same thing.

A) TrueB) False

5)You can install Add-in Upgrade patches by running the relevant patch executable from the \...... folder.

A) AddinsUpdateB) AddinsUpgradeC) Addins_upgradeD) Both A & B

6)In Add-in Manager dialog box, Time-Limited column displays values only when using a QuickTest seat license not a concurrent license.

A) TrueB) False

7)You can view the list of add-ins that are currently installed or loaded by choosing ...................

A) File > SettingsB) Tools > Options and click the General tab.C) Help > About QuickTest Professional.D) both A & B

8)To maximize performance and object identification reliability, load all the add-ins.

A) TrueB) False

9)The add-in is displayed as Not Licensed in the License column of the Add-in Manager dialog box:

A) If an add-in license has not yet been installed for a specific external add-in.B) if no concurrent license server within your subnet has a registered license for the specific add-inC) if all concurrent licenses are in useD) All of Above

10)You can use only one license type per session for QuickTest Professional and all loaded add-ins-either seat or concurrent.

A) TrueB) False

Answers

1) C, 2) B, 3) C, 4) B, 5) B, 6) A, 7) C, 8) B, 9) D, 10) AQTP Questions 25 - Record & Run Options 1)Before you record or run a test on a Web or Windows application, you can use the .... dialog box to instruct QuickTest which applications to open when you begin to record or run your test.

A) Record and Run B) Record and Run SettingsC) Run and Record D) Run and Record Settings

2)If you define environment variables to specify the record and run details, those values override the values in the Record and Run dialog box.

A) TrueB) False

3)You can record tests only on ............

A) Microsoft Internet ExplorerB) Netscape BrowserC) Mozilla FirefoxD) Opera

4)Record and Run Settings window contains two tabs

A) Web & WindowB) Web & Windows ApplicationsC) Web & Window ApplicationsD) Web & Windows Application

5)You can add up to ... applications to the application list displayed in the Windows Applications tab

A) 10B) 12C) 24D) 64

6)You can use special, predefined environment variables to specify the applications or browsers you want to use for your test while specifying the Record and Run Details

A) TrueB) False

7)If you select the option to Record and Run on any application or browser (the upper radio button in each tab of the Record and Run Settings dialog box), QuickTest ..... any defined record and run environment variables.

A) does notB) ignoresC) may or may not ignoreD) None of above

8)To use environment variables to specify the applications or browsers you want to use for your test run, you must use the appropriate variable names E.g. the variable name for the Web address to display in the browser is

A) URL_VARB) URL_EN C) URL_ENV D) URL_VA

9)The setting of the Active Screen capture level (Tools > Options > Active Screen tab) can significantly affect the ..... for your test and the functionality of the Active Screen while editing your test.

A) repeating timeB) waiting timeC) average time D) recording time

10)The Web tab (Record and Run Settings dialog box) is available only when Web support is installed and loaded.

A) TrueB) FalseAnswers1) B, 2) A, 3) A, 4) B, 5) A, 6) A, 7) B, 8) C, 9) D, 10) AQTP Questions 26 - Actions - 2 1)The ...... enables you to view either the entire test flow (the calls to the actions in the test) or you can view the steps for a selected reusable or external action.

A) Action MenuB) Action ListC) Action ToolbarD) Action View

2)You can view the ....... of the original action in the General tab of the Action Properties dialog box.

A) ParametersB) LocationC) Associated RepositoriesD) Type

3)You can create an additional call to any reusable or external action in your test by pressing ...... while you drag and drop the action to another location at a parallel (sibling) level within your test.

A) F3B) altC) shiftD) ctrl

4)You can use action parameters in any step in your action (including function calls).

A) TrueB) False

5)Input values for an action parameter can be retrieved

A) from the test (for a top-level action)B) from the parameters of the parent action that calls it (for a nested action)C) from the output of a previous action call (for a sibling action)D) All of above

6)The Action Call Properties dialog box enables you to set options that apply only to a ...... action call.

A) followingB) preceedingC) specificD) internal

7)Specifying input and output parameter values in action calls is .......

A) requiredB) optionalC) required only for internal actionD) both A & B

8)You can share a value that is generated in one action with other actions in your test by storing the value in the ..... Data Table.

A) InternalB) ExternalC) LocalD) Global

9)ExitAction:

A) Exits the current action, regardless of its iteration attributes.B) Exits the current iteration of the action.C) Exits the test, regardless of its iteration attributes.D) Exits the current global iteration.

10)If the action called by the RunAction statement includes an ExitAction statement, the RunAction statement can return the value of the ExitAction's RetVal argument.

A) TrueB) FalseAnswers1) B, 2) B, 3) D, 4) A, 5) D, 6) C, 7) b, 8) d, 9) A, 10) AQTP Questions 27 - Object Repository - 2 1)If an object with the same name and description is located in both the local object repository and in a shared object repository that is associated with the same action, the action uses the ...... object definition.

A) sharedB) localC) Can use anyD) None of above.

2)You cannot use the same shared object repository with multiple actions.

A) TrueB) False

3)If one or more of the property values of an object in your application differ from the property values QuickTest uses to identify the object, your test ..... fail.

A) mayB) mustC) shouldD) will certainly

4)You can open as many shared object repositories as you want.

A) TrueB) False

5)You can also open an object repository from the .......... in the File menu.

A) Recent Folders listB) Current Files listC) Recent Files listD) Both A & c

6)QuickTest saves the object repository with a ..... extension in the specified location

A) .vsrB) .tsrC) .lsrD) .qsr

7)If you opened the object repository in ...... mode, you must enable editing for the object repository before you can modify it.

A) read-write modeB) read-execute modeC) read-write-execute modeD) read-only mode

8)You can also modify a shared object repository by merging it with another shared object repository.

A) TrueB) False

9)You can also add objects to a shared object repository using the ....... option.

A) Navigate and LearnB) Navigate and earnC) Navigate D) Navigate and Click

10)While Finding Objects in an Object Repository, You can use the Find and Replace dialog box to replace property or object names.

A) TrueB) FalseAnswers1) B, 2) B, 3) A, 4) A, 5) C, 6) B, 7) D, 8) A, 9) A, 10) BQTP Questions 28 - Object Properties 1

In the Expert View, you can use the Object property to activate the method for a Web object.A) TrueB) False

2

The test object property set for each test object is created and maintained by ....... The run-time object property set for each run-time object is created and maintained by the object creator

A) MicrosoftB) Adobe C) HPD) QuickTest

3

You can view or modify the test object property values that are stored with your component in the Object Properties or Object Repository dialog box.

A) TrueB) False

4

It is possible that you can use the Object property to access the native properties of any run-time object. A) TrueB) False

5You cannot retrieve the values of test object properties from a run-time object. A) TrueB) False

6

You can use the GetTOProperty, GetTOProperties, and SetTOProperty methods in your ........ to set and retrieve the test object property values of the test object.

A) TestB) Function LibraryC) Applciation areaD) Both A & B

7

Because QuickTest refers to the temporary version of the test object during the run session, any changes you make using the SetTOProperty method apply only during the course of the run session, and do not affect the values stored in the test object repository. A) TrueB) False

8

You can use the Object Spy at any time to view ..... properties and values of the objects in the application you are testing.

A) run-timeB) test objectC) Both A & BD) None9

You cannot add to the list of properties that QuickTest uses to identify an object.A) TrueB) False

10

The default properties for a Link object (hypertext link) are...

A) NameB) text C) HTML tagD) TagAnswers1) A, 2) D, 3) A, 4) A, 5) B, 6) D, 7) A, 8) C, 9)B, 10) B,CQTP Questions 29 - API's 1)Text (or text area) checkpoints may behave differently in different run sessions depending on the APIs used in your applicationA) TrueB) False

2)Using the Windows API, you can extend testing abilities and add usabilityand flexibility to your...... .

A) testsB) function libraries C) applicationsD) Both A & B

3)API functions are located inside Windows DLLs

A) TrueB) False

4)Integrating QuickTest with Quality Center enables you to store and accessfiles in a Quality Center project, as well as use the ....... object to access thewide range of functionality provided in the Quality Center Open TestArchitecture API.

A) QCUtilB) QCUtilityC) QCUtillD) QCUntil

5)QuickTest works directly with the SAP Gui Scripting API to record your operations. Therefore, QuickTest adds steps to your test or component only when ........ are sent to the server.

A) API catchesB) API eventsC) API startsD) API stops

6)QuickTest communicates directly with the SAP Gui Scripting API to record and run your operations on SAP Windows objects.

A) TrueB) False

7)........... declares references to external procedures in a dynamic-link library

A) DeclareB) ExternC) InternD) None

8)The QuickTest automation object model supplies a type library file named ........... This file is stored in \bin.

A) QTObjectModel.dllB) QTObjectModell.dllC) QTObjecModel.dllD) Both A & B

9)If you want to call a QuickTest test containing Stingray objects from WinRunner or vice versa, you must first ensure that WinRunner and QuickTest are both using the latest version of the Stingray agent. To do this, search for the .......... file in \bin and in \arch. Then replace the earlier file with the later one.

A) Stagent.dllB) Stagerent.dllC) Staent.dllD) Stagents.dll

10)In the General tab of Options dialog box, Use text recognition mechanisms in this order: (Please select valid options from below)

A) First Windows API then OCRB) First Windows API then LCRC) First Windows API then MCRD) First Windows API then NCR

Answers1) A, 2) D, 3) A, 4) A, 5) B, 6) A, 7) A, 8) A, 9)A, 10) AQTP Questions 30 - Sharing Information Between Actions 1)A Dictionary object is the equivalent of a PERL associative array.

A) TrueB) False

2)Values from one part of a run session cannot be used later in the run session

A) TrueB) False

3)For other actions to use the value in the Data Table as an input parameter, you can store a value in the Data Table by outputting the value to the ..... Data Table

A) localB) globalC) actionD) both A & B

4)The Dictionary object enables you to assign values to variables that are accessible from .... actions

A) localB) externalC) both A & BD) None of above

5)After you have added the reserved Dictionary object to the registry, it is .... to restart QuickTest.

A) requiredB) not requiredC) may or may not beD) None of above

6)It is possible to create nested Dictionary objects.

A) TrueB) False

7)A function cannot return a dictionary object.

A) TrueB) False

8)A function can accept a dictionary object as a parameter.

A) TrueB) False

9)By default if you want to debug a dictionary object, then QTP debug window helps a lot in that.

A) True (QTP debug window can be used with Dictionary objects)B) False (QTP debug window cannot be used with Dictionary objects)

10)............ Removes a key, item pair from a Dictionary object

A) Remove MethodB) RemoveAll MethodC) Delete MethodD) DeleteAll MethodAnswers1) A, 2) B, 3) B, 4) C, 5) A, 6)A, 7) B, 8) A, 9) B, 10) AQTP Questions 31 - Maintenance Run Mode 1)As QuickTest runs in Maintenance Run Mode, it identifies discrepancies between the objects in the repository and those in your .......

A) FunctionB) Action1C) applicationD) Both A & B

2)In Maintenance Run Mode, the run ..... each time an object is not found.

A) ResumesB) StopsC) pausesD) None

3)When you run a test in Maintenance Mode, the ........ opens for steps that failed because an object was not found in the application.

A) Maintenance WizardB) Maintenance Run wizardC) Maintenance Run optionD) Maintenance Work Wizard

4)When the Maintenance Run Mode ends, Maintenance Mode wizard provides a summary of the changes it made to your test.

A) TrueB) False

5)You can run in Maintenance Run Mode only when QuickTest is set to use the ..... run mode.

A) MaintenanceB) Low LevelC) AnalogD) Normal

6)You can run in Maintenance Run Mode on applications that do not have a user interface, such as Web services.

A) TrueB) False

7)You must have the Microsoft Script Debugger installed to run the tests in Maintenance Mode.

A) TrueB) False

8)The Add Comment screen enables you to add a comment to your test or component ..... the current step.

A) AfterB) beforeC) At LastD) Both A & C

9)The Add Object to Repository screen opens if the object to which you pointed .... in any associated object repository.

A) is not addedB) existC) does not existD) is added

10)Maintenance Mode makes changes to the .... object repository only.

A) SharedB) LocalC) BothD) NoneAnswers1) c, 2) c, 3) b, 4) a, 5) d, 6) b, 7) a, 8) b, 9) c, 10) bQTP Questions 32 - QTP Test Run Results 1)After a run session, you view the results in the Test Results window. By default, the Test Results window opens when a run session is ........A) completedB) half completedC) about to be completedD) Both A & C

2)The left pane in the Test Results window displays the .............--a graphical representation of the test results.

A) run results imagesB) run results tree C) run results iconsD) None

3)By default, when the Test Results window opens, a test summary is displayed in the .......... tab in the right pane of the window.

A) Result DetailB) Res DetailsC) Result DetailsD) Details

4)The right pane of the Test Results Window contains tabs labeled ......................

A) Result Details and Screen RecorderB) Result Detail and Screen RecorderC) Res Details and Screen RecorderD) Details and Screen Recorder

5)QuickTest Professional can capture still images and movies of your application during a run session.

A) TrueB) False

6)You can view the results of an individual.................

A) iterationB) an actionC) a stepD) All of above

7)A test, iteration, or action containing a step marked Warning may still be labeled Passed or Done.

A) TrueB) False

8)You can use ............. statements in the Expert View to disable or enable the saving of selected steps, or to save only steps with Failed or Warning status.

A) Reporter.EventB) Reporter.ResultsC) Reporter.FilterD) Reporter.Result

9)You can view the saved results for the current test or component, or you can view the saved results for other test or components.

A) TrueB) False

10)You can use the .............. to remove unwanted or obsolete run results from your system, according to specific criteria that you define.

A) Test Results ToolB) Test Results Deletion ToolC) Results Deletion ToolD) RunResults Deletion ToolAnswers1) A, 2) B, 3) C, 4) A, 5) A, 6) D, 7) A, 8) C, 9)A, 10) BQTP Questions 33 - Relative & Absolute Path 1)In Edit > Action > Action Properties, in Associated Repositories tab, you cannot enter an associated object repository as a relative path.

A) TrueB) False

2)..............method helps you resolve the specified relative file path and returns its absolute path.

A) LocalB) Lrelative C) LocateD) Lresolve

3)In the FIle ->Settings, Resource tab, you can enter an associated function library as a relative path.

A) TrueB) False

4)ExecuteFile Statement which executes the VBScript statements in the specified file can accept ............ of the file to execute.

A) AbsoluteB) RelativeC) Both A & BD) None

5)When working with tests, if your recovery files are stored in the file system and you want other users or Mercury products to be able to run this test on other computers, you should set the recovery file path as a ......... path.

A) AbsoluteB) RelativeC) Both A & BD) None

6)When you choose Insert-> Call to Existing Action, in the Select Action dialog that opens, you cannot enter the relative path in "From test" dropdown.

A) TrueB) False

7)If you expect other users to open your tests and all actions in your tests are stored in the same drive, you should use absolute paths for your reusable actions so that other users will be able to open your tests even if they have mapped their network drives differently

A) TrueB) False

8)A relative path is a path that is indicated relatively to a ......... location in the file system tree.

A) previousB) rootC) currentD) base

9)You can use a .......statement in your test to retrieve the complete path that QuickTest will use for a specified relative path based on the folders specified in the Folders tab.

A) PathFinder.LocaleB) PathFinder.LocateC) Locale.PathFinderD) Locate.PathFinder

10).................. Property Assigns a relative path to a shortcut, or identifies the relative path of a shortcut.

A) RelativePathB) Relative_PathC) Relative-PathD) RelativePathsAnswers1) B, 2) C, 3) A, 4) C, 5) B, 6) B, 7)B, 8) C, 9)B, 10) A

QTP Questions 34 - Reporter Object 1)The object used for sending information to the test results is....

A) ReporterEventB) ReporterC) both A & BD) None of above

2)Reporter object is an utility object

A) TrueB) False

3)ReportEvent Method .......

A) Reports an event to the Quality CenterB) Reports an event to the Excel SheetC) Reports an event to the test results.D) Reports an event to the Business Process Testing.

4)ReportEvent method's EventStatus argument has the following predefined constants: (click all answers that apply)

A) 0 or micPassB) 1 or micFailC) 2 or micDoneD) 3 or micWarningE) 4 or micError

5).........Retrieves the run status at the current point of the run session.

A) RunStatusesB) RunStatusC) Run_StatusD) Run-Status

6)The following example uses the RunStatus property to retrieve the status of the run session at a specific point and exit the action if the test status is .......If Reporter.RunStatus = 1 Then ExitAction

A) PassB) FailC) ErrorD) Warning

7).................Retrieves or sets the current mode for displaying events in the Test Results

A) FiltersB) RFilterC) R.FilterD) Filter

8)You can use ...... property to completely disable or enable reporting of steps

A) enableB) disableC) filterD) enable-disable

9)How would you insert result for a step in Test Results

A) Reporter.Reports micPass, "step", "details"B) Reporter.ReportEvent micPass, "step", "details"C) Reporter.PassEvent , "step", "details"D) Reporter.Event.Report micPass, "step", "details"

10).....................Retrieves the folder path in which the current test's results are stored

A) Reporter.Report.Path B) Reporter.ReportsPath C) Reporter.ReportPath D) Reporter.Report_Path Answers1) B, 2) A, 3) C, 4) A,B,C,D 5) B, 6) B, 7) D, 8) C, 9) B, 10) C

Sunday, July 31, 2011QTP Multiple Choice Questions Part2 1. The automation infrastructure usually includes ...................

A) one or more shared object repositoriesB) one or more function librariesC) Both A & BD) None

2. HP QTP provides support for development environments using add-ins.

A) TrueB) False

3. While you record your test steps, QuickTest Professional creates test objects representing the objects in your application on which you perform operations. This enables QuickTest to identify the objects in your application both while and .

A) creating a testB) during a run sessionC) Both A & BB) None

4. By default, each test includes a single action, but can include multipleactions.

A) TrueB) False

5. By default, QuickTest records in the ............ recording mode.

A) AnalogB) StandardC) NormalD) Low Level

6. This method enables you to record the exact mouse and keyboard operations you perform in relation to either the screen or the application window.

A) AnalogB) StandardC) NormalD) Low Level

7. When you record in Analog Recording mode, QuickTest adds to your test a .......... statement that calls the recorded analog file.

A) RunTimeB) RunAnalogC) RunActionD) None

8. You can switch to either Analog Recording or Low Level Recording in the middle of a recording session for specific steps.

A) TrueB) False

9. QuickTest can record only on Web browsers that were opened after QuickTest.

A) TrueB) False

10. QuickTest records the visual relation identifier property when recording steps.

A) TrueB) False

Answers:

1)c, 2)a, 3) c, 4) a, 5)c, 6) a, 7)b, 8) a, 9)a, 10) bSunday, July 31, 2011QTP Multiple Choice Questions Part2 1. The automation infrastructure usually includes ...................

A) one or more shared object repositoriesB) one or more function librariesC) Both A & BD) None

2. HP QTP provides support for development environments using add-ins.

A) TrueB) False

3. While you record your test steps, QuickTest Professional creates test objects representing the objects in your application on which you perform operations. This enables QuickTest to identify the objects in your application both while and .

A) creating a testB) during a run sessionC) Both A & BB) None

4. By default, each test includes a single action, but can include multipleactions.

A) TrueB) False

5. By default, QuickTest records in the ............ recording mode.

A) AnalogB) StandardC) NormalD) Low Level

6. This method enables you to record the exact mouse and keyboard operations you perform in relation to either the screen or the application window.

A) AnalogB) StandardC) NormalD) Low Level

7. When you record in Analog Recording mode, QuickTest adds to your test a .......... statement that calls the recorded analog file.

A) RunTimeB) RunAnalogC) RunActionD) None

8. You can switch to either Analog Recording or Low Level Recording in the middle of a recording session for specific steps.

A) TrueB) False

9. QuickTest can record only on Web browsers that were opened after QuickTest.

A) TrueB) False

10. QuickTest records the visual relation identifier property when recording steps.

A) TrueB) False

Answers:

1)c, 2)a, 3) c, 4) a, 5)c, 6) a, 7)b, 8) a, 9)a, 10) bSunday, July 31, 2011QTP Multiple Choice Questions Part3 1. You can use the Keyword View to add new steps to your test and but you cannot view and modify existing steps.

A) TrueB) False

2. In the keyword view, in a Value cell, press ....... to add line breaks (multi-line arguments) to your argument value.

A) CTRL+ENTERB) SHIFT+ENTERC) ALT+ENTERD) F12+ENTER

3. In a Value cell (keyword view),if you enter quotation marks as part of the argument value, they are included in the argument value used during the run session.

A) TrueB) False

4. You can copy or cut a parent object together with only some of its child objects.

A) TrueB) False

5. In case of Keyboard Shortcuts in the Keyword View, Press.... to add a new step below the currently selected step.

A) F9B) F11C) F8D) F12

6. ....... tool enables you to encode passwords so that you can use the resulting strings as method arguments or data table parameter values (enabling you to place secure values into the data table).

A) Password ToolB) Password coder ToolC) Password decoder ToolD) Passworder Tool

7. IntelliSense information works in the QTP keyword view.

A) TrueB) False

8. A test comprises calls from actions.

A) TrueB) False

9. An action consists of its own test script, including all of the steps in that action, and any objects in its shared object repository.

A) TrueB) False

10. An action in HP QTP can correspond to more than one DataSheet.

A) TrueB) False

Answers:

1)b, 2)b, 3) a, 4) b, 5)c, 6) b, 7)a, 8) b, 9)a, 10) aSunday, July 31, 2011QTP Multiple Choice Questions Part4 1. To modify a called external action, you may or may not open the test with which the action is stored and make your modifications there.

A) TrueB) False

2. Input values for an action parameter in QTP can be retrieved from any of the following:

A) the test (for a top-level action)B) the parameters of the parent action that calls it (for a nested action)C) the VBScript EngineD) the output of a previous action call (for a sibling action)

3. Action parameters in Quicktest enable you

A) to transfer input values from your test to a top-level action,B) to transfer input values from a parent action to a nested action,C) to transfer input values from an action to a sibling action that occurs later in the test.D) to transfer output values from a step in an action to its parent action,E) to transfer output values from a top-level action back to the script or application that ran (called) your test.

4. The actual value specified for an input action parameter and the location specified for action output parameter cannot be different for each call to the action.

A) TrueB) False

5. You can share a value that is generated in one action with other actions in your test by storing the value in the global data table. Other actions can then use the value in the data table as an ..... parameter.

A) inputB) outputC) bothD) none

6. As an alternative to using environment variables to share values between actions, you can use the Dictionary object.

A) TrueB) False

7. An action call in the Expert View of QTP can define

A) the action iterations,B) inputparameter values,C) output parameter storage locations,D) an action return values.E) Both A & B

8. An action call with parameters has the following syntax:

A) RunAction ActionCall, IterationQuantity, ParametersB) RunAction ActionName, IterationQuantity, Parameters, TimeC) RunAction ActionName, IterationQuantity, Parameters,D) RunAction ActionName, IterationQuality, Parameters

9. If you expect other users to open your tests and all actions in your tests are stored in the same drive, you should use ....... paths for your reusable actions so that other users will be able to open your tests even if they have mapped their network drives differently.

A) RelativeB) AbsoluteC) AnyD) None

10. If a test contains a call to an action from another test, and that other testwas renamed in Quality Center, the original test name still appears (insquare brackets) in the Test Flow pane.

A) TrueB) False

Answers:

1)b, 2)a,b,d 3) a,b,c,d,e 4) b, 5)a, 6) a, 7)a,b,c,d 8) c 9)a, 10) a