|[SOLVED]Tests pass in ITE, but fail in testexec: Unsupported Language [message #894599]
||Mon, 09 July 2012 19:08
| Scott Hull
Registered: July 2012
I have created a RCP project in eclipse and I have managed to get the OM (Object Mapping) to work fine in the ITE and run the tests successfully. However, when I try to run ./testexec, it halts when it reaches the first point to insert text into a textField. |
This is after it executes a few lines of GUI tests.
So I checked the error, it is below:
Action: Replace Text
Parameter Name: Text
Parameter Type: String
Parameter Value: NewProfileOfJob
Error Type: Action Error
description: Unsupported Keyboard Layout in AUT-Configuration!
The error description states that it is a keyboard issue, which means I am supposedly using the wrong language (I am using English United States).
However, on the testexec cmd line, within the project's preferences, and the regional settings are set to English United States.
[Updated on: Fri, 13 July 2012 14:26]
Report message to a moderator
|Re: Tests pass in ITE, but fail in testexec: Unsupported Language [message #895525 is a reply to message #895338]
||Fri, 13 July 2012 11:39
| Alexandra Schladebeck
Registered: July 2009
Ah, I believe I have the culprit |
When you run the test via testexec, you're starting the AUT via autrun, not via a configuration (as you appear to when you start the test via the ITE). As autrun replaces the configuration, they can be (and are, in this case) configured differently. Generally you only need to use autrun if you are working with Test Jobs - perhaps you could be using a configuration for the testexec instead. More information on different ways of starting AUTs is here.
That's not to say that you can't / shouldn't connect via autrun, it just took me longer to realize the problem - when you start an RCP AUT via autrun, you also need the parameter for the keyboard layout, described in the documentation here. I guess if it's not entered, some kind of default is used. If you specify that parameter, then it should work.
Powered by FUDForum
. Page generated in 0.02380 seconds