Comments on: Getting Started With Robot Framework in Java https://testguild.com/getting-started-robot-framework-java/ Tue, 02 Apr 2024 19:10:21 +0000 hourly 1 By: Paulo https://testguild.com/getting-started-robot-framework-java/#comment-356641 Mon, 10 Aug 2020 08:21:51 +0000 https://testguild.com/?p=3050#comment-356641 I only receive the msg that tools.jar was not found when I tried to run the goal. How can I fix it?

]]>
By: Pramod Kumar https://testguild.com/getting-started-robot-framework-java/#comment-356511 Sun, 21 Jun 2020 17:01:35 +0000 https://testguild.com/?p=3050#comment-356511 Hi All,
Thanks Joe for this great article.
In case anyone needs the pom.xml at one place:

4.0.0

RFTEST
RFTEST2
0.0.1-SNAPSHOT
jar

RFTEST2
http://maven.apache.org

UTF-8

org.robotframework
robotframework-maven-plugin
1.7.1

run

com.github.hi-fi
robotframework-seleniumlibrary
3.141.59.26535
test

org.python
jython-slim
2.7.2

junit
junit
3.8.1
test

Note:
I was facing an error like below and found a workaround for the same:

Failed to execute goal org.robotframework:robotframework-maven-plugin:1.4.6:run (default-cli) on project JavaRobot: Execution default-cli of goal org.robotframework:robotframework-maven-plugin:1.4.6:run failed: Plugin org.robotframework:robotframework-maven-plugin:1.4.6 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:6 at specified path C:\Program Files\Java\jre1.8.0_101/../lib/tools.jar -> [Help 1]

Workaround 1(which worked for me):
Goto your Eclipse folder >>Eclipse configuration settings file and add the following before vmargs:

-vm
C:\Program Files\Java\jdk1.8.0_66\bin\javaw.exe

Workaround 2(I found on the internet):
Add an exclusion tag to your selenium library dependency as below:

com.github.markusbernhardt
robotframework-selenium2library-java
1.4.0.7
test

tools
com.sun

]]>
By: kishore https://testguild.com/getting-started-robot-framework-java/#comment-343965 Fri, 28 Dec 2018 08:53:48 +0000 https://testguild.com/?p=3050#comment-343965 Getting Error –
[ ERROR ] Error in file ‘D:\RobotFramework\Workplace\javarobot\src\test\robotframework\acceptance\Test_Case_1.txt’: Importing test library ‘Selenium2Library’ failed: ImportError: No module named Selenium2Library
Traceback (most recent call last):
None
PYTHONPATH:
C:\maven\repo\org\robotframework\robotframework\3.0.2\Lib
Acceptance.Test Case 1 :: A resource file containing the application specif…

]]>
By: vasu https://testguild.com/getting-started-robot-framework-java/#comment-298686 Tue, 12 Sep 2017 11:56:31 +0000 https://testguild.com/?p=3050#comment-298686 how to take variable file in our testcase

]]>
By: Ranjan https://testguild.com/getting-started-robot-framework-java/#comment-283360 Fri, 02 Jun 2017 14:04:17 +0000 https://testguild.com/?p=3050#comment-283360 Hi Joe,

I am getting the below error on running.

Failed to execute goal org.robotframework:robotframework-maven-plugin:1.4.6:run (default-cli) on project AntsRobot: Execution default-cli of goal org.robotframework:robotframework-maven-plugin:1.4.6:run failed: Plugin org.robotframework:robotframework-maven-plugin:1.4.6 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:6 at specified path C:\Users\AB76137\Desktop\eclipse\jre/../lib/tools.jar -> [Help 1]

Please help

]]>
By: rakesh https://testguild.com/getting-started-robot-framework-java/#comment-278695 Tue, 18 Apr 2017 04:36:26 +0000 https://testguild.com/?p=3050#comment-278695 Thank you for sharing nice article.
I followed the steps, but I got prefix error
[INFO] ————————————————————————
[ERROR] No plugin found for prefix ‘robotframework’ in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\mishra.rakesh\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
can you please help me to resolve this

]]>
By: Nitish Kumar https://testguild.com/getting-started-robot-framework-java/#comment-277779 Mon, 10 Apr 2017 11:54:15 +0000 https://testguild.com/?p=3050#comment-277779 Thanks for the article.

When I am running the same test, I am getting below exception:-

As I need to run this using Java then why this is throwing exception regarding python.

Exception in thread “Jython-Netty-Client-1” java.lang.NoClassDefFoundError: org/python/netty/util/concurrent/DefaultFutureListeners
at org.python.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:577)
at org.python.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)
at org.python.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:155)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.python.netty.util.concurrent.DefaultFutureListeners
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
… 4 more
Exception in thread “Jython-Netty-Client-8” java.lang.NoClassDefFoundError: org/python/netty/util/concurrent/DefaultFutureListeners
at org.python.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:577)
at org.python.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:397)
at org.python.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:155)
at java.lang.Thread.run(Thread.java:745)

]]>
By: Kahn Nguyen https://testguild.com/getting-started-robot-framework-java/#comment-269484 Mon, 20 Feb 2017 04:26:09 +0000 https://testguild.com/?p=3050#comment-269484 I got an issue like as :

org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/Applications/Firefox.app/Contents/MacOS/firefox-bin) on port 7055; process output follows:
Locale”:{“name”:”Default”,”description”:”The default theme.”,”creator”:”Mozilla”,”homepageURL”:null,”contributors”:[“Mozilla Contributors”]},”visible”:true,”active”:true,”userDisabled”:false,”appDisabled”:false,”descriptor”:”/Applications/Firefox.app/Contents/Resources/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi”,”installDate”:1486024522000,”updateDate”:1486024522000,”applyBackgroundUpdates”:1,”skinnable”:true,”size”:6352,”sourceURI”:null,”releaseNotesURI”:null,”softDisabled”:false,”foreignInstall”:false,”hasBinaryComponents”:false,”strictCompatibility”:true,”locales”:[],”targetApplications”:[{“id”:”{ec8030f7-c20a-464f-9b0e-13a3a9e97384}”,”minVersion”:”51.0.1″,”maxVersion”:”51.0.1″}],”targetPlatforms”:[],”seen”:true,”dependencies”:[],”hasEmbeddedWebExtension”:false}

–> seem like the robot couldn’t input the URL. Could you help me to solve it ? Thanks so muck

]]>
By: Joe Colantonio https://testguild.com/getting-started-robot-framework-java/#comment-241485 Mon, 26 Sep 2016 23:38:08 +0000 https://testguild.com/?p=3050#comment-241485 In reply to Sagar.

This looks like a maven issue. Sometime the .m2 folder gets corrupted. What happens if you delete the folder and rebuild your maven project?

]]>
By: Sagar https://testguild.com/getting-started-robot-framework-java/#comment-240905 Sat, 24 Sep 2016 10:22:11 +0000 https://testguild.com/?p=3050#comment-240905 Hi Joe,
Thanks for a such nice article. Very helpful indeed.
I am new to Robot Framework. I followed the steps listed in the article however keep getting following error while running the test.
Is there any pointer you can provide for resolution?

—————————————————————————————
Failed to execute goal org.robotframework:robotframework-maven-plugin:1.4.6:run (default-cli) on project JavaRobot: Execution default-cli of goal org.robotframework:robotframework-maven-plugin:1.4.6:run failed: Plugin org.robotframework:robotframework-maven-plugin:1.4.6 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:6 at specified path C:\Program Files\Java\jre1.8.0_101/../lib/tools.jar -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

]]>