Interview Questions, Answers and Tutorials

Category: Uncategorized

QTP Interview Questions and Answers

1. Name the types of Test Automation?Record and Playback (does not work in real world scenario)Functional decompositionKeyword drivenModel BasedHybrid Test Automation Framework etc. 2. Explain the benefits of using Test Automation?It can be executed unattended, leaving the testers free to do other work.Large number of data combinations can be run – Good coverage.Re-use of test cases in the different releases/versions etc. 3. Give the names of some Test Automation products/vendors?QuickTest Professional – HPRational Robot – IBM 4. When to use Test Automation?In one short lineSuccessful test-automation needs to start early in the development cycle.For elaborate reading see:http://www.stickyminds.com/sitewide.asp?Function=edetail&ObjectType=COL&ObjectId=2084http://googletesting.blogspot.com/2007/10/automating-tests-vs-test-automation.html 5. Give a…

QTP Multiple Choice Questions Set 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) internal B) external C) built-in D) All of above 2) Add-ins that are installed separately from the QuickTest Professionalinstallation are referred to as ……. add-ins. A) internal B) external C) built-in D) built-out 3) When QuickTest opens, you can choose which of the installed add-ins you wantto load using the QuickTest Professional – …… dialog box. A) Add-In Window B) Add-In C) Add-In Manager D) Add-In…

QTP Multiple Choice Questions Set 23 – Debug

1) To debug a function library, you must first associate it with a test and then  debug it from that test. A) True B) False 2) To detect and isolate defects in a test or function library, you can control the run session using the …. command A) Pause B) Run C) F14 D) 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 Window B) Debug Dialog C) Debug Viewer D) Debug page 4) While the test and…

QTP Multiple Choice Questions Set 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) True B) False 4) By default, recovery scenario operations are activated only after a step returns…

QTP Multiple Choice Questions Set 21 – Virtual Objects

1) Virtual objects enable you to record and run tests on objects that are normallyrecognized by QuickTest.A) TrueB) False 2) In the test results, the virtual object is displayed as though it is a standard classobject.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 objectA) TrueB) False 6) The ………… contains all the virtual object collections defined on your computer.A)…

QTP Multiple Choice Questions Set 20 – Regular Expressions

1)  Regular expressions enable QuickTest to identify objects and text strings withundependable 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 duringeach run session, you can use regular expressionsA) 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…

QTP Multiple Choice Questions Set 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, EnvironmentVariable, Regular Expression.A) TrueB) False 4) While using Test and Action Input Parameters,you can enter the parameter namein the Expert View using the Parameter utility object, in the format: ………… for thecurrent 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…

QTP Multiple Choice Questions Set 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 isA) .flfB) .qtflC) .qflD) .tfl 3) When you store a function in a test action, it can be called from any other actionor 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…

QTP Multiple Choice Questions Set 17 – QTP Expert View

1) You can use the Expert View tab to view a text-based version of your test.A) TrueB) False 2) Expert View contains each step as a VBScript line. In object-based steps, theVBScript 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 ExpertView, 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 correspondingrow exists in the Keyword View.A) TrueB) False 5) When you switch from the Expert…

QTP Multiple Choice Questions Set 16 – Descriptive Programming

191) 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) False 192) There are two types of programmatic descriptions:A) Static & DynamicB) Statement & DynamicC) Step & DynamicD) Standard & Dynamic 193) 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) False194) QuickTest evaluates all property values in programmatic descriptions as regular expressionsA) TrueB) False…