-
Notifications
You must be signed in to change notification settings - Fork 112
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
How to integrate RED with Robotframework Maven Plugin #20
Comments
Also, i can't execute because no runtime environment is present. Is there any way to do it with maven plugin? |
Hi, It seems that you're seeing this error because RED is not able to locate python installation with RF installation. It is needed for various reasons. Please go to eclipse preferences and then in Robot Framework / Installed frameworks add your local directory where python is installed (or jython) |
Hi @michalanglart Please let me know how i can use RED for it now |
Hello, I didn't understood you correctly in previous comments. I gave it a thought once again, but I don't have good news. It is currently not possible to make it work without actually having python interpreter installed (I will always refer to language itself when writing "python" and CPython when referring to its standard interpreter) and robot framework installed in it. RED needs that because it starts background server using this interpreter and communicates with this server all the time in order to for example generate libraries specifications. This interpreter can be one of following: CPython, Jython, IronPython or PyPy. On the other hand this maven plugin downloads a single jar from maven repository which contains both the jython code and RF code, so you don't need to install anything (beside Java to run jython from this jar). In order to make it possible RED should provide a way to point which jar file contains jython interpreter (it is located in your local maven repository) , but this is not possible at the moment. We we'll discuss it with team and investigate issue further. Cheers! |
@mhshaikh: Can I ask you simple question: What kind of IDE do You use, when you write RF tests? As far as I know RIDE do not support Maven Plugin itself and I do not see this kind of support in any other RF IDE tool. Anyway for me introduce Maven Plugin support for RED, will be equal to answer questions:
As I see main reason for introduce Maven RF Plugin, was to introduce currently exists test cases to Maven build phase, since Authors wrote: it's a non-invasive way of introducing acceptance test driven development to your existing projects quickly. The issue with pure robotframework*.jar download by Maven is that is not start as Jython or Python interpreter, but as RobotFramework tool with options to |
Hi @adam-wypych : I am using eclipse as a IDE for RF tests. Yes, RIDE does not support Maven plugin.
I really appreciate your efforts to understand my issue. I also agree that we can have some wrapper between Maven jar and RED plugin. But to be frank i don't know how to do it. I will look into link provided by you and help from your side will be appreciated:). |
Hi, @mhshaikh Are You using windows or linux? |
Windows |
Ok I will try to prepare simple FAQ with description how to create such wrapper. |
Thank you so much Adam |
The created
The last test before integration with RED - is to test if executable file was compiled ok and will work, for this I executed in command line After this You can just integrate
I hope it helps :) |
Hi, Any feedback? |
I will try and let you know |
Thank you so much @adam-wypych |
@mhshaikh: Thanks for feedback :) If is ok for You, I will close this issue and in case of any other problem You can create new ticket. |
yeah sure. |
I did have some difficulties using this approach and so I created another solution. Please have a look at https://github.com/gpaulissen/jython/blob/master/BLOG.md |
Hi Team,
It’s really nice plug-in for robot framework. I have installed it on eclipse mars and while i tried to open my robot test suite it’s giving below error
(For some issues i am not able to upload image of error, please find text below)
Title: Runtime environment error
Content: unable to provide valid RED runtime environment. Check Python/Robot installation and set in preferences.
I am working on java implementation of robot with robot maven plug-in. Can anyone please help me to resolve this issue?
The text was updated successfully, but these errors were encountered: