Ticket #141 (closed defect: fixed)

Opened 8 months ago

Last modified 6 months ago

s/delayBetweenStartingUseCasses/delayBetweenStartingUseCases/

Reported by: ddewaleffe Assigned to:
Priority: critical Milestone:
Version: 5.1 Keywords:
Cc:

Description

There is a typo in the element name. I thought it was mine, but removing one s, blocked the editor [another ticket of mine] with Error reading the Scenario: [severity=ERROR,message=Unexpected element {www.pushtotest.com/tm5}:delayBetweenStartingUseCases

Change History

10/29/07 21:32:46 changed by fcohen

  • priority changed from major to critical.

11/07/07 15:31:04 changed by fcohen

Frank Cohen wrote:

I confirm that TM now understands:

<delayBetweenStartingUseCases time="1000"/>

The problem is backward compatibility with TestMaker 5.0 scripts:

<delayBetweenStartingUseCasses time="1000"/>

The above old version causes TM to display an "TestScenario is invalid" error alert message. Please provide backward compatibility to recognize both forms of the tag in the TestScenario.

Thanks.

-Frank

11/07/07 16:02:28 changed by fcohen

Frank Cohen wrote:

One other thing, creating a new TestScenario (load test, functional test, service monitor) uses the old and now broken <delayBetweenStartingUseCasses> element. This causes TM to throw an exception:

java.lang.NullPointerException?

at com.pushtotest.testmaker.XSTest.xml.TestScenario.XMLReader.isMonitorTest(XMLReader.java:650) at com.pushtotest.testmaker.controller.guiTestScenarioPanel.initScenario(guiTestScenarioPanel.java:180) at com.pushtotest.testmaker.controller.guiTestScenarioPanel.<init>(guiTestScenarioPanel.java:143) at com.pushtotest.testmaker.controller.guiTestScenarioPanel.openFromFile(guiTestScenarioPanel.java:291) at com.pushtotest.testmaker.gui.ScriptEditor?.TMFrame.openTestscenario(TMFrame.java:897) at com.pushtotest.testmaker.gui.NewAgentWizard?.ChooseScriptType?.createAndOpenScenario(ChooseScriptType?.java:813) at com.pushtotest.testmaker.gui.ScriptEditor?.jbase.newTestscenario(jbase.java:490) at com.pushtotest.testmaker.gui.ScriptEditor?.TMFrame$2.actionPerformed(TMFrame.java:905) at javax.swing.AbstractButton?.fireActionPerformed(AbstractButton?.java:2028) at javax.swing.AbstractButton?$Handler.actionPerformed(AbstractButton?.java:2351) at javax.swing.DefaultButtonModel?.fireActionPerformed(DefaultButtonModel?.java:387) at javax.swing.DefaultButtonModel?.setPressed(DefaultButtonModel?.java:242) at javax.swing.plaf.basic.BasicButtonListener?.mouseReleased(BasicButtonListener?.java:236) at java.awt.Component.processMouseEvent(Component.java:6084) at javax.swing.JComponent.processMouseEvent(JComponent.java:3240) at java.awt.Component.processEvent(Component.java:5849) at java.awt.Container.processEvent(Container.java:2028) at java.awt.Component.dispatchEventImpl(Component.java:4491) at java.awt.Container.dispatchEventImpl(Container.java:2086) at java.awt.Component.dispatchEvent(Component.java:4321) at java.awt.LightweightDispatcher?.retargetMouseEvent(Container.java:4292) at java.awt.LightweightDispatcher?.processMouseEvent(Container.java:3956) at java.awt.LightweightDispatcher?.dispatchEvent(Container.java:3886) at java.awt.Container.dispatchEventImpl(Container.java:2072) at java.awt.Window.dispatchEventImpl(Window.java:2405) at java.awt.Component.dispatchEvent(Component.java:4321) at java.awt.EventQueue?.dispatchEvent(EventQueue?.java:600) at java.awt.EventDispatchThread?.pumpOneEventForFilters(EventDispatchThread?.java:300) at java.awt.EventDispatchThread?.pumpEventsForFilter(EventDispatchThread?.java:210) at java.awt.EventDispatchThread?.pumpEventsForHierarchy(EventDispatchThread?.java:200) at java.awt.EventDispatchThread?.pumpEvents(EventDispatchThread?.java:195) at java.awt.EventDispatchThread?.pumpEvents(EventDispatchThread?.java:187) at java.awt.EventDispatchThread?.run(EventDispatchThread?.java:121)

11/09/07 22:56:57 changed by fcohen

  • version changed from 5 to 5.1.

11/10/07 07:46:18 changed by fcohen

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

Max changed the templates to use the new <delayBetweenStartingUseCases> and I added backward compatibility to support <delayBetweenStartingUseCasses>. Confirmed and closed. -Frank