java.lang.NoClassDefFoundError: com/instantiations/common/ui

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

java.lang.NoClassDefFoundError: com/instantiations/common/ui

Postby ngrossi » Thu Feb 01, 2007 9:41 am

Hi! My name is nicolas Grossi and i'm evaluting the use of windows tester to automate some of ours test Cases. I'm working on Bea, and we are traying to use windows tester on our product (ALBPM).

I'm getting this exception trying to run the following test:

EclipseWorkbench.createEditor(class fuego.designer.organization.ParticipantPanel, NicoPartnicoPart7)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~) EclipseWorkbench.openEditor
Esto es la prueba 1
Exception in thread "Common Core UI Background Startup" java.lang.NoClassDefFoundError: com/instantiations/common/ui/dialog/PlatformCompatibilityDialog
at com.instantiations.common.ui.CommonUIPlugin$1.run(CommonUIPlugin.java:60)

the source code is:

package com.bea.qa.albpm.studio.organization;

import junit.extensions.UITestCase;
import com.windowtester.swt.IUIContext;
import com.windowtester.swt.WidgetLocator;
import com.windowtester.swt.locator.eclipse.ViewLocator;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.Control;
import com.

public class newPartTest1 extends UITestCase {

/**
* Main test method.
*/
public void testMain() throws Exception {
System.out.println("estamos empezando el test");
IUIContext ui = getUIContext();
ui.click("tree", "Unnamed7/Organization/Participants");
ui.contextClick("tree", "Unnamed7/Organization/Participants", "New");
ui.waitForShellShowing("Name");
ui.enterText("NicoPartnicoPart7");
ui.click("OK.button");
ui.waitForShellDisposed("Name");

System.out.println("Esto es la prueba 1");
ui.find("NicoPartnicoPart7").toString();
//assertAddNewParticipant();
ui.click("tree", "Unnamed7/Organization/Participants/nicoPart");
ui.close("ALBPM - nicoPart - ALBPM Studio.shell");
ui.waitForShellShowing("Confirm Exit");
ui.click("OK.button");
ui.waitForShellDisposed("Confirm Exit");
ui.waitForShellDisposed("ALBPM Studio");
}

/* Register widgets.
*/
protected void registerWidgetInfo() {
IUIContext ui = getUIContext();
ui.register("ALBPM - nicoPart - ALBPM Studio.shell", new WidgetLocator(
Shell.class, "ALBPM - nicoPart - ALBPM Studio"));
ui.register("OK.button", new WidgetLocator(Button.class, "OK"));
ui.register("tree", new WidgetLocator(Tree.class, new ViewLocator(
"fuego.eclipse.studio.views.ProjectNavigatorView")));
}

}

My enviroment is:

eclipse sdk 3.2.1
RCP developer : RCPDeveloper_v2.0.0_win32_x86.exe

does anybody knows where can i find the missing package?

The FAQ's section has the common.ui package, but in my instalation, common package is missing..

Thanks in advance,

Nicolas Grossi
ngrossi
 
Posts: 2
Joined: Wed Nov 08, 2006 6:49 am

Re: java.lang.NoClassDefFoundError: com/instantiations/commo

Postby gnebling » Fri Feb 02, 2007 9:37 am

ngrossi wrote:eclipse sdk 3.2.1
RCP developer : RCPDeveloper_v2.0.0_win32_x86.exe

We were not able to reproduce this problem. If you are evaluating, please use the latest version.
ngrossi wrote:does anybody knows where can i find the missing package?

In your RCP Developer installation directory:
C:\Program Files\Instantiations\RCP Developer \Shared_v4.5.0\E-3.2\eclipse\plugins\com.instantiations.common.ui_4.5.0
ngrossi wrote:The FAQ's section has the common.ui package, but in my instalation, common package is missing..

What do you mean by "missing"? In your launch configuration Plug-ins tab, do you see the com.instantiations.commn.ui plug-in there?
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am

Postby ngrossi » Fri Feb 02, 2007 9:49 am

gnebling:
Thanks for your quick answerd, this issue was an enviroment one (we only import the windows tester packages but we forgot about common one). Actually, ww didn't know that this package was in the shared directory

Thanks again

Nico
ngrossi
 
Posts: 2
Joined: Wed Nov 08, 2006 6:49 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest