Re: [robotframework-eclipselibrary-user RF and Eclipse Library StartUp Problems

102 views
Skip to first unread message

Laurent Carbonnaux

unread,
Apr 29, 2013, 1:02:34 PM4/29/13
to robotframework-ec...@googlegroups.com
Hello Sacha,

It seams you dind't installed or exported the required plugins in Eclipse : SWTBot and EclipseLibrary Plugin.

Let me know if it works,
Laurent.



2013/4/29 Sascha <sascha.rei...@siemens.com>
Hi,

at the moment me and my team started to build up a Test enviroment with robot framework as we want to test eclipse Application.
So we followed the instructions on the wiki for the eclipseLibrary, though we haven't been successfull yet as we're still pretty new to the topic testautomation.

We think the EclipseLibrary works like it should have. But we guess we got problems with the Eclipse Library plugin for SWTbot.

This is Our Report we got as we tryed to run A TestEclipseLibrary installation:



command: jybot.bat --argumentfile c:\users\z0031dmr\appdata\local\temp\RIDEzkm0ag.d\argfile.txt --listener C:\Python27\lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:50909 D:\Eclipse3.6\eclipse\robot
======================================================================================================================================
Robot                                                                                                                                
======================================================================================================================================
Robot.Run                                                                                                                            
======================================================================================================================================
Robot.Run.A TestEclipseLibrary installation :: Test suite used to check robotframework EclipseLibrary installation.                  
======================================================================================================================================
Test Eclipse installation :: This test checks if all is installed for robotframework                                          | FAIL |
RuntimeException
--------------------------------------------------------------------------------------------------------------------------------------
Robot.Run.A TestEclipseLibrary installation :: Test suite used to check robotframework EclipseLibrary installation.           | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
======================================================================================================================================
Robot.Run                                                                                                                     | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
======================================================================================================================================
Robot                                                                                                                         | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
======================================================================================================================================
Output:  c:\users\z0031dmr\appdata\local\temp\RIDEzkm0ag.d\output.xml
Log:     c:\users\z0031dmr\appdata\local\temp\RIDEzkm0ag.d\log.html
Report:  c:\users\z0031dmr\appdata\local\temp\RIDEzkm0ag.d\report.html

Exception in thread "MainThread" java.lang.SecurityException: Eclipse exit with status=1, see log for detail and check StartEclipse keyword parameters
    at org.lcx.robotframework.eclipse.keyword.launch.EclipseLaunchingKeywords$3.checkExit(EclipseLaunchingKeywords.java:164)
    at java.lang.Runtime.exit(Unknown Source)
    at java.lang.System.exit(Unknown Source)
    at org.python.core.Py.maybeSystemExit(Py.java:277)
    at org.python.core.Py.printException(Py.java:1040)
    at org.python.core.Py.printException(Py.java:1012)
    at org.python.util.jython.run(jython.java:264)
    at org.python.util.jython.main(jython.java:129)


Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "Thread-1"

test finished 04/29/13 16:13:52


And this is Our EclipseLibrary.log:


INFO 2013/04/29 16:13:50,440 [MainThread] (LogKeywords.java:24) - Set EclipseLibrary log level to DEBUG
DEBUG 2013/04/29 16:13:50,448 [MainThread] (EclipseLibrary.java:51) - runKeyword:startEclipse
DEBUG 2013/04/29 16:13:50,448 [MainThread] (EclipseLibrary.java:52) -     args:5
DEBUG 2013/04/29 16:13:50,449 [MainThread] (EclipseLibrary.java:55) -         arg[0]:-install, of class=java.lang.String
DEBUG 2013/04/29 16:13:50,450 [MainThread] (EclipseLibrary.java:55) -         arg[1]:file:/D:/Eclipse3.6/eclipse, of class=java.lang.String
DEBUG 2013/04/29 16:13:50,450 [MainThread] (EclipseLibrary.java:55) -         arg[2]:-data, of class=java.lang.String
DEBUG 2013/04/29 16:13:50,451 [MainThread] (EclipseLibrary.java:55) -         arg[3]:file:/d:/workspace, of class=java.lang.String
DEBUG 2013/04/29 16:13:50,451 [MainThread] (EclipseLibrary.java:55) -         arg[4]:-consolelog -debug, of class=java.lang.String
INFO 2013/04/29 16:13:50,459 [MainThread] (EclipseLaunchingKeywords.java:72) - Eclipse start is requested
ERROR 2013/04/29 16:13:50,791 [Thread-1] (EclipseLaunchingKeywords.java:131) - Eclipse exit with status=13, see log for detail and check StartEclipse keyword parameters
java.lang.SecurityException: Eclipse exit with status=13, see log for detail and check StartEclipse keyword parameters
    at org.lcx.robotframework.eclipse.keyword.launch.EclipseLaunchingKeywords$3.checkExit(EclipseLaunchingKeywords.java:164)
    at java.lang.Runtime.exit(Unknown Source)
    at java.lang.System.exit(Unknown Source)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1391)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.lcx.robotframework.eclipse.keyword.launch.EclipseLaunchingKeywords.internalLaunchEclipse(EclipseLaunchingKeywords.java:128)
    at org.lcx.robotframework.eclipse.keyword.launch.EclipseLaunchingKeywords.access$100(EclipseLaunchingKeywords.java:20)
    at org.lcx.robotframework.eclipse.keyword.launch.EclipseLaunchingKeywords$2.run(EclipseLaunchingKeywords.java:64)
    at java.lang.Thread.run(Unknown Source)





Thanks in advance!

Best Regards
Sascha

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes robotframework-eclipselibrary-users.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse robotframework-eclipsel...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

Laurent Carbonnaux

unread,
Apr 29, 2013, 3:37:43 PM4/29/13
to robotframework-ec...@googlegroups.com, sascha.rei...@siemens.com
Hi again Sacha,

I saw you were launching rf with jybot, did you try eclipsebot.bat after having adapt parameters?
Also , is there any other log file from eclipse that can give mode detailed information on the error?



Laurent.


2013/4/29 Laurent Carbonnaux <laurent.c...@gmail.com>

Laurent Carbonnaux

unread,
Apr 30, 2013, 2:51:22 AM4/30/13
to robotframework-ec...@googlegroups.com, sascha.rei...@siemens.com
Hi Sacha,

The link (http://scrumvision.sourceforge.net/update-site/eclipselibrary) is a eclipse update site, whith which you can upload the plugin into your eclipse confirguration.

Laurent.


2013/4/30 Sascha <sascha.rei...@siemens.com>
Hi Laurent,

Thanks a lot for your Support.

The Link for the Eclipselibrary plugin doesn' work.

http://scrumvision.sourceforge.net/update-site/eclipselibrary

Even when I try to follow this Link with LTE-Smartphone. It gives me a kind of 403 Error.

And I already tried to fix this problem with eclipsebot.bat.

This is my eclipsebot.bat:


@echo off
set ECLIPSE_LIBRARY=D:\Eclipse3.6\eclipse\robot\libs\EclipseLibrary.jar
set ROBOTFRAMEWORK=D:\Eclipse3.6\eclipse\robot\libs\robotframework-2.7.7.jar
java -Xmx512m -XX:MaxPermSize=256M  -Xbootclasspath/a:%ECLIPSE_LIBRARY% -jar  %ROBOTFRAMEWORK% --debugfile jybot.log --loglevel TRACE --outputdir results %*



And this happens, when I start it in the console:  D:\Eclipse3.6\eclipse\robot\run>eclipsebot.bat A_TestEclipseLibrary_installation.html:

D:\Eclipse3.6\eclipse\robot\run>eclipsebot.bat A_TestEclipseLibrary_installation
.html
==============================================================================
A TestEclipseLibrary installation :: Test suite used to check robotframewor...
==============================================================================
Test Eclipse installation :: This test checks if all is installed ... .

Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler i
n thread "Thread-1"
Test Eclipse installation :: This test checks if all is installed ... | FAIL |
RuntimeException
------------------------------------------------------------------------------
A TestEclipseLibrary installation :: Test suite used to check robo... | FAIL |

1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Debug:   D:\Eclipse3.6\eclipse\robot\run\results\jybot.log
Output:  D:\Eclipse3.6\eclipse\robot\run\results\output.xml
Log:     D:\Eclipse3.6\eclipse\robot\run\results\log.html
Report:  D:\Eclipse3.6\eclipse\robot\run\results\report.html

Exception in thread "MainThread" java.lang.SecurityException: Eclipse exit with
status=1, see log for detail and check StartEclipse keyword parameters
        at org.lcx.robotframework.eclipse.keyword.launch.EclipseLaunchingKeyword
s$3.checkExit(EclipseLaunchingKeywords.java:164)
        at java.lang.Runtime.exit(Unknown Source)
        at java.lang.System.exit(Unknown Source)
        at org.robotframework.RobotFramework.main(RobotFramework.java:38)
 

You ask about another eclipseLog-file. I hope this is what your looking for:

!SESSION Mon Apr 29 15:29:51 CEST 2013 -----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2013-04-29 15:29:51.588
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.RuntimeException: Could not find framework
    at org.eclipse.equinox.launcher.Main.getBootPath(Main.java:975)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:554)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.lcx.robotframework.eclipse.keyword.launch.EclipseLaunchingKeywords.internalLaunchEclipse(EclipseLaunchingKeywords.java:128)
    at org.lcx.robotframework.eclipse.keyword.launch.EclipseLaunchingKeywords.access$100(EclipseLaunchingKeywords.java:20)
    at org.lcx.robotframework.eclipse.keyword.launch.EclipseLaunchingKeywords$2.run(EclipseLaunchingKeywords.java:64)
    at java.lang.Thread.run(Unknown Source)


Thanks again!!!


2013/4/29 Laurent Carbonnaux <laurent.c...@gmail.com>


2013/4/29 Sascha <sascha.rei...@siemens.com>

Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse robotframework-eclipselibrary-users+unsubscribe@googlegroups.com.

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

Sascha

unread,
Apr 30, 2013, 3:17:16 AM4/30/13
to robotframework-ec...@googlegroups.com, sascha.rei...@siemens.com
Thanks a lot!!

I used the Install tool from Eclipse under HELP>Install New Software

But now I got an other problem :D

The tool told me:

Cannot complete the install because one or more required items could not be found.
  Software being installed: RobotFramework EclipseLibrary 1.3.0.201112211801 (org.lcx.robotframework.swtbot_feature.feature.group 1.3.0.201112211801)
  Missing requirement: RobotFramework EclipseLibrary 1.3.0.201112211801 (org.lcx.robotframework.swtbot_feature.feature.group 1.3.0.201112211801) requires 'org.eclipse.swtbot.eclipse.core 2.0.0' but it could not be found

Sascha

unread,
Apr 30, 2013, 3:18:44 AM4/30/13
to robotframework-ec...@googlegroups.com, sascha.rei...@siemens.com
Maybe its a problem with the proxy?
Reply all
Reply to author
Forward
0 new messages