类 AbstractTestElement
java.lang.Object
core.xyz.migoo.testelement.AbstractTestElement
- 所有已实现的接口:
TestElement,VariableStateListener,Serializable
- 直接已知子类:
AbstractAssertion,AbstractExtractor,AbstractHttpTestElement,AbstractJDBCTestElement,AbstractRedisTestElement,DataSourceElement,HttpDefaults,RedisSourceElement,SyncTimer
public abstract class AbstractTestElement
extends Object
implements TestElement, VariableStateListener, Serializable
- 作者:
- xiaomi
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void转换变量通过key获取一个Object类型的属性值通过key获取一个Object类型的属性值,当值为 null时,返回 defaultValue获取当前测试元素的属性集boolean通过key获取一个boolean类型的属性值double通过key获取一个double类型的属性值floatgetPropertyAsFloat(String key) 通过key获取一个float类型的属性值intgetPropertyAsInt(String key) 通过key获取一个int类型的属性值com.alibaba.fastjson2.JSONArray通过key获取一个fastjson.JSONArray类型的属性值com.alibaba.fastjson2.JSONObject通过key获取一个fastjson.JSONObject类型的属性值longgetPropertyAsLong(String key) 通过key获取一个long类型的属性值通过key获取一个MiGooProperty类型的属性值通过key获取一个string类型的属性值获取当前测试元素的变量removeProperty(String key) 通过 key 删除一个属性voidsetProperties(Map<String, Object> props) 通过 map 设置测试元素的属性voidsetProperty(String key, Object value) 通过 key\value 设置测试元素的属性voidsetVariables(MiGooVariables variables) 设置当前测试元素的变量
-
字段详细资料
-
构造器详细资料
-
AbstractTestElement
public AbstractTestElement()
-
-
方法详细资料
-
getVariables
从接口复制的说明:TestElement获取当前测试元素的变量- 指定者:
getVariables在接口中TestElement- 返回:
- 变量
-
setVariables
从接口复制的说明:TestElement设置当前测试元素的变量- 指定者:
setVariables在接口中TestElement- 参数:
variables- 变量
-
convertVariable
public void convertVariable()从接口复制的说明:VariableStateListener转换变量- 指定者:
convertVariable在接口中VariableStateListener
-
setProperties
从接口复制的说明:TestElement通过 map 设置测试元素的属性- 指定者:
setProperties在接口中TestElement- 参数:
props- 属性集
-
setProperty
从接口复制的说明:TestElement通过 key\value 设置测试元素的属性- 指定者:
setProperty在接口中TestElement- 参数:
key- keyvalue- value
-
getProperty
从接口复制的说明:TestElement获取当前测试元素的属性集- 指定者:
getProperty在接口中TestElement- 返回:
- 当前测试元素的属性集
-
removeProperty
从接口复制的说明:TestElement通过 key 删除一个属性- 指定者:
removeProperty在接口中TestElement- 参数:
key- key- 返回:
- 被删除key的value
-
getPropertyAsBoolean
从接口复制的说明:TestElement通过key获取一个boolean类型的属性值- 指定者:
getPropertyAsBoolean在接口中TestElement- 参数:
key- key- 返回:
- boolean类型的属性值
-
getPropertyAsLong
从接口复制的说明:TestElement通过key获取一个long类型的属性值- 指定者:
getPropertyAsLong在接口中TestElement- 参数:
key- key- 返回:
- long类型的属性值
-
getPropertyAsInt
从接口复制的说明:TestElement通过key获取一个int类型的属性值- 指定者:
getPropertyAsInt在接口中TestElement- 参数:
key- key- 返回:
- int类型的属性值
-
getPropertyAsFloat
从接口复制的说明:TestElement通过key获取一个float类型的属性值- 指定者:
getPropertyAsFloat在接口中TestElement- 参数:
key- key- 返回:
- float类型的属性值
-
getPropertyAsDouble
从接口复制的说明:TestElement通过key获取一个double类型的属性值- 指定者:
getPropertyAsDouble在接口中TestElement- 参数:
key- key- 返回:
- double类型的属性值
-
getPropertyAsString
从接口复制的说明:TestElement通过key获取一个string类型的属性值- 指定者:
getPropertyAsString在接口中TestElement- 参数:
key- key- 返回:
- string类型的属性值
-
getPropertyAsJSONObject
从接口复制的说明:TestElement通过key获取一个fastjson.JSONObject类型的属性值- 指定者:
getPropertyAsJSONObject在接口中TestElement- 参数:
key- key- 返回:
- fastjson.JSONObject类型的属性值
-
getPropertyAsJSONArray
从接口复制的说明:TestElement通过key获取一个fastjson.JSONArray类型的属性值- 指定者:
getPropertyAsJSONArray在接口中TestElement- 参数:
key- key- 返回:
- fastjson.JSONArray类型的属性值
-
get
从接口复制的说明:TestElement通过key获取一个Object类型的属性值- 指定者:
get在接口中TestElement- 参数:
key- key- 返回:
- object类型的属性值
-
get
从接口复制的说明:TestElement通过key获取一个Object类型的属性值,当值为 null时,返回 defaultValue- 指定者:
get在接口中TestElement- 参数:
key- keydefaultValue- 值为空时的默认值- 返回:
- object类型的属性值
-
getPropertyAsMiGooProperty
从接口复制的说明:TestElement通过key获取一个MiGooProperty类型的属性值- 指定者:
getPropertyAsMiGooProperty在接口中TestElement- 参数:
key- key- 返回:
- MiGooProperty类型的属性值
-