-
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
Support for robotframework-java - Robot Framework Maven Plugins #43
Comments
Do You mean with Jython as interpreter? Can You elaborate it a little bit? |
No. I use robotframework (https://mvnrepository.com/artifact/org.robotframework/robotframework) for Java to execute tests natively on my Maven project. |
Hi, I am not familiar with this Whole procedure is described in comment: #20 (comment) . So short answer for Your question is |
@nottyo could You provide any feedback? Thanks in advance. |
@adam-wypych I haven't tried your solution yet. You can see an example project for robotframework-java with jspringbot below Thank you. |
@nottyo: I've been checked possibilities to include support for Robot Framework Maven Plugin and base on it other RF base Maven plugins. After my analysis I think for now it not exist any automatically working solution, which will be coherent working API to implement as Robot Framework interpreter provider for RED. To fully understand the problem, the most important issue is to know how Maven and standalone Robot Framework (RF) works. In RF standalone, we have named command In Maven base plugins, dependency can be mostly resolved by Maven, if particular compiled package has Maven nature. But disadvantage of this solution, will be that is required to know, which plugin is used to run RF (if any) and to know what parameter is corresponding to what parameter inside Jython with RF package (because they are not mapped one-by-one). I've been checked even the optimistic scenario that somehow we will create "artificial" interpreter Maven, with possibility to define what is what in the plugin (i.e.
And even if it will be run as Robot Framework library it will fails because some extra spring files are required:
Therefore I think is not economical to add some extra handling to Maven base plugins, of course You can use RED as editor for RF files (as was said in attached issue #20 (comment)), but libdocs need to be provided as XML files. Here are maven files which I used in my tries:
|
@adam-wypych Thank you for your comment.
You may override the value of RF parameter from mvn command. Setting the value of parameter as a variable
To override the default value just passing your value from command line Anyway, I'll try to generate the libdoc and import it to RED plugin. Here is my example. https://github.com/nottyo/jspringbot-webtesting.git |
@nottyo I understand Your concept with parameters, but it as You probably know it is not meet Your criteria regarding automatically work, still user need to manually modify Maven configuration. Anyway I think better will be to only introduce So I think better, will be just extract what is required for proper work of normal standalone Python RF (I think is classpath) and provide it to jython.exe wrapper for (
Dependency pom: https://gist.github.com/adam-wypych/66bf45e3a1ebd7e51835198e921de0eb#file-dependency_pom-xml As I see run: Of course this solution will be not particular join Maven and RED, but its provide possibility to generate libdocs, get variables and run RF test base on Jython interpreter with special inclusion of Maven declared classpath and will gives some automatical part related to import Maven project and maven directories list |
example provided, of there are any more questions please reopen issue. |
Can you please tell me what command did you use to execute your test ?? |
Can I use this plugin with robotframework java?
The text was updated successfully, but these errors were encountered: