run Robot FrameWork Swing library

691 views
Skip to first unread message

lauretamisier

unread,
Jun 25, 2009, 4:45:31 AM6/25/09
to robotframework-users
Hy,

I try to run the example of swing library but I have the following
error :

Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:
\PROGRA~1\FICHIE~1\MERCUR~1\FUNCTI~1\Java\classes;C:
\PROGRA~1\FICHIE~1\MERCUR~1\FU
NCTI~1\Java\classes\jasmine.jar
[ ERROR ] Error in file 'c:\documents and settings\laure.tamisier
\bureau\swing-library-example(2)\swing-library-example\example.html'
in tab
le 'Setting' in element on row 1: Importing test library
'SwingLibrary' failed: ImportError: No module named SwingLibrary
PYTHONPATH: ['c:\\program files\\python\\lib\\site-packages', 'c:\
\program files\\python\\lib\\site-packages\\robot\\libraries', 'c:\
\progra
m files\\jython\\lib', '__classpath__', '__pyclasspath__', 'c:\
\program files\\jython\\lib\\site-packages', '.']
CLASSPATH: C:\Program Files\Jython\jython.jar;.
Traceback (most recent call last):
File "c:\program files\python\lib\site-packages\robot\utils
\importing.py", line 89, in _import
imported = __import__(modname, {}, {}, fromlist)
==============================================================================
Example
==============================================================================
Data Is Registered Correctly
| FAIL |
Setup of the parent suite failed.
------------------------------------------------------------------------------
Example
| FAIL |
Suite setup failed:
No keyword with name 'Start Application' found.

1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output: c:\temp\output.xml
Report: c:\temp\report.html
Log: c:\temp\log.html

Can you help me,, because I don't understand why I have this error.

Tahnks

Laure

Janne Härkönen

unread,
Jun 25, 2009, 4:58:11 AM6/25/09
to lauret...@gmail.com, robotframework-users
On Thu, Jun 25, 2009 at 11:45 AM, lauretamisier<lauret...@gmail.com> wrote:
>
> Hy,
>
> I try to run the example of swing library but I have the following
> error :
> [ ERROR ] Error in file 'c:\documents and settings\laure.tamisier
> \bureau\swing-library-example(2)\swing-library-example\example.html'
> in tab
> le 'Setting' in element on row 1: Importing test library
> 'SwingLibrary' failed: ImportError: No module named SwingLibrary
> PYTHONPATH: ['c:\\program files\\python\\lib\\site-packages', 'c:\
> \program files\\python\\lib\\site-packages\\robot\\libraries', 'c:\
> \progra
> m files\\jython\\lib', '__classpath__', '__pyclasspath__', 'c:\
> \program files\\jython\\lib\\site-packages', '.']
> CLASSPATH: C:\Program Files\Jython\jython.jar;.
>
> Can you help me,, because I don't understand why I have this error.

You need to put the SwingLibrary jar-file into your CLASSPATH before
starting Robot Framework execution.


hth,
__janne

lauretamisier

unread,
Jun 25, 2009, 8:36:30 AM6/25/09
to robotframework-users
I have done this : SET CLASSPATH="C:\Program Files\Python\Lib
\SwingLibrary.jar"

But I have always an error :

Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:
\PROGRA~1\FICHIE~1\MERCUR~1\FUNCTI~1\Java\classes;C:
\PROGRA~1\FICHIE~1\MERCUR~1\FU
NCTI~1\Java\classes\jasmine.jar
[ ERROR ] Error in file 'c:\documents and settings\laure.tamisier
\bureau\swing-library-example(2)\swing-library-example\example.html'
in tab
le 'Setting' in element on row 3: Importing test library
'SwingLibrary' failed: ImportError: No module named SwingLibrary
PYTHONPATH: ['c:\\program files\\python\\lib\\site-packages', 'c:\
\program files\\python\\lib\\site-packages\\robot\\libraries', 'c:\
\progra
m files\\jython\\lib', '__classpath__', '__pyclasspath__', 'c:\
\program files\\jython\\lib\\site-packages', '.']
CLASSPATH: C:\Program Files\Jython\jython.jar;.
Traceback (most recent call last):
File "c:\program files\python\lib\site-packages\robot\utils
\importing.py", line 89, in _import
imported = __import__(modname, {}, {}, fromlist)
==============================================================================




On 25 juin, 10:58, Janne Härkönen <janne.t.harko...@gmail.com> wrote:

lauretamisier

unread,
Jun 25, 2009, 9:45:18 AM6/25/09
to robotframework-users
Well,
I haven't pass to run the example, but i have study the user guide and
how to create test for swing application. And It's seems that allswing
elements must have a name and the man who create test must know this
name. This point create a dependance between Test and Code ... so the
man who test must know the code and for me it's not a good choice. So
I think I will keep QTP for my fonctionnal tests.

Thanks a lot

Laure
Reply all
Reply to author
Forward
0 new messages