-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swing Library Keywords are not displaying in RIDE #2
Comments
Creating library specs for RIDE is discussed here: I think we should make SwingLibrary's spec available here on downloads, though. |
Thanks for the URL. I don't think it will take more of your time to do that , kindly do that. Thanks , looking forward to spec file in download area. |
Hi, I have following settings on my machine: Robotframework: C:\Python27\Lib\site-packages\robot On command prompt i am sending two commands. C:>set CLASSPATH=C:\Program Files\Java\jdk1.7.0\lib\tools.jar:swinglibrary-1.2.jar C:>jython -Dpython.path=C:\Python27\Lib\site-packages/ libdoc.py -f xml SwingLibrary Following error message appears Importing test library 'SwingLibrary' failed: ImportError: No module named SwingLibrary |
I enhanced our build process to also produce the Spec file for RIDE. I uploaded Spec for 1.2 in the Downloads section. Just unzip the file, and make sure that the directory containing SwingLibrary.xml is in the PYTHONPATH when RIDE runs |
Thanks for the XML. It is working now. |
Good to hear. |
FAILS testing Swinglibray demo on RIDE STEEPs 1.Install RIDE 1.1 2.Load Test Swinglibrary Demo The ERROR LOGG Demo1.Example | FAIL | 2 critical tests, 0 passed, 2 failed 2 tests total, 0 passed, 2 failedDemo1 | FAIL | 2 tests total, 0 passed, 2 failedOutput: c:\windows\temp\RIDExpkebb.d\output.xml [ ERROR ] Error in file 'C:\roboframework\Python27\SwingLibrary-master\demo1\example.txt' in table 'Settings': Importing test library 'SwingLibrary' failed: ImportError: No module named SwingLibrary |
I too have been strugling to get RIDE fully working with SwingLibrary projects. Maybe a better documentation should be writen. This is what I have found: These projects must be run with Jython (or jybot). To run project from RIDE, since the environment vars must be set, we cannot use jybot, but run a custom script (in Windows .bat). This is an execution from Command Window: C:\ROBOT\swinglibrary-demo> C:\jython2.5.3\jybot C:\ROBOT\swinglibrary-demo\example.txtExampleTest Add Todo Item | PASS |Test Delete Todo Item | PASS |Example | PASS | 2 tests total, 2 passed, 0 failedOutput: C:\ROBOT\swinglibrary-demo\output.xml I have attempted with jybot from RIDE but without success. But using a custom script whe can execute the test and then look at report outside RIDE. This is a functional example: |
We should enhance getting started documentation to explain how to take SwingLib into use in RIDE. In addition to explaining using specs, should also explain that tests must be run with Jython. Should also consider could RIDE handle specs with version in them automatically or should we perhaps drop the version from the distributed specs. We could just have the latest spec in the source repository (would automatically have all versions available under tags) or possibly under wiki. Library version is visible inside the spec so having it in the file name isn't mandatory. |
In short we need to: Secondarily: |
Hi ,
I have downloaded the SwingLibrary1.02 and also added it to ClassPath but RIDE is not showing any Swing Keywords.
I was reading on robotframework website that i have to create spec file for Java libraries.
Could you please let me know how to create Spec file for Swinglibrary.
I need help.
The text was updated successfully, but these errors were encountered: