IllegalStateException - Labled Text Locator

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

IllegalStateException - Labled Text Locator

Postby karthik.intels12 » Wed Apr 14, 2010 8:58 pm

Hello


I have tried to click Labeled Text Locator using below code.. While running test case it is throwing IllegalStateException. also It is telling something about license. But i have got approved license from instantiations. What is really happening.


Snippets:-
ui.click(new LabeledTextLocator("ShortName*"));



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[****************]
SerialNumber[WindowTesterSWT-****************]
ActivationKey[WindowTesterSWT-***************]
************************************************
at com.windowtester.internal.swing.UIContextSwing.handleConditions(UIContextSwing.java:347)
at com.windowtester.internal.swing.UIContextSwing.click(UIContextSwing.java:71)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:326)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:80)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:337)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:73)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:299)
at Testing.Character.testChangeCharDataTypeAttributes(Character.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at com.windowtester.runtime.common.UITestCaseCommon.access$0(UITestCaseCommon.java:1)
at com.windowtester.runtime.common.UITestCaseCommon$2.run(UITestCaseCommon.java:136)
at com.windowtester.runtime.common.UITestCaseCommon$3.run(UITestCaseCommon.java:157)
at com.windowtester.internal.runtime.junit.core.SequenceRunner$1.run(SequenceRunner.java:46)
Thanks and Regards,
Karthik.M.S
karthik.intels12
 
Posts: 35
Joined: Wed Mar 31, 2010 4:37 am

Re: IllegalStateException - Labled Text Locator

Postby Phil Quitslund » Thu Apr 15, 2010 9:09 am

This suggests that you either did not activate WindowTester or your license expired. To activate WindowTester, use the “Registration and Activation” button in the WindowTester Preference page (Window>Preferences>WindowTester). See this FAQ entry for more details:

http://downloads.instantiations.com/WindowTesterDoc/integration/latest/docs/html/installation/wintest_activation.html

Hope this helps!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: IllegalStateException - Labled Text Locator

Postby karthik.intels12 » Thu Apr 15, 2010 7:40 pm

No Sir. I already activated. and still 245 days support period is there... But still accessing of that particular Locator alone is checking for versions and If u check tat exception, it also found the license also. but state is getting fail.


I have found workaround for that. it is working properly.
But still i don't know why that Labledtextlocator throws illegal state exception.

Thanks & Regards
Karthik.M.S
Thanks and Regards,
Karthik.M.S
karthik.intels12
 
Posts: 35
Joined: Wed Mar 31, 2010 4:37 am

Re: IllegalStateException - Labled Text Locator

Postby Phil Quitslund » Fri Apr 16, 2010 7:59 am

Interesting. Could you send a report to our support team?: wintest-support@instantiations.com They will investigate further.

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest