WindowTester Error uding Tycho & maven

118 views
Skip to first unread message

keerthivasan chinnathambi

unread,
Feb 12, 2015, 5:10:54 AM2/12/15
to windowte...@googlegroups.com
Hello ,

I am trying to run the WT test case .

pom.xml :
  <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-surefire-plugin</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                    <useUIHarness>true</useUIHarness>
                    <useUIThread>true</useUIThread>
                    <surefire.timeout>7200000</surefire.timeout>
                    <showEclipseLog>true</showEclipseLog>
                    <argLine>-Xms40m -Xmx512m -XX:MaxPermSize=256m -Xmx1024m -Xms512m -XX:PermSize=128m
                        -XX:MaxPermSize=512m</argLine>
                    <application>org.eclipse.ui.ide.workbench</application>
                    <product>org.eclipse.sdk.ide</product>
                    <includes>
                        <include>**/*TestSuite*.java</include>
                    </includes>
                    <dependencies>
                        <dependency>
                            <type>p2-installable-unit</type>
                            <artifactid>com.windowtester.runtime.feature.group</artifactid>
                            <version>0.0.0</version>
                        </dependency>
                    </dependencies>
                </configuration>
 </plugin>

It got the following error :

Failed to create widget reference for instance of org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer$2

Could you please someone help me in resolving the error?

Thank you,
keerthi


Fred G

unread,
Feb 18, 2015, 7:19:47 AM2/18/15
to windowte...@googlegroups.com
Hi,

Which version of Window Tester Pro and Eclipse are you using?

Regards,

Fred

keerthivasan chinnathambi

unread,
Feb 19, 2015, 1:38:32 AM2/19/15
to windowte...@googlegroups.com
Hello Fred ,

Thank you for the response,

Eclipse : Kepler(4.3.2)
WindowTester : 6.1.0

Best Regards,
Keerthi

keerthivasan chinnathambi

unread,
Feb 19, 2015, 6:02:01 AM2/19/15
to windowte...@googlegroups.com
Hello Fred,


Additionally please find the below information

Windows : 64 bit environment
Eclipse Kepler(4.3.2), 64 bit
WindowTester : 6.1.0 ( contains both plugins of com.windowtester.swt.runtime.win32.win32.x86_64_6.1.0.201310072244,com.windowtester.swt.runtime.win32.win32.x86_6.1.0.201310072244 and com.windowtester.swt.runtime_6.1.0.201310072244)
Java_ JRE(1.7) : 64 b it

Thank you,
Keerthi

Fred G

unread,
Feb 19, 2015, 7:27:43 AM2/19/15
to windowte...@googlegroups.com
Thanks for information.
Is there any chance you could post a minimal example of what you are trying to test when the issue occurs?

Regards,

Fred

keerthivasan chinnathambi

unread,
Feb 20, 2015, 5:08:59 AM2/20/15
to windowte...@googlegroups.com

Hello Fred,

Thank you for the response.

As mentioned previous trace , please find the below pom.xml

  <plugin>
                <groupId>org.eclipse.tycho</
groupId>
                <artifactId>tycho-surefire-plugin</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                    <useUIHarness>true</useUIHarness>
                    <useUIThread>true</useUIThread>
                    <surefire.timeout>7200000</surefire.timeout>
                    <showEclipseLog>true</showEclipseLog>
                    <argLine>-Xms40m -Xmx512m -XX:MaxPermSize=256m -Xmx1024m -Xms512m -XX:PermSize=128m
                        -XX:MaxPermSize=512m</argLine>
                    <application>org.eclipse.ui.ide.workbench</application>
                    <product>org.eclipse.sdk.ide</product>
                    <includes>
                        <include>**/*TestSuite*.java</include>
                    </includes>
                    <dependencies>
                        <dependency>
                            <type>p2-installable-unit</type>
                            <artifactid>com.windowtester.runtime.feature.group</artifactid>
                            <version>0.0.0</version>
                        </dependency>
                    </dependencies>
                </configuration>
 </plugin>

Thank you,
Keerthi

Fred G

unread,
Feb 20, 2015, 10:17:52 AM2/20/15
to windowte...@googlegroups.com
Hi Keerthi,

The issue you are having is most likely related to incompatibilities with Window Tester and your 64bit environment,
but without actual source code (test code) in the form of a minimal example it's going to be hard to reproduce your issue.

If possible, please try to run your tests in a 32bit environment to help isolate the problem.

Regards,

Fred

keerthivasan chinnathambi

unread,
Feb 25, 2015, 3:58:05 AM2/25/15
to windowte...@googlegroups.com
Hello Fred,

The Window Tester and 64 bit environment work properly in case of PDE-build project.
Only the problem occurs in maven and tycho build.

And also tried in 32 bit environment , it shows same problem

Regards,
Keerthi

Fred G

unread,
Feb 25, 2015, 9:04:35 AM2/25/15
to windowte...@googlegroups.com
Hi Keerthi,

Interesting that it works with a PDE-build project.
I will try to run a Maven/Tycho build and see if I can reproduce your issue.

BTW: This won't fix your problem, but I noticed that your argLine is a little confusing:

<argLine>-Xms40m -Xmx512m -XX:MaxPermSize=256m -Xmx1024m -Xms512m -XX:PermSize=128m -XX:MaxPermSize=512m</argLine>
(-Xms, -Xmx and -XX:MaxPermSize are set multiple times to different values.)

Regards,

Fred
Message has been deleted

keerthivasan chinnathambi

unread,
Mar 13, 2015, 9:41:59 AM3/13/15
to windowte...@googlegroups.com
Hello Fred,

Could you please provide any clue on the stacktrace ?

com.windowtester.runtime.WaitTimedOutException: Max retry period (30000 milliseconds) exceeded. 
	at com.windowtester.runtime.swt.internal.operation.SWTOperation.execute(SWTOperation.java:128)
	at com.windowtester.runtime.swt.internal.operation.SWTShowMenuOperation.execute(SWTShowMenuOperation.java:105)
	at com.windowtester.runtime.swt.internal.widgets.DisplayReference.closeAllMenus(DisplayReference.java:164)
	at com.windowtester.runtime.swt.internal.drivers.MenuDriver.resolveAndSelect0(MenuDriver.java:114)
	at com.windowtester.runtime.swt.internal.drivers.MenuDriver.resolveAndSelect(MenuDriver.java:57)
	at com.windowtester.runtime.swt.locator.MenuItemLocator.click(MenuItemLocator.java:90)
	at com.windowtester.internal.runtime.selector.ClickHelper.doClick(ClickHelper.java:181)
	at com.windowtester.internal.runtime.selector.ClickHelper.click(ClickHelper.java:69)
	at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:147)
	at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:334)
	at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:140)
	at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:342)
	at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:133)
	at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:304)
	at com.reserve.core.ui.wizards.OpenImportWizardTest.testOpenWizardFromFileMenu(OpenImportWizardTest.java:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at junit.framework.TestCase.runTest(TestCase.java:176)
	at junit.framework.TestCase.runBare(TestCase.java:141)
	at com.windowtester.runtime.common.UITestCaseCommon.access$0(UITestCaseCommon.java:1)
	at com.windowtester.runtime.common.UITestCaseCommon$2.run(UITestCaseCommon.java:140)
	at com.windowtester.runtime.common.UITestCaseCommon$3.run(UITestCaseCommon.java:161)
	at com.windowtester.internal.runtime.junit.core.SequenceRunner$1.run(SequenceRunner.java:50)
Caused by: com.windowtester.runtime.swt.internal.operation.SWTOperationStepException: Failed to post OS event: Event {type=1 null time=0 data=null x=0 y=0 width=0 height=0 detail=0}
	at com.windowtester.runtime.swt.internal.operation.SWTOperation$3.executeInUI(SWTOperation.java:328)
	at com.windowtester.runtime.swt.internal.operation.SWTOperation.executeInUI(SWTOperation.java:194)
	at com.windowtester.runtime.swt.internal.operation.SWTOperation$1.call(SWTOperation.java:77)
	at com.windowtester.runtime.swt.internal.operation.SWTOperation$1.call(SWTOperation.java:1)
	at com.windowtester.runtime.swt.internal.widgets.SWTUIExecutor.execute(SWTUIExecutor.java:142)
	at com.windowtester.runtime.swt.internal.widgets.SWTUIExecutor.access$0(SWTUIExecutor.java:140)
	at com.windowtester.runtime.swt.internal.widgets.SWTUIExecutor$1.run(SWTUIExecutor.java:101)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
	at com.windowtester.runtime.swt.internal.junit.SWTExecutionMonitor.doWaitForFinish(SWTExecutionMonitor.java:161)
	at com.windowtester.internal.runtime.junit.core.AbstractExecutionMonitor.waitUntilFinished(AbstractExecutionMonitor.java:215)
	at com.windowtester.internal.runtime.junit.core.SequenceRunner.waitUntilFinished(SequenceRunner.java:79)
	at com.windowtester.internal.runtime.junit.core.SequenceRunner.exec(SequenceRunner.java:63)
	at com.windowtester.runtime.common.UITestCaseCommon.runUITest(UITestCaseCommon.java:157)
	at com.windowtester.runtime.common.UITestCaseCommon.runBare(UITestCaseCommon.java:138)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at junit.framework.TestSuite.runTest(TestSuite.java:255)
	at junit.framework.TestSuite.run(TestSuite.java:250)
	at junit.framework.TestSuite.runTest(TestSuite.java:255)
	at junit.framework.TestSuite.run(TestSuite.java:250)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:123)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:86)
	at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(AbstractUITestApplication.java:35)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	at org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31)
	at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:114)
	at org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

Fred G

unread,
Mar 14, 2015, 6:59:43 PM3/14/15
to windowte...@googlegroups.com
Hi Keerthi,

Please provide the source of the test class OpenImportWizardTest, if possible.

Regards,

Fred

Venkata Prasad Reddy

unread,
Dec 16, 2015, 6:19:51 AM12/16/15
to windowtester-pro
Hi,

I am able to Record and Play ContactManagerRPC Application which is provided by Window Tester Pro Team, but I dont know the steps for Recording and Playing my own Java Swing Application.

Please tell me, Steps for Recording and Playing Application (Not provided by Window Tester Pro Team).

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages