| SWTBot tests using Jython [message #633070] |
Fri, 15 October 2010 05:15  |
Geoff Bache Messages: 33 Registered: October 2010 |
Member |
|
|
I'm interested in trying to write SWTBot tests in Jython to be able to interface with other Python testing utilities that we have. Does anyone know if this is possible? I see people are doing things in JRuby but couldn't find any docs or examples.
A "translation" of the tutorial test into a standalone Jython or JRuby program would be really handy here.
Regards,
Geoff Bache
P.S: Regarding my previous mail, I can confirm that it works without problems if I create a personalised installation with all the jars in the same location.
|
|
|
|
|
|
|
|
|
|
| Re: SWTBot tests using Jython [message #635545 is a reply to message #633634] |
Wed, 27 October 2010 06:09  |
Geoff Bache Messages: 33 Registered: October 2010 |
Member |
|
|
Hi again,
| Ketan Padegaonkar wrote on Mon, 18 October 2010 11:24 |
The last time I tried, the jruby ScriptEngineManager was a bit buggy
with respect to classloading and other configuration bits. I do not know
about the other implementations of the script engine manager.
>
|
I can report after a while of tearing my hair out that this is also the case with the jython ScriptEngineManager. I had classloader problems all over the place, and assorted other weirdness. Today I gave up and switched to the Python-specific interface and everything just worked. 
It would still be possible to create something generic of course, though it would probably be a question of writing
if (extension.equals("py") {
.. do python stuff
} else if (extenstion.equals("rb") {
... do ruby stuff
}
etc.
[Updated on: Wed, 27 October 2010 06:10] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01880 seconds