duration

Function

The duration command specifies the period of a configuration test and a performance test.

The undo duration command restores the default period of a configuration test and a performance test.

By default, the period for a configuration test is 3 seconds, and the period of a performance test is 15 minutes.

Format

duration { { configuration-test configTestTime } | { performance-test perfTestTime } }

undo duration configuration-test

undo duration performance-test

Parameters

Parameter Description Value
configuration-test configTestTime

Specifies the time that a configuration test takes.

The value is an integer ranging from 1 to 60, in seconds.

performance-test perfTestTime

Specifies the time that a performance test takes.

The value is an integer ranging from 1 to 1440, in minutes.

Views

NQA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

An Ethernet service activation test consists of configuration tests and performance tests. To specify the time a configuration test takes, run the duration configuration-test command. To specify the time a performance test takes, run the duration performance-test command.

Precautions

The configuration test period consists of times that all tests take. The tests include a 25% CIR test, a 50% CIR test, and an EIR test. The performance test period is the total time that a performance test takes.

Example

# Set the time a configuration test takes to 6s.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[*HUAWEI-nqa-user-test] test-type ethernet-service
[*HUAWEI-nqa-user-test] duration configuration-test 6
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >