SystemMonitor Object

Description

Enables you to retrieve information about a system counter during a test run.

Methods

Method GetValueChecks that an object exists.
Method IsCounterExistIndicates whether the specified system counter has been defined for the application.

Back to top

GetValue Method

Description

Returns the current value of the specified system counter.

Syntax

SystemMonitor.GetValue("ApplicationName","CounterName")

Argument

Type

Description

ApplicationName

String

The name of the application process (without the file extension) whose counter value you want to retrieve.

CounterName

String

The name of the counter whose value you want to retrieve. Available counters are those accessible through the Performance Console (Select Start > Run and then enter Perfmon).

Back to top

IsCounterExist Method

Description

Indicates whether the specified system counter has been defined for the application.

Syntax

SystemMonitor.IsCounterExist("ApplicationName","CounterName")

Argument

Type

Description

ApplicationName

String

The name of the application process (without the file extension) whose counter you want to check.

CounterName

String

The name of the counter you want to check. Available counters are those accessible through the Performance Console (Select Start > Run and then enter Perfmon).

Back to top

See also: