Need help on setting robot framework android project in bit bar
I want to integrate my Android project written in robot framework on Bitbar. I found one supporting article https://bitbar.com/blog/how-to-get-started-with-robot-framework-with-example/ but I am finding it difficult to configure the run-test.sh file. Could anyone please elaborate in detail regarding the setup for the same like where should be the file placed in the project before zipping it. It would be great of I get any example script with updated commands.
Solved! Go to Solution.
I am getting this error run-tests.sh not in root. PFA Screenshot
Glad to hear that you are trying out Robot Framework, a really nice way to execute tests!
I can see that you already got it working, but hopefully this clear thing up!
The role of the run-tests.sh shell script can be hard to understand as it is a file specificly to the Bitbar Cloud and Cloud side execution.
Your zip package was missing this run-tests.sh file (also needs to be named just run-tests.sh istead of run-tests-ios / -android.) and therefore did not execute, this needs to be modified to start your test run in the same way you would start it locally. Essentially automating your start command for your test. This file also needs to be in the root of the zip, not inside a folder.
I would recommend checking how our samples have the run-tests.sh configured.
Cloud side (link), which is used when you want to scale up your testing and start running fast parallel runs. Here you offload all the execution to the cloud, by uploading the test suite with all its components in a zip file. As well as the application. This is then executed in the cloud against as many devices as you would wish at the same time. This requires you to create a zip, with one additional file (run-test.sh) for our cloud to understand how to start the test run. As tests can be started in many different ways.Otherwise the tests / project are the same as locally just zipped in a neat package.
The Bitbar documentation contains a wealth of information about the test execution.
Here is a link to our RF sample, feel free to even use this as a base for your test.
If you have any more specific questions, please reach out!