Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » background lazy View not selectable
background lazy View not selectable [message #1793830] Thu, 16 August 2018 16:25
Florian Hof is currently offline Florian HofFriend
Messages: 1
Registered: August 2018
Junior Member
Hello there,

I'm testing an RCP application where multiple Views are tabbed.
The first of the tabbed Views is shown and initalized, but not the others (second and so on). This lazy initializing of Views is actually a feature: https://stackoverflow.com/questions/13819127/rcp-application-how-to-forbid-the-lazy-loading-of-view-in-a-folder-layout

I create a test working on the second of the tabbed Views (called "Trassen"). Record and Replay works fine at first.
Then I add a Context reseting the Workbench and defining all the required views, to have a clean base for each test. The replay fails with following message:
Failed to execute the command on the disposed control ViewReference:Trassen.

How can I initialize or activate this view? "click" or "set-focus" doesn't works, I get the same error message. I couln't find something appropriate in the list https://hudson.eclipse.org/rcptt/job/rcptt-all/ws/releng/doc/target/doc/ecl/index.html

The workaround I find so far: let the test open the view whith the menu, selecting the view, approving. But that is cumbersome for my many views (and many tests, although I could put it in an Ecl Context).

For insider, the error message is defined in TeslaMessages.properties and throws in SWTUIProcessor.java:659 https://git.eclipse.org/r/plugins/gitiles/rcptt/org.eclipse.rcptt/+/c394fb5fcf57ec37733db1e62d872d255cd9c0c0/runtime/tesla/org.eclipse.rcptt.tesla.swt/src/org/eclipse/rcptt/tesla/internal/ui/processors/SWTUIProcessor.java#659
Can the code of RCPTT be improved to initialize lazy views?

Many thanks for helping and/or improving!

[Updated on: Mon, 20 August 2018 08:31]

Report message to a moderator

Previous Topic:Button Click not working on Replay
Next Topic:RCPTT working with Eclipse Photon?
Goto Forum:
  


Current Time: Fri Apr 26 09:28:52 GMT 2024

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

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

Back to the top