< Home

test-failtimes

Function

The test-failtimes command sets the number of continuous test failures in an NQA test.

The undo test-failtimes command restores the default setting.

Format

test-failtimes times

undo test-failtimes

Parameters

Parameter Description Value
times Specifies the number of the continuous test failures in an NQA test. The value is an integer ranging from 1 to 15. The default value is 1.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An NQA test consists of multiple probe tests. By default, if one or more probe tests are successful in an NQA test, the test is considered a success. If all probe tests fail, the test is considered a failure. If the number of continuous test failures reaches the specified value, the system will send a trap to the specified NMS.

Prerequisites

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

Follow-up Procedure

After using the test-failtimes command, run the send-trap testfailure command to send a trap to the NMS after an NQA test fails. Otherwise, the trap cannot be sent to the NMS after an NQA test fails.

Precautions

This configuration of a running test instance cannot be changed.

Example

# Set the number of continuously failed tests to 10.

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