Q7

Adding message from palette became dependent on window size.

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.2.17
  • Fix Version/s: 1.2.x
  • Component/s: Launching (Runtime)
  • Labels:
  • Test Mode:
    Q7
  • Q7 test:
    AutoNumberingOnMessageLink

Description

Steps to reproduce

  1. Use workspace attached, start recording
  2. Open newfile, in palette select Message/Message with return
  3. Add it on diagram
  4. Make AUT window small-sized, try to replay

Test fails because message is not added, but it is selected in palette

Once I got an exception:

java.lang.NullPointerException
	at org.eclipse.jface.action.ToolBarContributionItem.updateSize(ToolBarContributionItem.java:636)
	at org.eclipse.jface.action.ToolBarContributionItem.update(ToolBarContributionItem.java:595)
	at org.eclipse.jface.action.CoolBarManager.update(CoolBarManager.java:958)
	at org.eclipse.ui.internal.WorkbenchWindow.updateActionBars(WorkbenchWindow.java:3224)
	at org.eclipse.ui.internal.WorkbenchWindow.largeUpdateEnd(WorkbenchWindow.java:3277)
	at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3732)
	at org.eclipse.ui.internal.WorkbenchPage.closePerspective(WorkbenchPage.java:1663)
	at org.eclipse.ui.internal.WorkbenchPage.closePerspective(WorkbenchPage.java:1583)
	at org.eclipse.ui.internal.WorkbenchPage.closePerspective(WorkbenchPage.java:1538)
	at com.xored.q7.ctx.workbench.impl.WorkbenchContextProcessor$11.run(WorkbenchContextProcessor.java:265)
	at com.xored.q7.internal.runtime.ui.UIRunnable$1.doProcessing(UIRunnable.java:62)
	at com.xored.tesla.swt.events.TeslaEventManager.doProcessing(TeslaEventManager.java:94)
	at com.xored.tesla.swt.aspects.DisplayAspect.ajc$around$com_xored_tesla_swt_aspects_DisplayAspect$1$e269b158(DisplayAspect.aj:71)
	at org.eclipse.swt.widgets.Display.sleep(Display.java:4650)
	at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:364)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2702)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.vozone.sdt.product.VozoneApplication.start(VozoneApplication.java:81)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Activity

Hide
Ulyana Skorokhodova added a comment - 26/May/14 3:52 PM

One more way to reproduce:

1. Run DefaultColorForInstanceChildren;
2. Change window size to a smaller one and try to replay.

The test fails on line 30:

Failed to locate the figure by classname: ActivationEditPart by index: 3.
at get-edit-part (/Q7/SequenceDiagram/Create/DefaultColorForInstanceChildren.test:30)

Show
Ulyana Skorokhodova added a comment - 26/May/14 3:52 PM One more way to reproduce: 1. Run DefaultColorForInstanceChildren; 2. Change window size to a smaller one and try to replay. The test fails on line 30: Failed to locate the figure by classname: ActivationEditPart by index: 3. at get-edit-part (/Q7/SequenceDiagram/Create/DefaultColorForInstanceChildren.test:30)

People

  • Assignee:
    Unassigned
    Reporter:
    lena.platova
Vote (0)
Watch (0)

Dates

  • Created:
    18/Mar/13 7:31 PM
    Updated:
    12/Mar/15 6:39 PM