4

每次我们启动健身测试时,它都会说

测试被中断,结果不完整

我们有一个例外:

Could not detect death of command line test runner.
java.lang.IllegalThreadStateException: process has not exited
    at fitnesse.components.CommandRunner.join(CommandRunner.java:79)
    at fitnesse.responders.run.slimResponder.SlimTestSystem.bye(SlimTestSystem.java:208)
    at fitnesse.responders.run.MultipleTestsRunner.startTestSystemAndExecutePages(MultipleTestsRunner.java:118)
    at fitnesse.responders.run.MultipleTestsRunner.internalExecuteTestPages(MultipleTestsRunner.java:88)
    at fitnesse.responders.run.MultipleTestsRunner.executeTestPages(MultipleTestsRunner.java:60)
    at fitnesse.responders.run.TestResponder.performExecution(TestResponder.java:190)
    at fitnesse.responders.run.TestResponder.doExecuteTests(TestResponder.java:72)
    at fitnesse.responders.run.TestResponder$TestExecutor.execute(TestResponder.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
    at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
    at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
    at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
    at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
    at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
    at org.apache.velocity.runtime.directive.Parse.render(Parse.java:260)
    at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
    at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
    at org.apache.velocity.Template.merge(Template.java:356)
    at org.apache.velocity.Template.merge(Template.java:260)
    at fitnesse.responders.templateUtilities.HtmlPage.render(HtmlPage.java:80)
    at fitnesse.responders.run.TestResponder.doSending(TestResponder.java:61)
    at fitnesse.responders.ChunkingResponder.startSending(ChunkingResponder.java:66)
    at fitnesse.http.ChunkedResponse.sendTo(ChunkedResponse.java:26)
    at fitnesse.FitNesseExpediter.sendResponse(FitNesseExpediter.java:96)
    at fitnesse.FitNesseExpediter.start(FitNesseExpediter.java:48)
    at fitnesse.FitNesseServer.serve(FitNesseServer.java:24)
    at fitnesse.FitNesseServer.serve(FitNesseServer.java:17)
    at fitnesse.socketservice.SocketService$ServerRunner.run(SocketService.java:109)
    at java.lang.Thread.run(Thread.java:736)

你遇到过同样的问题吗?你是怎么解决的?

健身版:20121220

4

1 回答 1

0

您很可能有一个类引用挂在那里并且 FitNesse 无法关闭。或者有什么东西在调用 System.exit()。

第一个例子是 Selenium WebDriver。您必须 close() browserDriver 才能彻底结束测试。

第二个是我们过去无意中允许的,并且在最近的版本中已更改。更新到最新的 EDGE 可能会解决这个问题。

但是,确实需要更多上下文,因为这很可能是您的配置或夹具中的问题。

于 2013-08-02T13:50:12.863 回答