Thursday, January 7, 2010

QTP - Questions Part 1




Which you can record the non-standard object in QTP

Standard recording
 Analog recording
 Low level recording
 None

How many no. of tables should be there in a script?

One
Two
 Three
 Four

How many no. of actions would be there in scripts?

One
Two
Three
Four

The file extension of Local object repository files

 .MTR
 .TSR
 .QRS
  None

The file extension of Shared object repository file

.MTR
.TSR
.QRS
None

What is the extension of Function Library File

.TXT  
.QFL  
.VBS

What are the categories in the Step Generator

Object, Operation, Value
Library, Built-n, Local Script
Operation, Arguments, Return Value
Test Objects, Utley Objects, Functions

What can you use to handle unpredictable testing exceptions

Do Loop
Recovery Scenario
IF Then statement
Select Case statement

Which command can you associate a function library to a test?

Run Options
Test Settings
View Options
Function Definition Generator

The result of the checkpoints can be stored in a variable

True
 False

Parameterization generally involves

Data table
 Random number
 Environment
 Both A & B
 Both A, B & C

Recovering from the run time errors known as

. QRS
. TSR
. PNG
. DAT

The following recording modes, which method uses both the objects and
Mouse coordinates

 Normal
 Low level
 Analog
 All of the above

Where do you set the action teratons for a specked action?

 Acton Settings
 Acton Properties
 Acton Run Properties
 Acton Call Properties

Where do you mark an action as reusable?

 Acton Settings
 Acton Properties
 Acton Run Properties
 Acton Call Properties

Where can found the results of output parameter?

 Local Data Sheet
 Global Data Sheet
 Run-time Data Table
 Desgn-tme Data Table


If you have a Virtual Object Collection stored on your machine, and you don’t want to use t
What you must do?

Disable Virtual Objects n Test Settings
Remove the Collection from your machine
Disable Virtual Objects n General Options
Remove the Collections from the Resources list

Statement to return the value from the function

Return (return value)
Exit (Return value)
Function name = Return value
None

Constant “2” with the reporter statement returns

Pass
Fail
Done
Warning

The standard time delay for windows application

20 seconds
60 seconds
Infinite
100 seconds

The standard time delay for web based application

20 seconds
60 seconds
Infinite
100 seconds

What does the source property of a database checkpoint object represent?

 The SQL query
 The dentfcaton number of the database
 The number of rows returned from the query
 The connection strong used to connect to the database

Which is created, by default for each new action?

 Local Data Sheet, Global Data Sheet, Folder
 Local Object Repository, Local Data Sheet, Folder
 Global Data Sheet, Local Object Repository, Folder
 Local Data Sheet, Global Data Sheet, Local Object Repository

What are the available environment variable types?

Built-in
User-defined
User-function
Built-in, User-defined
Built-in, User-function

If the Global Data sheet contains no data and the Local Datasheet contains two rows of data,
How many times will run the test

 1
 2
 3
 5

What is the first thing that must be defined in a Recovery Scenario?

Trigger
Recovery Operation
Recovery Scenario Name
The Function used in the scenario

To count the no of rows in a table

 Getrowcount
 Getlnecount
 Getcount
 Count

By default, all the QTP Action is
 Non – reusable
 Reusable
 External
 None

To refer the global data sheet, we can use the statement

Dtglobalsheet
 Globalsheet
 Both A & B
 None

Active Screen is stored in Filed called

Compressed Format
 BMP
 JPEG
 PNG

How do you close the database session after the SQL query?

Call the ADO. Close function
 Use the close method for the RecordSet object
 Set the RecordSet and Connection objects equal to nothing
 Use the close method for the RecordSet and Connection objects

Trigger event types?

Pop-up window, object state, VBScript event
 Object state, VBScript event, Application crash
 Pop-up window, object state, test run error, QTP crash
 Pop-up window, object state, test run error, Application crash

For Next loop Increments?

++
 Next
 Skip
 Step

Select Case statement s end with

End case
 Ext case
 End select

To specify the “Not Equal to” in QTP

!=
 <>
 NOT =
 ==

Which one of the default data type of QTP

 Integer
 String
 Variant
 Double

Two different similar objects in single page, QTP

Object identification
 Smart identification
 Object repository
 Object spy

How to find or capture the non-standard object using QTP

Object spy
 Virtual objects
 Object identification
 None

What are the two methods commonly used ADODB objects?

 Fields
 Execute
 Connection, RecordSet
 Open, ConnectionString

How do you declare a constant?

Dim statement
 Con statement
 Constant statement
 Option Explicit statement

To bypass the Object Repository you can

 Turn the Object Repository off
 Use a programmatic description
 Delete all objects in all repositories
 Add the object to the Object Repository Manager

What does the Child Objects method return?
 A Collection object
 A string true/ false
 A Boolean TRUE/ FALSE
 The number of objects matching the Child Object description

Constant time delay between processes in QTP

Wait
 Pause
 Synchronization point
 None

To terminate the script execution, during the run time

Exit run
 Stop run
 Quit
 None

We can access the objects within the page without using object repository?
 True
 False

Checkpoints statements can be manually added to the script without using menus.
 True
 False

While statement always end with

End while
 End do
 Wend
 Loop

What object is used to read information from a text file
 Read
 Redline
 TextStream
 FleSystem
OpenTextFle


Expert View if you type an object followed by a dot, what QTP does display
 Nothing
 The arguments for that object
 The methods and properties for that object
 The child objects and methods for that object

What object is used to send information to test results after completion of the test run?
 Result
 Reporter
 ReportEvent
 ResultReport

Do statements always end with
 End while
 End do
 Wend
 Loop

The default add-ins with QTP is
 Active X
 Visuals Basic
 Web
 All of the above

What is the difference between a subroutine and a function?
 A subroutine can call itself; a function cannot
 A function returns a value; a subroutine cannot
 A function can accept arguments; a subroutine cannot
 A subroutine can call other procedures; a function cannot

What looping statements are available in QTP
 While end, Do Loop, f then
 Switch Case, If Then, For Next
 For Next, While end, Do Loop
 For Next, Do Loop Switch Case

Which one is true about “Do” statement
 End with “Loop while false”
 End with “Until True”
 End with “Wend”
 Both A and B

Checkpoint which is used for verifying the web page with W3C standard
 Bitmap checkpoint
 Standard checkpoint
 Accessibly checkpoint
 XML checkpoint

To use low-level recording, what must you do first?
 Start a new test
 Be in the Keyword view
 Be recording in Normal mode
 Click Low Level Recoding under the Automaton Menu

What is the correct set of add-in installed automatically with Quickest 9.2?
 Net, Web, Java
 Web, SAP, Visuals Basic
 Active X, Visuals Basic, Web
 Active X, TE, Web Services

What information can be seen in the information pane?
 Syntax errors
 The test name and author
 The QTP license information
 The machine and operating system info

 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

When a test is run and update mode, which will updated
 The test results
 The object descriptions
 The action names in the test
 The logical names in the test

What are test object properties?
 Those properties as defined in a description object.
 Those properties as defined in Object identification
 Those properties displayed by an object at run-time
 Those properties used in the Object Repository for object identification

What is the function of the Object Repository Manager?
 Assign variable names to test objects
 View/ Make/ Modify a Local Object Repository
 View/ Make/ Modify a Shared Object Repository
 Define new test objects using programmatic descriptions

Where do you turn Smart Identification?
 The Object Repository
 The Test Settings dialog
 The General Options dialog
 The Object Identification dialog




What is the default ordinal identifier

 The location
 The object description
 The natveclass
 The index number


In Test Settings -> Run the Data Table iteration options are for which data sheet?
Local
Global
Run-time Data Table
Design-time Data Table

What are bitmap checkpoints sensitive to?
 Image size and object type
 Object type and image type
 Screen resolution and object type
 Screen Resolution and image size

If the Local Data sheet contains two rows of data, how many times will the action iterate, by default?
 1
 2
 3
 5

Which method for the Data Table utility object will allow you to retrieve information from
the Data Table during a test run?
 Value
 Import
 GetCell
 GetValue


In VB Script functions, which one is false among the following
 Variables must be declared before use
 Variables may not be declared before use
 Variables may be declared without data types
None


Object whch s used for callng the wn32 ap functions n QTP, we use
 Extern
 Description
 Environment

What are bitmap checkpoints sensitive to?
 Mage size and object type
 Object type and mage type
 Screen resolution and object type
 Screen Resolution and mage size

What method s used to retrieve the number of columns n the query results?
 Felds.Count
 Felds.tem(EOF)
 Felds.Count(BOF)
 Felds.Count.Value

Test Settings, Run the Data Table teraton options are for which data sheet?
            Local Global
            Run-time Data Table
            Desgn-tme Data Table



By default, how does QuckTest pass arguments to the procedure?
 By Val
 ByRef
 ByArg
 ByRes

If a procedure s defined n a test script, that procedure s accessible to which tests/ scripts?
 Only to other procedures
 t s not usable to any test scripts
 The test script n which t s defined
 Using the Step Generator, t s available to any test scripts

Utility to measure the tmng delays between transactions, we use
 Synchronization
 Sync
 Services
 wat
If the same object s presents n the local and shared repository, QTP will refer which
One?
 Shared
 Local
 Both A & B
 None
Which one is not true about “Copy of action”
 Tester can edit the scripts
 Tester can’t edit the scripts
 Tester can view the scripts
 None

When does a Do loop statements evaluate for continuation?
 At the end of the loop
 At the start of the loop
 At the start or the end of the loop
 Ths loop uses a counter variable

How can you retrieve the number of items in the list for a WebLst object?
 GetLst
 Gettem
 GettemsCount
 GetROProperty

What method is used to send a run-time Data sheet to an Excel fle?
 Send
 Export
 SendSheet
 ExportSheet

Which one is not true about “Call of action”
 Tester can edit the scrpt
 Tester can’t edit the scripts
 Tester can view the scripts
 None

Planning for the no of teraton for the action s done at
 Acton properties
 Acton call properties
 Call to existing action
v. None

To enter the non-executable statement in QTP, we use
 Single quotes
 Rem
 Both A and B
 None
76) What does the GetTOProperty method do?
 Retrieves the value of a property from a test object
 Retrieves the available properties from a test object
 Retrieves the value of a property from a run-time object
 Retrieves the available properties from a run-time object

Which of the following s an example of a missing resource?
 An object
 Run Results
 A Regular Acton
 An External Acton

What is the available step commands n QuckTest?
 Step, step nto, Step Out
 Step nto, Step Over, Step Out
 Step Test, Step Acton, Step Function
 Run from Step, Debug from Step, Run from Step

What are the phases in the QuckTest workflow?
 Plan, Record, Enhance, Run
 Prepare, Record, Verify, Run
 Plan, Create, Verify & Enhance
 Prepare, Create, Verify & Enhance, integrated

Why is low-level recording mode useful?
 t records exact keyboard operations on an object.
 t records exact coordinates of all mouse movements.
 t uses the object repository to determine what methods can be use

Where are virtual object collections stored?
 n a Function Library
 n the local Object Repository
 n the Object Repository Manager
 Dat folder nsde of the QTP installation directory

In the Object dentfcaton dialog box, which properties can be viewed?
 The base filter and optional properties
 The mandatory and optional properties
 The base filter and assistive properties
 The mandatory and assistive properties

How do you know f Smart dentfcaton has been used n a test?
 The Smart dentfcaton con appears n the test results
 The test results wll show a run error, causng a test falure
 The properties used by the object repository will be changed
 The Object Repository will show the Smart dentfcaton con

What options are available to filter objects n the Target Object Repository pane when
Merging object repositories?
 Show all objects or Show only objects with conflicting object types
 Show all objects or Show only objects with conflicting descriptions
 Show only objects with conflicting logical names or Show only objects with conflicting
Object types
 Show only objects with conflicting logical names or Show only objects with conflicting
Descriptions

Which statement s used to associate a procedure with a test object class?
 RegsterFuncton
 RegsterUserProc
 RegsterUserFunc
 RegsterProcedure