Setting up Robot framework using maven project.

132 views
Skip to first unread message

K

unread,
Oct 5, 2023, 3:46:13 PM10/5/23
to robotframework-users
Hi , We are planning to migrate to robot framework,but we are not sure about how to set up the robot in maven project. Can someone help us with this.

We have few questions also:
1. Our use case includes api tests only so what would be the best approach setting up the projects?
2. We see a lot of implementations of robot using python, Are we going to support java because we want our framework to be stable for long time?

Please suggest some best practices and process to set up robot framework using maven project.

Thanks

Tatu Aalto

unread,
Oct 6, 2023, 2:17:09 AM10/6/23
to abhishe...@gmail.com, robotframework-users
Hi

1) Never done API test with RF, so perhaps some-one else can answer.
2) Well, Python (32 years) has actually been around longer than Java (28 years), but perhaps you means something else with stability for long time. RF core is made with Python and to run it, you need Python to run Robot Framework. You can use Jython or IronPython to run Robot Framework then 4.1.3 is the latest version which supports it: https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#python-installation

But you can use Java, or any programming language to implement libraries or run library keyword in remote machine, by using remote library interface: https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#remote-library-interface

-Tatu

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/f4740a55-baec-42fa-b7ea-4b6639fc65aan%40googlegroups.com.

Aliasger Kiranawala

unread,
Oct 6, 2023, 2:24:54 AM10/6/23
to robotframework-users
Agree with Tatu on Python vs Java,

There are materials available over the net on how to use RF for API tests 
For Ex: https://fmgprado.medium.com/api-testing-with-robot-framework-part-1-997a3cb5bffe
Best practices are common and depends on the usage of the organisation.

K

unread,
Oct 6, 2023, 1:18:15 PM10/6/23
to alia...@locus.sh, robotframework-users
I agree that python has been around for quite a while, But I wasn't questioning the stability of language, Actually what I meant was Since we are exploring the option to implement the robot framework using java, so we are trying to make sure that the framework we develop is stable enough and we are getting updates regularly. No one wants to implement the framework and then migrate to other frameworks in some time due to lack of updates, support or some packages getting deprecated. I hope now I am able to phrase my words in a better way.

Thanks

शुक्र, 6 अक्तू॰ 2023 को 11:54 am बजे को 'Aliasger Kiranawala' via robotframework-users <robotframe...@googlegroups.com> ने लिखा:

Miikka Solmela

unread,
Oct 9, 2023, 3:01:16 AM10/9/23
to robotframework-users
Hi!

I can assure you that Robot Framework is a stable and long lived project.

We as Robot Framework Foundation maintain and support the tool, ecosystem and the community and have been doing so since 2015.

We are now and always open source and our mission is to keep Robot Framework relevant and well maintained.

More about the foundation: https://robotframework.org/foundation/

Kind regards,

Tatu Aalto

unread,
Oct 9, 2023, 3:09:00 AM10/9/23
to robotframework-users
Hi

Support for Java has two option. 1) Jython with RF 4.1 or OLDER 2) Use Remote library API. 
1) Jython
Jython support is not recommended, because it needs RF version 4.1 or older. Last 4.1 release happened two years ago and RF 4.1 is not anymore supported or maintained. Also libraries have moved on and latest libraries may not support anymore that old version of RF. So going this road is not recommended in any way, more details can be found from: https://github.com/robotframework/robotframework/blob/master/doc/releasenotes/rf-5.0.rst#python-2-is-not-supported-anymore 

2) Remote library interface
Java or any programming language can be used with Remote library interface: https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#remote-library-interface It needs more work to setup, because it is not just installing libraries and importing them. But then again, it is not overly complicated either. 

-Tatu

Reply all
Reply to author
Forward
0 new messages