2017 bis heute 2016 2015 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2007


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] check if tree expanded


  • Subject: Re: [QF-Test] check if tree expanded
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 06 Apr 2007 12:12:41 +0200

Hi Huawei and all,

please try to limit the size of mails sent to the list. They will be
forwarded to hundreds of users.

If you need to include large run-logs it's mostly preferable to send
them to us directly.

In case of screenshots please use a compressing format like png which
will drastically reduce the size of the mail. Thank you all for your
consideration.

Now, about the problem: I do need a run-log. Can you please provide
one?

Anyway, your assumption about checking whether a node is expanded or
not is wrong. QF-Test will automatically expand tree nodes as
necessary to get to the target item of an event or check. Instead, get
hold of the node (a TreeItem) in a script and use node.getExpanded. I
have to check whether getting a TreeItem with rc.getComponent() is
supported yet.

Hmm, we could easily add an "expanded" check. Does anybody (besides
Huawei :-) ) think this would be useful?

Best regards,
    Greg

"Huawei Luo" <hluo@?.com> writes:

>    HI, it is known that the easiest way to check if a tree is expanded or
>    not is to use a "wait for component" node to catch "index not found
>    exception". In my case, the tree is not expanded, and an "index not
>    found exception" was caught, this is correct, but some how, the tree
>    view was modified, part of the tree disappear. See the attached
>    screenshot.
>
>
>    Help to locate where the problem and how it happens is very
>    appreciated.
>
>
>    Huawei
>
>
>    Error log when I tried to do something else after the tree
>    disappeared:
>
>
>    !ENTRY org.eclipse.ui 4 4 2007-04-05 10:55:55.000
>
>    !MESSAGE Unhandled event loop exception
>
>
>    !ENTRY org.eclipse.ui 4 0 2007-04-05 10:55:55.000
>
>    !MESSAGE 4
>
>    !STACK 0
>
>    java.lang.ArrayIndexOutOfBoundsException: 4
>
>                at org.eclipse.swt.widgets.Tree._getItem(Tree.java:208)
>
>                at
>    org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:6106)
>
>                at
>    org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:3895)
>
>                at
>    org.eclipse.swt.widgets.Composite.WM_NOTIFY(Composite.java:1166)
>
>                at
>    org.eclipse.swt.widgets.Control.windowProc(Control.java:3331)
>
>                at
>    org.eclipse.swt.widgets.Display.windowProc(Display.java:5317)
>
>                at
>    org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
>
>                at
>    org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2123)
>
>                at
>    org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1321)
>
>                at
>    org.eclipse.swt.widgets.Widget.wmPaint(Widget.java:2150)
>
>                at
>    org.eclipse.swt.widgets.Control.WM_PAINT(Control.java:3899)
>
>                at
>    org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1182)
>
>                at org.eclipse.swt.widgets.Tree.WM_PAINT(Tree.java:5945)
>
>                at
>    org.eclipse.swt.widgets.Control.windowProc(Control.java:3332)
>
>                at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:4785)
>
>                at
>    org.eclipse.swt.widgets.Display.windowProc(Display.java:5317)
>
>                at
>    org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>
>                at
>    org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2204)
>
>                at
>    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4175)
>
>                at
>    org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
>
>                at
>    org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>
>                at
>    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java
>    :419)
>
>                at
>    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>
>                at
>    org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
>
>                at
>    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActi
>    vator.java:78)
>
>                at
>    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplic
>    ation(EclipseAppLauncher.java:92)
>
>                at
>    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ecl
>    ipseAppLauncher.java:68)
>
>                at
>    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.jav
>    a:400)
>
>                at
>    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.jav
>    a:177)
>
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>    Method)
>
>                at
>    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
>    ava:39)
>
>                at
>    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
>    orImpl.java:25)
>
>                at java.lang.reflect.Method.invoke(Method.java:585)
>
>                at
>    org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
>
>                at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>
>                at org.eclipse.core.launcher.Main.run(Main.java:977)
>
>                at org.eclipse.core.launcher.Main.main(Main.java:952)

--
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833