Thursday, July 28, 2011

Sample Questions-Part 2-QTP

1) Which scripting language is used in QTP ?
  1.  Test Script Language (TSL)
  2.  Java Script
  3.  ASP
  4.  VB Script
2) Does QTP support Data Driven Framework ?
  1.  YES
  2.  QTP supports only Modular Framework
  3.  QTP is only Keyword Driven Framework
  4.  No


3) Select the Browsers NOT Supported by QTP ?
  1.  IE
  2.  Netscape
  3.  Safari
  4.  AOL

4) “Active Screen” Technology in QTP gives
  1.  Test Data
  2.  Checkpoints
  3.  Screenshots of Application Under Test (AUT)
  4.  Object Repository

5) Does the “Information” Toolbar in QTP 10.x give the Syntax Errors if any in the script ?
 YES
 NO
 It gives syntax errors only related to functions

6) Method to To count the no of rows in a table
 getrowcount
 getlinecount
 Getcount
 Count

7) Select Case statement is end with
 end case
 exit case
 esac
 end select

8) Object Repository is available in 3 modes viz.a) Per-Action Object Repository b) Shared Object Repository, c) Unshared Object Repository
 Both a & b
 Both a & c
 Both b & c
 Only a

9) What is the correct order of events in Test Script Creation ?
 Plan, Record , Debug, Enhance
 Plan , Record , Enhance , Debug
 Record, Debug , Plan , Enhance
 Record, Enhance, Debug , Plan

10) Which one is the default data type of QTP
 integer
 String
 Variant
 Double

11) To use the non-standard windows object, we can go for
 Object spy
 Virtual objects
 Object identification
 None

12) Select INVALID Checkpoint Type from the following
 Page Checkpoint
 Accessibility Checkpoint
 Object Checkpoint
 XML Checkpoint

13) To terminate the script execution, during running, QTP uses
 Exit run
 Stop run
 Quit
 None

14) BITMAP Checkpoint checks the property values of an image ?
 YES
 NO

15) Synchronization Point is used :-
 To delay QTP execution until Application Under Test (AUT) attains certain status
 To synchronize execution in multiple instances of QTP
 To synchronize per action and shared object repositories

16) Do statement always end with
 end while
 End do
 Wend
 Loop

17) By default a Datable contains :-
 One Action Sheet and One Global Sheet
 Two Global Sheets
 Two Action Sheets
 Two Action Sheets and One Global Sheet

18) Results Table (results of a test) is available in which following locations ?
 Test Script Folder
 Test Configuration Folder
 Test Results Folder
 Test Functions Folder

19) *.mts file contains :-
 Sequence and iterations of Actions to be executed
 User created library functions
 Per-Action Object Repository Files
 Parameter used in Actions

20) The feature of selecting different values of test data at run-time is called
 Synchronization
 Parameterization
 Smart Identification
 Transaction

21) Can Checkpoints be parameterized ?
 YES
 NO
 Maybe. Depends on the type of checkpoints

22) Can Test-Data in “Action Sheet” of Data Table be used from one action to another ?
 YES
 NO

23) Text Output Value -
a) outputs property value of any object
b) outputs text string appearing in AUT
c) outputs part of displayed text appearing in AUT
  
 only a
 only b
 only c
 both b & c

24) Select the valid types of Actions in QTP
a) Nested Actions
b) Shared Actions
c) External Actions
d) Reusable Actions
  
 both b & c
 both b & d
 both a & d
 both a & c

25) Can Actions inserted as “Call to Action” be modified by the test engineer?
 YES
 NO

26) Action Sheet (in Data Table) of an action inserted as “Copy of an Action” is editable only from the test from which they were created ?
 YES
 NO

27) Action Iteration is :-
 Number of times action would be executed every global iteration
 Number of time action would be executed in entire test execution
 Number of times all actions would be executed globally.

28) Choose the valid syntax to call Action 1 ( from Action 0) with input parameter “action_in” and store the output in a variable “MyVariable”
 RunAction 'Action1', oneIteration, Parameter(“action_in”), MyVariable
 RunAction 'Action0', oneIteration, Parameter(“action_in”), MyVariable
 RunAction 'Action1', oneIteration, MyVariable , Parameter(“action_in”)
 RunAction 'Action0', oneIteration, MyVariable , Parameter(“action_in

29) Can we use all standard Microsoft Excel features like Formulae, Formatting , Sorting etc in QTP DataTable ?
 YES
 NO

30) “Call to Copy” of an action can be inserted only for reusable actions ?
 NO
 YES

31) Parameterization of all Test data in a script can be done using
 Object Repository Manager
 Virtual Object Manager
 Data Driver
 Variable Driver

32) Are Nested Actions Call to one Action from Another ?
 YES
 NO

33) Is the Shared ( Global ) Action Repository the default repository in QTP ?
 YES
 NO

34) In a Per – Action (Local) Repository Action 1 and Action 2 in the same test script would have different object repositories?
 YES
 NO

35) The Share Action Repository is preferable when
 The Application Under Test is Dynamic with respect time
 The Application Under Test is Internet Environment
 The Application Under Test is Static

36) What is *.tsr file in QTP ?
 Object Repository Files
 VB Actions Files
 QTP Action Files
 Stores Test Data

37) Object Spy can be used to
 identify the Objects that can be identified by QTP
 identify the properties used for identification of objects
 identify the properties used for identification of objects in per-action repository
 identify the properties used for identification of objects in global action repository

38) Are Assistive properties used when mandatory properties are enough to identify an object ?
 YES
 NO

39) Are Ordinal Identifiers used when Mandatory and Assistive properties used by QTP are not enough to identify Object?
 YES
 NO

40) Select the Invalid type of Ordinal Identifiers Used by QTP
 Index Based
 Location based
 Creation Time
 Time Based

41) Does Index based ordinal identifier indicates the order in which the object appears in the parent window frame or dialog box relative to other objects?
 YES
 NO

42) Does Location based ordinal identifier indicates the order in which object appears in the application code relative to other objects?
 YES
 NO

43) Select the environments in which Creation Time ordinal identifier is used
 SAP
 Oracle
 Web
 Java

44) When a test is run in update mode, what is updated?
 The test results
 The object descriptions
 The action names in the test
 The logical names in the test

45) For identification of any object the choice of ordinal identifier selected can be modified in the Object Identification Window?
 YES
 NO

46) The Index Property value of Occurrence of the first object in source code is
 1
 a
 2
 0

47) Is Smart Identification is invoked when QTP cannot recognize an object using mandatory , assistive and ordinal properties ?
 Yes
 No
 Only in Web Environments

48) Select the type of properties used for Smart Identification
 Mandatory Properties
 Assistive Properties
 Base Filter Properties
 Smart Properties

49) Utility to measure the timing delays between transactions, we use
 synchronization
 sync
 services
 wait

50) Select the Invalid recording modes supported by QTP
 Low-level Recording mode
 Normal recording mode
 High-level Recording mode
 Analog recording mode

51) What does a breakpoint do?
 Stops test execution at the specified step, after executing that step
 Stops test execution at the specified step, before executing that step
 Pauses test execution at the specified step, after executing that step
 Pauses test execution at the specified step, before executing that step

52) Does Analog Recording mode, records exact mouse and keyboard operations ?
 YES
 NO

53) The RunAnalog function is used to run
 Tracks
 Functions
 Analog Functions
 Analog settings

54) Consider the QTP Script below
Window(“Calculator”).WinObject(“8”).Click 21,6
Window(“Calculator”).WinObject(“WinObject”).Click 14,13
In which mode is the script recorded ?
  Analog Recording mode
 Context Sensitive mode
 Low Level Recording mode

55) Virtual Objects are used when:-
 The objects do not exist in the Application Under Test
 Standard Objects cannot be recorded due to problems that arise during recording
 There are many objects of the same class in the Application Under Test

56) Consider the QTP Script below:-
On Error Resume Next
What does the above line of code do ?
  
 If an error occurs in the current line of script under execution , QTP proceeds ahead to the next step
 If an error occurs in the current iteration in script execution , QTP proceeds ahead to next iteration

57) Which of the following is an example of a missing resource?
 An object
 Run Results
 A Regular Action
 An External Action
58) To enter the non-executable statement in QTP , we use
 single quotes
 Rem
 double quotes
 Com