我正在通过 Jenkins 运行 Fitnesse 测试工具。詹金斯在固定间隔后运行fitnesse。以下是测试页面:- Fitnesse 测试页面
1.创建脚本文件 2.运行它
在此,我只是打印消息,但此测试页面有时会引发异常:-
java.util.NoSuchElementException
at java.util.LinkedList.removeFirst(LinkedList.java:270)
at com.objectmentor.fixtures.LineGatherer.readLine(LineGatherer.java:42)
at com.objectmentor.fixtures.CommandLineFixture.flush(CommandLineFixture.java:291)
at com.objectmentor.fixtures.CommandLineFixture.flushProcess(CommandLineFixture.java:65)
at com.objectmentor.fixtures.CommandLineFixture.endTable(CommandLineFixture.java:59)
at com.objectmentor.fixtures.CommandLineFixture.doTable(CommandLineFixture.java:48)
at fit.Fixture.interpretFollowingTables(Fixture.java:121)
at fit.Fixture.interpretTables(Fixture.java:107)
at fit.Fixture.doTables(Fixture.java:81)
at fit.FitServer.process(FitServer.java:81)
at fit.FitServer.run(FitServer.java:56)
at fit.FitServer.main(FitServer.java:41)
有时会抛出此异常,有时它会完美运行。它失败了 10 次中的 2 次。我没有改变任何东西,我只是每 30 分钟运行一次相同的测试。