我正在使用JSystem测试一个应用程序接口。
我想知道是否有任何方法可以在Jsystem测试用例中提供列表或大小有限的数组作为测试用例参数?
是否有可能为测试设置一个参数,例如:
Do something to the following elements with names ${elementNames}, paramsInclude={"elementNames"},其中elementNames是在测试场景中具有适当的getter和setter的ArrayList<String>或String[]?
发布于 2013-10-17 07:27:22
很抱歉我问了个业余的问题。从JSystem文档本身发现的(我遗漏了一些东西)。
您可以在测试中将输入参数设置为字符串数组,代码如下所示:
Do something to the following elements with names ${elementNames}, paramsInclude={"elementNames"}
在Jsystem中,输入参数时,请用分号分隔每个字符串
在您的代码中初始化为String[] elementNames= {},并使用适当的getter和setter方法。
https://stackoverflow.com/questions/19393311
复制相似问题