Fitnesse 测试页面抛出异常

huangapple 未分类评论57阅读模式
英文:

Fitnesse test page throwing an exception

问题

我通过Jenkins运行Fitnesse测试工具。Jenkins会在固定间隔后运行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分钟运行同样的测试。

英文:

I'm running Fitnesse testing tool via Jenkins. Jenkins runs fitnesse after fixed interval. Following is the test page:-Fitnesse Test Page

1.creating script file
2. running it

In this, I'm simply printing message but this test page sometimes thrown an exception:-

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)

Exception

This exception thrown sometimes and sometimes it work perfectly. It fail 2 out of 10 times . and I didn't change anything , i am simply running same test after every 30 min.

huangapple
  • 本文由 发表于 2020年7月28日 20:51:07
  • 转载请务必保留本文链接:https://java.coder-hub.com/63134558.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定