Ticket #253 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

Un-named run elements throw NPE in Functional Tests

Reported by: fcohen Owned by:
Priority: blocker Milestone:
Version: 5.2 Keywords:
Cc:

Description

I just tested EndToEndTest?\EndToEnd?_LoadTestScenario.xml

I worked with the current updated. I am attaching the generated graphics. Again, the problem is that even when this test is functional, the system is throwing the Functional panel. Then the generated chart are done using results analysis chart generator.

The functional panel is showing the first two steps with the name null, that's is because the test xml = <run testclass="com.pushtotest.utils" method="printHashDPL" langtype="java">

<argument name="csvdata" dpl="mydpl" value="getNextData"/>

</run> <run testclass="com.pushtotest.utils" method="cr" langtype="java"/>

They don't have run name, I am going to change this. When no step is provided, the system will Use "step N" for the name (Where N is the step number, starting in 1). Is this ok (Should I start it in 0?), please advice.

That is ok with me. Go for it.

Change History

Changed 3 months ago by fcohen

I ran example_agents/EndToEndTest/EndToEnd_LoadTestScenario.xml. See the attached screen shot. It shows the controller panel with a Functional Test table, when the scenario is a Load test. See the exception output below.

-Frank

--

  • Validating test -

The test is valid.

  • Test Resources -

XML Scenario: /Applications/PushToTest_TestMaker0618/example_agents/EndToEndTest/EndToEnd_LoadTestScenario.xml JAR File: /Applications/PushToTest_TestMaker0609/./example_agents/EndToEndTest/TMUtils.jar SOAPUI File: /Applications/PushToTest_TestMaker0609/./example_agents/EndToEndTest/BrewBizService-soapui-project.xml TestGen4Web File: /Applications/PushToTest_TestMaker0609/./example_agents/EndToEndTest/BrewBizWeb.testgen4web Data File: /Applications/PushToTest_TestMaker0609/./example_agents/EndToEndTest/data.csv

  • Loading Scenario -

The node localhost is valid The node localhost has loaded the scenario

  • Starting Monitors -
  • Monitoring on Testnodes is disabled -
  • Monitoring of Host disabled -
  • Making Transactions -
  • Recording Transaction -

TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Test use cases completed: 2. Success: 2. Failures: 0. TestNode localhost snapshot: Test use cases completed: 2. Success: 2. Failures: 0. TestNode localhost snapshot: Test use cases completed: 2. Success: 2. Failures: 0. TestNode localhost snapshot: Test use cases completed: 2. Success: 2. Failures: 0. TestNode localhost snapshot: Test use cases completed: 2. Success: 2. Failures: 0. TestNode localhost snapshot: Test use cases completed: 2. Success: 2. Failures: 0. Test Summary TestNode localhost final results: Tests completed: 2. Success: 2. Failures: 0.

  • Getting Result Files -

Getting ./example_agents/EndToEndTest/Results/2008_06_18_15-46-44_PDT_Wed/docs/localhost-uc0crl0sz0.xml from localhost

  • Recording Transaction -

TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Test use cases completed: 4. Success: 4. Failures: 0. TestNode localhost snapshot: Test use cases completed: 4. Success: 4. Failures: 0. TestNode localhost snapshot: Test use cases completed: 4. Success: 4. Failures: 0. TestNode localhost snapshot: Test use cases completed: 4. Success: 4. Failures: 0. TestNode localhost snapshot: Test use cases completed: 4. Success: 4. Failures: 0. TestNode localhost snapshot: Test use cases completed: 4. Success: 4. Failures: 0. Test Summary TestNode localhost final results: Tests completed: 4. Success: 4. Failures: 0.

  • Getting Result Files -

Getting ./example_agents/EndToEndTest/Results/2008_06_18_15-46-44_PDT_Wed/docs/localhost-uc0crl1sz0.xml from localhost

  • Recording Transaction -

TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Operating first test use case TestNode localhost snapshot: Test use cases completed: 8. Success: 8. Failures: 0. TestNode localhost snapshot: Test use cases completed: 8. Success: 8. Failures: 0. TestNode localhost snapshot: Test use cases completed: 8. Success: 8. Failures: 0. TestNode localhost snapshot: Test use cases completed: 8. Success: 8. Failures: 0. TestNode localhost snapshot: Test use cases completed: 8. Success: 8. Failures: 0. TestNode localhost snapshot: Test use cases completed: 8. Success: 8. Failures: 0. Test Summary TestNode localhost final results: Tests completed: 8. Success: 8. Failures: 0.

  • Getting Result Files -

Getting ./example_agents/EndToEndTest/Results/2008_06_18_15-46-44_PDT_Wed/docs/localhost-uc0crl2sz0.xml from localhost DefaultValidationEventHandler?: [FATAL_ERROR]: XML document structures must start and end within the same entity.

Location: line 5 of file:/Applications/PushToTest_TestMaker0609/./example_agents/EndToEndTest/Results/2008_06_18_15-46-44_PDT_Wed/docs/localhost-uc0crl0sz0.xml

javax.xml.bind.UnmarshalException?: XML document structures must start and end within the same entity. - with linked exception: [org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.]

at com.pushtotest.tool.xml.TXLog.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(SAXUnmarshallerHandlerImpl.java:568) at com.pushtotest.tool.xml.TXLog.impl.runtime.ErrorHandlerAdaptor?.propagateEvent(ErrorHandlerAdaptor?.java:81) at com.pushtotest.tool.xml.TXLog.impl.runtime.ErrorHandlerAdaptor?.fatalError(ErrorHandlerAdaptor?.java:57) at org.apache.xerces.util.ErrorHandlerWrapper?.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher?.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.pushtotest.tool.xml.TXLog.impl.runtime.UnmarshallerImpl?.unmarshal(UnmarshallerImpl?.java:140) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:137) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:142) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:151) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:169) at com.pushtotest.testmaker.XSTest.tally.Tally.tallyXML(Tally.java:343) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.createGraphs(ControlRunner?.java:643) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.runScenario(ControlRunner?.java:615) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.run(ControlRunner?.java:538)

Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.

at org.apache.xerces.util.ErrorHandlerWrapper?.createSAXParseException(Unknown Source) ... 27 more

Error: The file ./example_agents/EndToEndTest/Results/2008_06_18_15-46-44_PDT_Wed/docs/localhost-uc0crl0sz0.xml is nor a TX not a SD file DefaultValidationEventHandler?: [FATAL_ERROR]: XML document structures must start and end within the same entity.

Location: line 7 of file:/Applications/PushToTest_TestMaker0609/./example_agents/EndToEndTest/Results/2008_06_18_15-46-44_PDT_Wed/docs/localhost-uc0crl1sz0.xml

javax.xml.bind.UnmarshalException?: XML document structures must start and end within the same entity. - with linked exception: [org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.]

at com.pushtotest.tool.xml.TXLog.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(SAXUnmarshallerHandlerImpl.java:568) at com.pushtotest.tool.xml.TXLog.impl.runtime.ErrorHandlerAdaptor?.propagateEvent(ErrorHandlerAdaptor?.java:81) at com.pushtotest.tool.xml.TXLog.impl.runtime.ErrorHandlerAdaptor?.fatalError(ErrorHandlerAdaptor?.java:57) at org.apache.xerces.util.ErrorHandlerWrapper?.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher?.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.pushtotest.tool.xml.TXLog.impl.runtime.UnmarshallerImpl?.unmarshal(UnmarshallerImpl?.java:140) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:137) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:142) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:151) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:169) at com.pushtotest.testmaker.XSTest.tally.Tally.tallyXML(Tally.java:343) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.createGraphs(ControlRunner?.java:643) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.runScenario(ControlRunner?.java:615) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.run(ControlRunner?.java:538)

Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.

at org.apache.xerces.util.ErrorHandlerWrapper?.createSAXParseException(Unknown Source) ... 27 more

Error: The file ./example_agents/EndToEndTest/Results/2008_06_18_15-46-44_PDT_Wed/docs/localhost-uc0crl1sz0.xml is nor a TX not a SD file DefaultValidationEventHandler?: [FATAL_ERROR]: XML document structures must start and end within the same entity.

Location: line 11 of file:/Applications/PushToTest_TestMaker0609/./example_agents/EndToEndTest/Results/2008_06_18_15-46-44_PDT_Wed/docs/localhost-uc0crl2sz0.xml

javax.xml.bind.UnmarshalException?: XML document structures must start and end within the same entity. - with linked exception: [org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.]

at com.pushtotest.tool.xml.TXLog.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(SAXUnmarshallerHandlerImpl.java:568) at com.pushtotest.tool.xml.TXLog.impl.runtime.ErrorHandlerAdaptor?.propagateEvent(ErrorHandlerAdaptor?.java:81) at com.pushtotest.tool.xml.TXLog.impl.runtime.ErrorHandlerAdaptor?.fatalError(ErrorHandlerAdaptor?.java:57) at org.apache.xerces.util.ErrorHandlerWrapper?.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher?.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.pushtotest.tool.xml.TXLog.impl.runtime.UnmarshallerImpl?.unmarshal(UnmarshallerImpl?.java:140) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:137) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:142) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:151) at javax.xml.bind.helpers.AbstractUnmarshallerImpl?.unmarshal(AbstractUnmarshallerImpl?.java:169) at com.pushtotest.testmaker.XSTest.tally.Tally.tallyXML(Tally.java:343) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.createGraphs(ControlRunner?.java:643) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.runScenario(ControlRunner?.java:615) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.run(ControlRunner?.java:538)

Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.

at org.apache.xerces.util.ErrorHandlerWrapper?.createSAXParseException(Unknown Source) ... 27 more

Error: The file ./example_agents/EndToEndTest/Results/2008_06_18_15-46-44_PDT_Wed/docs/localhost-uc0crl2sz0.xml is nor a TX not a SD file java.lang.ArrayIndexOutOfBoundsException?: Array index out of range: 0

at java.util.Vector.get(Vector.java:694) at com.pushtotest.testmaker.XSTest.tally.Tally.createCSV(Tally.java:493) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.generateSummary(ControlRunner?.java:1609) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.runScenario(ControlRunner?.java:620) at com.pushtotest.testmaker.XSTest.client.ControlRunner?.run(ControlRunner?.java:538)

  • Test Complete! -

Changed 3 months ago by fcohen

  • priority changed from major to blocker

Changed 2 months ago by llara

  • status changed from new to closed
  • resolution set to fixed

Jack: 253 ~ Resolved

Note: See TracTickets for help on using tickets.