< Home

frequency

Function

The frequency command sets the interval for the automatic test.

The undo frequency command cancels the interval setting for the automatic test.

Format

frequency interval

undo frequency

Parameters

Parameter Description Value
interval Specifies the interval for automatically performing the test. The value is an integer ranging from 1 to 604800, in seconds. By default, the interval for automatically performing test is not configured. That is, the test is performed for one time.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By running the start command, you can configure the start time and end time of an NQA test. If you need to perform period test from the start time to the end time in a test instance, run the frequency command to configure the interval for automatically performing the test instance. After that, the NQA test is automatically performed one time at each set interval.

If no end time is configured, the test cannot stop automatically. You need to stop it manually.

Setting the interval for automatically performing an NQA test can avoid performing an NQA test manually and frequently.

Prerequisites

Before using the frequency command, run the test-type command to specify the type of a test instance.

Configuration Impact

If the master/slave switchover is performed on the NQA client before the test instance (group) is complete, the following situations may occur:
  • If the interval for automatically performing the test is not set, the test stops after the master/slave switchover.
  • If the interval for automatically performing the test instance is set, the test is performed from the next period after the master/slave switchover.

Example

# Set the interval for auto performing the test named admin http to 120 seconds.

<sysname> system-view
[sysname] nqa test-instance admin http
[sysname-nqa-admin-http] test-type http
[sysname-nqa-admin-http] frequency 120
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >