public enum LabelType extends Enum<LabelType>
文件名:LabelType.java
用途:定义测试用例xml文件中标签的名称枚举,用于定位获取的标签内容
编码时间:2020年3月12日下午6:49:22
修改时间:2023年2月6日 上午8:28:05
Enum Constant and Description |
---|
EXPECT
预期
|
KEY
关键词
|
PRECONDITION
前置条件
|
RANK
优先级
|
STEP
步骤
|
STEPDETAIL
详细步骤
|
TITLE
标题
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
用于返回枚举对应的标签名
|
static LabelType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LabelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LabelType STEP
public static final LabelType STEPDETAIL
public static final LabelType EXPECT
public static final LabelType TITLE
public static final LabelType PRECONDITION
public static final LabelType RANK
public static final LabelType KEY
public static LabelType[] values()
for (LabelType c : LabelType.values()) System.out.println(c);
public static LabelType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
Copyright © 2024. All rights reserved.