Qtp Exam 2-done

  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Qtp Exam 2-done as PDF for free.

More details

  • Words: 517
  • Pages: 5
Q1.

The

Command

used

to

insert

the

transactions

in

test

is:

A.StartTransaction(Name),EndTransaction(Name) B.Services.StartTransaction"Name",Services.EndTransaction"Name" C. StartTransaction.services "Name, EndTransaction.services "Name" Q2. A step in which one or more values are captured at a specific point in your test and stored for the duration

of

the

run

session

is:

A.OutputValue B.Checkpoints C.ActiveScreen

Q3. QTP can detects an application crash and activate a defined recovery scenario to continue the run session. A.True B.false

Q4.

In

Batch

Test

process,

the

used

to

test

list

are

saved

in

file

format

as:

A.*.mtb B.*.mts C.*.mbt D.*.mtr

Q5.

The

command

invoke

other

application

from

QTP:

A.InvokeApplication B.SystemUtil.Run C.Run D.Both

b

&

c

E.Both

a

&

b

Q6.

The

A.Set

ab

B.Set

ab

C.Set

ab

command = =

used

to

Connection("srcfilepath CreateObject("srcfilepath

=

GetObject("srcfilepath")

retrieve ")

data ,

Set

")

,

Set

,

Set

from

excel

ws

=

ws ws

= =

sheet

is

ab.getdata(sheetid) ab.getsheet(sheetid) ab.worksheets(sheetid)

Q7.

The

method

that

explicitly

activates

the

recovery

scenario

mechanism

is:

A.recovery.activate B.enable C.recovery.enable D.activate

Q8.

The

method

used

for

sending

information

to

the

test

results

is:

A.Reporter.log() B.Reporter.reportevent() C.Reporter.msgbox() D.Reporter.report()

Q9.

To

terminate

an

application

that

is

not

responding

we

use:

A.SystemUtil.terminate B.SystemUtil.Stop C.SystemUtil.CloseProcessByName

Q10. The recovery mechanism does not handle triggers that occur in the last step of a test: A.false B.True

Q11.

We

can

add

Test

object

methods,

function

the

while

calls

into

the

Test

using:

A.Functiongenerator B.Stepgenerator C.Objectrepository

Q12.

The

method

that

adds

to

test

implementing

synchronization

is:

run

is:

A.Synchronize B.Wait C.WaitProperty D.Pause

Q13.

The

mechanism

used

to

identify

objects

during

session

A.Recoveryscenario B.Smartidentification C.Handlingobject

Q14.

Post-recovery

A.how

to

continue

test the

run

B.errors

run

session

options

after

QTP

specifies:

identify

the

while

C.recovery

scenario

event running

during

a

run

session

Q15. The action that can be called multiple times by the test as well as by other tests is called: A.non-reusableaction B.Reusableaction C.Externalaction

Q16.

The

command

used

to

connect

with

Database

is:

A.Createobject(connectivityname) B.dbconnect(connectivityname) C.open(connectivityname) D.None

Q17.

of

The

method

the

used

to

above

retrieve

the

folders

is:

A.FileSystemObject.Getfolder() B.FileSystemObject.selectfolder() C.FileSystemObject.retrievefolder()

Q18.

The

method

used

to

compare

2

XML

files

is:

A1.XMLfile1.compare(XMLfile2) B.XMLcompare(file1,file2) C.compare(XMLfile1,XMLfile2)

Q19. A.*.mts B.*.usr

The

QTP

script

files

are

stored

in

the

extension

of:

C.*.mtr D.*.vbs

Q20.

The

method

used

to

register

the

user-defined

function

with

test

object

is:

A.setFunc() B.RegisterUserFunc() C.RegisterFunc()

Q21.

The

method

used

to

open

the

specified

URL

in

a

browser

is:

driver

is:

parameterizing

is:

A.openURL() B.navigateURL() C.navigate()

Q22.

The

3

Parameter

types

available

in

data

A.DataTable,Environment,Randomnumber B.DataTable,randomnumber,unique C.environment,string,numeric

Q23.

The

method

added

to

the

test

while

A.getData(variable,dtGlobalSheet) B.getDataTable(variable,dtGlobalSheet) C.SetData(variable,dtGlobalSheet) D.SetDataTable(variable,dtGlobalSheet)

Q24.

The

length

of

the

array

can

be

get

by

the

method:

A.length(array) B.ubound(array) C.count(array)

Q25.

The

method

A.GetItemsCount B.GetCount C.GetItemCount

used

to

get

the

count

value

of

list

box

or

combo

box

is:

Q26. To

retrieve

the

current

the

objects

in

your

application

during

the

run

session:

A.GetVisibleText B.GetROProperty C.SetROProperty D.GetTOProperty

Q27.

The

list

of

test

objects

and

their

properties

and

values

are

stored

in

the:

A.ObjectRepository B.ObjectIdentification

Q28. The method used to continue the test execution after getting run-time error is: 1.On

Error

2.On

Error

3. On Error Next

Resume

Next

Raise

Next

Related Documents

Qtp Exam 2-done
May 2020 6
Qtp
November 2019 27
Qtp
November 2019 22
Qtp
November 2019 17
Qtp
November 2019 26