From: <chr...@em...> - 2003-11-27 16:54:05
|
Hello, even when I have the Recorder and the DocServer running, I get the followi= ng exception whenever I run the tests (not only when running them for the = first time like you described in your previous answer). This is the trace,= I copied from the console. com.meterware.httpunit.HttpInternalErrorException: Error on HTTP request: = 500 Internal Error [http://192.168.0.101:8080/xpetstore-ejb/category.jspa=3F= categoryId=3DDOGS] at com.meterware.httpunit.WebClient.validateHeaders(WebClient.java:350) at com.meterware.httpunit.WebClient.updateClient(WebClient.java:299) at com.meterware.httpunit.WebClient.getResponse(WebClient.java:72) at de.oio.bugkilla.player.Player.send(Player.java:91) at de.oio.bugkilla.player.JTestStep.testCase(JTestStep.java:114) at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess= orImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:166) at junit.framework.TestCase.runBare(TestCase.java:140) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at de.oio.bugkilla.player.JUserInteraction.run(JUserInteraction.java:62) at junit.framework.TestSuite.runTest(TestSuite.java:173) at de.oio.bugkilla.player.JTestSequence.run(JTestSequence.java:66) at junit.framework.TestSuite.runTest(TestSuite.java:173) at de.oio.bugkilla.player.JScenario.run(JScenario.java:73) at junit.framework.TestSuite.runTest(TestSuite.java:173) at de.oio.bugkilla.player.JTestSeries.run(JTestSeries.java:67) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remote= TestRunner.java:392) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestR= unner.java:276) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTest= Runner.java:167) The failure trace looks as follows: junit.framework.AssertionFailedError: recorded title <> server title at junit.framework.Assert.fail(Assert.java:51) at junit.framework.Assert.assertTrue(Assert.java:38) at de.oio.bugkilla.player.JTestStep.checkForStopScenario(JTestStep.java:1= 66) at de.oio.bugkilla.player.JTestStep.testCase(JTestStep.java:117) at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess= orImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:166) at junit.framework.TestCase.runBare(TestCase.java:140) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:131) at junit.framework.TestSuite.runTest(TestSuite.java:173) at de.oio.bugkilla.player.JUserInteraction.run(JUserInteraction.java:62) at junit.framework.TestSuite.runTest(TestSuite.java:173) at de.oio.bugkilla.player.JTestSequence.run(JTestSequence.java:66) at junit.framework.TestSuite.runTest(TestSuite.java:173) at de.oio.bugkilla.player.JScenario.run(JScenario.java:73) at junit.framework.TestSuite.runTest(TestSuite.java:173) at de.oio.bugkilla.player.JTestSeries.run(JTestSeries.java:67) at junit.framework.TestSuite.runTest(TestSuite.java:173) at junit.framework.TestSuite.run(TestSuite.java:168) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remote= TestRunner.java:392) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestR= unner.java:276) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTest= Runner.java:167) When I run without the TestStateInfo, everything still runs fine. Yours sincerely, Christian Pl=F6ger bug...@li... schrieb am 27.11.03 16:43:21: >=20 > Hello, >=20 > 1. make sure: that your recorder and your DocServer is running > "start Recorcer" (we are sure that you dont need it, but our splitter w= ill > otherwise send HTTP 500) > "start DocServer" > start your assimilated JBoss > 2. make sure: that the xpetstoreDB has some data > %yourdezippedxpetstore%\xpetstore-ejb: build db >=20 > Ok first the test will fail, but if you rerun the test, it will be OK. (= Why: > The first time you have started the JBoss, our Hook-Switcher (@JBoss) is= n't > ready to work. he will be ready, after selecting the first action-servle= t, > the Test selects the first action-servlet and so it fails). >=20 > best regards >=20 > Andreas Spall >=20 > -----Urspr=FCngliche Nachricht----- > Von: bug...@li... > [mailto:bug...@li...]Im Auftrag von > chr...@em... > Gesendet: Donnerstag, 27. November 2003 14:38 > An: bug...@li... > Betreff: [Bugkilla-users] Problem with TestStateInfo >=20 >=20 > Hello, >=20 > I still have some problems with your tool. After your perfect support, I= was > able to record some test cases (taken from your documentation) and perfo= rm > the first tests. >=20 > Now I tried to check the parameter (like you described it). >=20 > But there, my trouble starts: >=20 > 1) I get an failure log that d=EDffers from the one printed in the docs: >=20 > junit.framework.AssertionFailedError: recorded title <> server title > (the rest looks the same) >=20 > 2) I encounter an exception when running the tests. I added the trace be= low: >=20 > /seriespool > trying to get RemoteHookSwitcher from hook-switcher-service > java.rmi.ConnectException: Connection refused to host: 192.168.0.101; ne= sted > exception is: > java.net.ConnectException: Connection refused: connect > at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567) > at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:18= 5) > at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) > at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313) > at sun.rmi.registry.RegistryImpl=5FStub.rebind(Unknown Source) > at > de.oio.bugkilla.player.stubs.RemoteTestInfoService.bindTestInfoService(R= emot > eTestInfoService.java:92) > at > de.oio.bugkilla.player.StateComparatorManager.<init>(StateComparatorMana= ger. > java:45) > at > de.oio.bugkilla.player.StateComparatorManager.getInstance(StateComparato= rMan > ager.java:51) > at de.oio.bugkilla.player.JTestStep.<init>(JTestStep.java:59) > at > de.oio.bugkilla.player.JTestManager.generateTestStep(JTestManager.java:4= 82) > at > de.oio.bugkilla.player.JTestManager.generateUserInteraction(JTestManager= .jav > a:461) > at > de.oio.bugkilla.player.JTestManager.generateTestSequence(JTestManager.ja= va:4 > 22) > at > de.oio.bugkilla.player.JTestManager.generateScenario(JTestManager.java:1= 82) > at > de.oio.bugkilla.player.JTestManager.generateTestSeries(JTestManager.java= :111 > ) > at > de.oio.bugkilla.eclipse.runner.StdFileRunner.generateJTestSeries(StdFile= Runn > er.java:90) > at > de.oio.bugkilla.eclipse.runner.StdFileRunner.suite(StdFileRunner.java:31= ) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.getTest(RemoteTes= tRun > ner.java:335) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe= stRu > nner.java:369) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun= ner. > java:276) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu= nner > .java:167) > Caused by: java.net.ConnectException: Connection refused: connect > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) > at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) > at java.net.Socket.connect(Socket.java:434) > at java.net.Socket.connect(Socket.java:384) > at java.net.Socket.<init>(Socket.java:291) > at java.net.Socket.<init>(Socket.java:119) > at > sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSoc= ketF > actory.java:22) > at > sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSoc= ketF > actory.java:128) > at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562) > ... 23 more > <Bugkilla> - RemoteTestInfoService bounded </Bugkilla> >=20 > Thanks a lot, > Christian |