【发布时间】:2019-02-14 13:21:47
【问题描述】:
我在 Ibello 和 Java 中进行了测试。我用
int random = (int)(Math.random() * (100000 - 1) + 1);
生成 5 位代码。
我有一个测试类:
pthUgyintezesNewCase.I_Use_the_5digits();
allatiMellektermekSteps.Delete_the_old_datas();
pthNewCase.I_Save_And_Close(); //it brokes here
// Steps Class
public void I_Use_the_5digits() throws Exception{
int random = (int)(Math.random() * (100000 - 1) + 1);
//
如果生成 5 位数字,应用程序将无法运行。是否有可能,如果它再次生成似乎,它将一个数字加 1 直到它可以运行?
【问题讨论】:
-
您能否提供您所面临问题的示例?理解您要解释的内容有点困难
-
也许现在?我重写了
标签: java selenium testing random cucumber