Cannot complete installation

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

Cannot complete installation

Postby Rin » Thu Oct 14, 2010 4:04 am

Hello all,
I am using Eclipse 3.6 and installed WindowTester by using update site :http://dl.google.com/eclipse/inst/windowtester/latest/3.6
When installing , i got an warning message:

"Warning: You are installing software that contains unsigned content. The
authenticity or validity of this software cannot be established. Do you want to
continue with the installation?"

I chose [Yes] and continued the installation.
But when the installation completed, I did not see Window Tester-> License/Registration and Activation in Preference Page .
I created a sample test and tried to play back. But i got exception related to 'checkLicense'

Here is the error message
java.lang.IllegalStateException: ************************************************
This installation of WindowTester is not properly licensed.
To activate WindowTester on this machine:
1) Launch the Eclipse IDE with WindowTester on this machine
2) Select Window > Preferences to open the Preferences dialog
3) Select the WindowTester preference page
4) Click on the "Registration and Activation" button
5) Follow the instructions in the Activation wizard
************************************************
Licenses found:
HardwareAddress[00-24-D6-17-30-F8]
HardwareAddress[00-24-E8-82-64-8B]
************************************************

at com.windowtester.internal.runtime.UIContextCommon.checkLicense(UIContextCommon.java:314)
at com.windowtester.runtime.swt.internal.UIContextSWT.handleConditions(UIContextSWT.java:882)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:302)

Does anyone know what I am missing. And how to resolved it?

Thanks a lot!
Rin
Rin
 
Posts: 5
Joined: Thu Oct 14, 2010 3:47 am

Re: Cannot complete installation

Postby gnebling » Thu Oct 14, 2010 7:31 am

The latest WindowTester version 6.0 won't have a License preference page.
In your WindowTester main Preference page, could you tell us the version of WindowTester that's installed?
Is this a fresh copy of Eclipse or is there an older version of WindowTester installed previously?
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am

Re: Cannot complete installation

Postby Rin » Thu Oct 14, 2010 7:41 am

Hi,
Thanks for your quick answer.
This is the first time installed Window Tester Pro-verison 6.0.0 r36x201009131510 - to my Eclipse.
Thanks,
Rin
Rin
 
Posts: 5
Joined: Thu Oct 14, 2010 3:47 am

Re: Cannot complete installation

Postby gnebling » Thu Oct 14, 2010 7:50 am

Interesting. It shouldn't require a license.
Do you have another one of our tools installed or any other plug-ins installed?
Do you have an existing Instantiations.license file somewhere in your c:\ dir or user home dir?
What is the exact Eclipse 3.6 package you're using? OS?
I'll give it a try and let you know if I see the same problem.
Anything else you've done differently? Not sure what that is tho :)
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am

Re: Cannot complete installation

Postby gnebling » Thu Oct 14, 2010 1:30 pm

Installed into Eclipse 3.6 Classic under Windows XP and it installed fine. Restarted Eclipse, recorded a sample Plugin test, SwingTest and SWT test and they all played back fine without asking for a license. I made sure I didn't have any license file in my c:\drive.

Did you select all of the components when you installed?
What type of application were you trying to test?
Could you post your sample test generated?
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am

Re: Cannot complete installation

Postby Rin » Thu Oct 14, 2010 11:32 pm

I haven't installed any instantiations before. So i think i don't have any license file.
I just installed Window Tester via update site and selected all provided components.
My environment :OS: Window XP Eclipse: Version: 3.6.0 Build id: I20100608-0911

I just created a test for sample ContactManagerRCP. Created a sample unit test and tried to play back .
I tried to uninstall and reinstall it but it does not make changes.

Ahhhh, before that i tried to install WindowTester 5.0.0. But I don't know if it impacts to anything. I will clear everything and try again. I hope it works.
Thanks so much!
Rin
 
Posts: 5
Joined: Thu Oct 14, 2010 3:47 am

Re: Cannot complete installation

Postby Rin » Fri Oct 15, 2010 5:09 am

After removing all stuff, get the newest eclipse and reinstall WindowTester, I got pass through the exception related to checkLicense.
But I received another exception when playing back my test.
Here is the generated code for sample ContactManagerRCP

public void testSample() throws Exception {
IUIContext ui = getUI();
ui.click(new MenuItemLocator("File/New Contact..."));
ui.wait(new ShellShowingCondition(""));
ui.enterText("e");
ui.click(new LabeledTextLocator("Last Name"));
ui.enterText("e");
ui.click(new LabeledTextLocator("Street"));
ui.enterText("e");
ui.click(new LabeledTextLocator("City"));
ui.enterText("e");
ui.click(new LabeledTextLocator("Email"));
ui.enterText("e");
ui.click(new ButtonLocator("&Finish"));
ui.click(new MenuItemLocator("File/Exit"));
ui.wait(100);
ui.ensureThat(new ShellLocator("RCP Contacts Editor").isClosed());
ui.wait(new ShellDisposedCondition("RCP Contacts Editor"));
}

And exception

!ENTRY com.instantiations.eclipse 1 0 2010-10-15 15:06:57.937
!MESSAGE Mouse buttons remapped: false
Exception in thread "WorkbenchTestable" org.eclipse.swt.SWTException: Device is disposed
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.widgets.Display.error(Display.java:1249)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4581)
at org.eclipse.ui.internal.testing.WorkbenchTestable.testingFinished(WorkbenchTestable.java:122)
at org.eclipse.pde.internal.junit.runtime.UITestApplication.runTests(UITestApplication.java:120)
at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71)
at java.lang.Thread.run(Unknown Source)

Sorry about newbie questions. I am just starting with this tool and have no experience. Thanks a lot for your support !
Rin
Rin
 
Posts: 5
Joined: Thu Oct 14, 2010 3:47 am

Re: Cannot complete installation

Postby keertip » Mon Oct 18, 2010 8:31 am

Do you see the Contact Manager app window? Has it got focus at start of test?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Cannot complete installation

Postby Rin » Mon Oct 18, 2010 6:19 pm

Yes, the Contact Manager app opened and was focused at the beginning. Test run is ok, all values were set.
The exception appeared after the application had been closed.
Rin
 
Posts: 5
Joined: Thu Oct 14, 2010 3:47 am

Re: Cannot complete installation

Postby keertip » Tue Oct 19, 2010 7:38 am

Comment out the following lines in the test and run it. While running the test, the application is closed by the File/Exit and then the JUnit runner looks to close the application. Since the application has been closed at it point, you see the exception.

Code: Select all
// ui.click(new MenuItemLocator("File/Exit"));
// ui.wait(100);
// ui.ensureThat(new ShellLocator("RCP Contacts Editor").isClosed());
// ui.wait(new ShellDisposedCondition("RCP Contacts Editor"));
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron