Skip to main content

TestInfoError

有关测试执行期间引发的错误的信息。

¥Information about an error thrown during test execution.


属性

¥Properties

message

Added in: v1.10 testInfoError.message

错误信息。当 错误(或其子类)被抛出时设置。

¥Error message. Set when Error (or its subclass) has been thrown.

用法

¥Usage

testInfoError.message

类型

¥Type


stack

Added in: v1.10 testInfoError.stack

错误堆栈。当 错误(或其子类)被抛出时设置。

¥Error stack. Set when Error (or its subclass) has been thrown.

用法

¥Usage

testInfoError.stack

类型

¥Type


value

Added in: v1.10 testInfoError.value

被抛出的值。当抛出除 错误(或其子类)之外的任何内容时设置。

¥The value that was thrown. Set when anything except the Error (or its subclass) has been thrown.

用法

¥Usage

testInfoError.value

类型

¥Type