transaction, stop, exist, scriptless, script-less, scripted, step, view, stepview When using transactions use ExistTransactionStop method stops certain transaction in case of application, or view, or object is found. This allows more precise performance measurement. In our example we will measure how many times takes launching of the Chrome browser

Method ExistTransactionStop

Stops the Transaction counter when the object is found in the AUT

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function ExistTransactionStop( 
        String TransactionName,
        Long MsTimeOut [Optional],
        Boolean Report [Optional]
)

Step

ExistTransactionStop

Transaction 1

1500

true

String TransactionName

Long MsTimeOut

Boolean Report

Parameters

TransactionName

Type: String

The name of the transaction to stop

MsTimeOut (optional)

Type: Long

Default Value: Global timeout value (from ZAPTEST Options)

Optional time out value

Report (optional)

Type: Boolean

Default Value: True

Generate report for this step

Returns

True if object is found, False is object is not found

Example

VBScript

Application("Demo").ExistTransactionStop "Transaction 1"
'Add timeout
Application("Demo").ExistTransactionStop "Transaction 1", 10000
'Remove this step from report
Application("Demo").ExistTransactionStop "Transaction 1", 10000, false

JavaScript

Application("Demo").ExistTransactionStop("Transaction 1");
// Add timeout
Application("Demo").ExistTransactionStop("Transaction 1", 10000);
// Remove this step from report
Application("Demo").ExistTransactionStop("Transaction 1", 10000, false);

Step

ExistTransactionStop

Transaction 1

Comment

Set MsTimeOut and Report optional parameters

Step

ExistTransactionStop

Transaction 1

10000

false

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227