Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » TreeViewers with Lazy Decorators
TreeViewers with Lazy Decorators [message #1708098] Sun, 13 September 2015 01:18 Go to next message
Eclipse UserFriend
Hi,

I just recorded my first test case but when I replay it it fails because it can't find a specific tree item. I have the
feeling that it's related to the fact that the tree viewer (i.e., Project Explorer) uses lazy label decoration. When I
recorded the test case I was slow enough so that the label decorator had already decorated the tree item, i.e., added a
brown suffix text. The recorder has recorded the decorated label text, including the decoration suffix. But when the
test is replayed that's so quick that the lazy label decorator didn't have a chance to decorate the item, hence it still
has a different label than in the recorded script. Any ideas how to solve this?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: TreeViewers with Lazy Decorators [message #1708100 is a reply to message #1708098] Sun, 13 September 2015 01:27 Go to previous messageGo to next message
Eclipse UserFriend
Update:

I could work around this problem by replacing the recorded decoration suffixes by ".*". Now the playback seems to match
either form of the label, decorated and undecorated.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 13.09.2015 um 07:18 schrieb Eike Stepper:
> Hi,
>
> I just recorded my first test case but when I replay it it fails because it can't find a specific tree item. I have
> the feeling that it's related to the fact that the tree viewer (i.e., Project Explorer) uses lazy label decoration.
> When I recorded the test case I was slow enough so that the label decorator had already decorated the tree item, i.e.,
> added a brown suffix text. The recorder has recorded the decorated label text, including the decoration suffix. But
> when the test is replayed that's so quick that the lazy label decorator didn't have a chance to decorate the item,
> hence it still has a different label than in the recorded script. Any ideas how to solve this?
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
Re: TreeViewers with Lazy Decorators [message #1708116 is a reply to message #1708100] Sun, 13 September 2015 21:17 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eike,

You could also use try {} block with exact label text, but .* is also ok.

Kind regards,
Ulyana.

Re: TreeViewers with Lazy Decorators [message #1708125 is a reply to message #1708116] Mon, 14 September 2015 01:58 Go to previous message
Eclipse UserFriend
Am 14.09.2015 um 03:17 schrieb Ulyana Skorokhodova:
> Hi Eike,
>
> You could also use https://hudson.eclipse.org/rcptt/job/rcptt-all/ws/releng/doc/target/doc/ecl/index.html#try block
> with exact label text,
Thanks for the hint, especially to that concise list of ECL commands.

> but .* is also ok.
Great. In this case that seems simpler to me ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:[SOLVED] #set up RCPTT TEST RUNNER
Next Topic:Properly Close AUT
Goto Forum:
  


Current Time: Tue Jun 24 16:29:59 EDT 2025

Powered by FUDForum. Page generated in 0.04434 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top