Skip to content

This is a working Scala remote library based on a 2016 Robot Framework tutorial published by Thomas Jaspers.

License

Notifications You must be signed in to change notification settings

jg8481/robotframework-scala-remote-library

Repository files navigation

Robot Framework Scala Remote Library

This is a working Scala remote library based on a 2016 Robot Framework tutorial published by Thomas Jaspers.

Why does this exist?

  • I want to learn Scala. It does a lot of neat stuff.
  • I wanted to learn how the Robot Framework Remote Interface works.
  • I was inspired by the simplicity of the example Thomas Jaspers made.
  • Instead of hiding this Scala remote library on my local machine, I prefer to share it.

Getting Started (Mac OSX or Linux users)

  1. Install cURL (must be installed in /usr/bin/curl), Java 8, Maven, and Scala on your machine. The rest of these steps assumes that you also have Robot Framework installed locally on your machine. If not please go here...
  1. Clone this repo, go into robotframework-scala-remote-library, then create the server jar by running the following Bash script.
bash ./build-remote-server-and-gatling-jars.sh

#After updating the server code it's a good practice to run `mvn clean`, then run the Bash script again.
  1. Go into target then run one of the following commands to start the server.
java -jar scala-remote-library-server-1.0.jar

#or...

scala scala-remote-library-server-1.0.jar
  1. Go into tests then run the following.
robot ./ScalaKeywordsTest.robot

If you want to run the Scala Native examples, please use the Docker container.

Getting Started (Windows users)

Windows users should use this Docker container.

Ongoing Experiments

Over time, I plan on doing a lot of experiments and improvements with this library. In general, this Scala remote library works fine by itself. The following are extra examples and capabilities that I think would be very helpful for any tester who is interested in trying out different Scala features and combining it with other tools (such as Docker).

  • Docker and docker-compose capability
    • Progress:
      • (February 10, 2019 - Ready To Use) Created a Docker container and docker-compose file that will build a simple Scala Native application and run the Robot Framework Scala Remote Library to test the native executable.
  • sbt capability (Please use Maven. For more details go to --> #1)
  • Experiments with Scala Native
    • Progress:
      • (February 10, 2019 - Ready To Use) Created a working example of a Scala Native application that will take text from the command line and pipe it into a text file.
      • (February 12, 2019 - Ready To Use) Created a working Scala Native custom C library that combines Scala and C to test gradually increasing memory allocation, memory utilization, and cpu utilization. More improvements will be coming soon.
  • Experiments with Ammonite
    • Progress:
      • (February 7, 2019 - Ready To Use) Created a working Ammonite Library. Improvements and experiments will be ongoing. One of the interesting advantages of the Ammonite Library is that it does not require Maven to compile or run. Changes to the Ammonite Library can be done while the Scala keyword server is running. In general Ammonite has many capabilities. For example it has the scalaj-http library already built-in. Please check out the following for more information --> http://ammonite.io
  • Experiments with ScalaCheck
    • Progress:
      • (February 7, 2019 - Ready To Use) Created a working ScalaCheck keyword driven by the Ammonite Library.
  • Experiments with Gatling.io
    • Progress:
      • (January 27, 2020 - Ready To Use) Created working Gatling.io keywords that can run inside a Docker container and on a local Mac OSX or Linux machine. Please check out the following for more information --> https://gatling.io
  • Experiments with Javascript interop

Big thank you to the following people and groups.

  • Pekka Klarck
  • Thomas Jaspers
  • Li Haoyi
  • Tatu Kairi
  • The entire Robot Framework community and its contributors

About

This is a working Scala remote library based on a 2016 Robot Framework tutorial published by Thomas Jaspers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published