Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Generating test-ids for Combo dropdown list elements(After migrating from RAP 2.2 to 3.4 we no longer can use lifecycle listeners to add the test-ids)
Generating test-ids for Combo dropdown list elements [message #1832359] Thu, 17 September 2020 06:43 Go to next message
Abdalla Bushnaq is currently offline Abdalla BushnaqFriend
Messages: 3
Registered: September 2020
Junior Member
I need to update RAP from version 2.2 to 3.4 to fix some known vulnerabilities.
We have a suite of ~200 automatic tests using selenium that need a test-id attached to the widgets.
In 2.2 we used
widget.setData(WidgetUtil.CUSTOM_WIDGET_ID, testId);
and we used an extension in the plugin.xml to listen to widget creation to add test-ids for elements like combo drop down list items, that otherwise cannot be reached.

<extension
point="org.eclipse.rap.ui.phaselistener">
<listener
class="com.ricoh.webapplication.util.UITestPhaseListener">
</listener>
</extension>

public void beforePhase(PhaseEvent event) {
WidgetTreeVisitor visitor = createWidgetTreeVisitor();
for (Shell shell : getAllShells()) {
WidgetTreeVisitor.accept(shell, visitor);
}
}

I am sure that this code was suggested somewhere in the internet.

Unfortunately rap 3.4 no longer supports the phaselistener interface.

Is there a way to get hold of the widgets I need to add the test-ids to?
Re: Generating test-ids for Combo dropdown list elements [message #1832570 is a reply to message #1832359] Mon, 21 September 2020 08:55 Go to previous message
Abdalla Bushnaq is currently offline Abdalla BushnaqFriend
Messages: 3
Registered: September 2020
Junior Member
Hi, anybody that has any idea what how to solve this?
Previous Topic:[ANN] RAP 3.14 released
Next Topic:RAP document preview
Goto Forum:
  


Current Time: Sat Oct 23 16:05:56 GMT 2021

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

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

Back to the top