cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on setting robot framework android project in bit bar

SOLVED
New Contributor

Need help on setting robot framework android project in bit bar

Hi Community,

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.

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Staff

Re: Need help on setting robot framework android project in bit bar

Hey Arjunrv0,

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.

Sample zip
      - run-test.sh
      - run-android.py
      - libs

      - resources

      - tests-android
      - etc.

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.
https://docs.bitbar.com/testing/appium/


Here is a link to our RF sample, feel free to even use this as a base for your test.
https://github.com/bitbar/test-samples/tree/master/samples/testing-frameworks/robot-framework

 

If you have any more specific questions, please reach out!
Kind Regards,
Wille

View solution in original post

2 REPLIES 2
New Contributor

Re: Need help on setting robot framework android project in bit bar

I am getting this error run-tests.sh not in root. PFA Screenshot

Screenshot 2020-03-19 at 1.49.29 PM.png

Staff

Re: Need help on setting robot framework android project in bit bar

Hey Arjunrv0,

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.

Sample zip
      - run-test.sh
      - run-android.py
      - libs

      - resources

      - tests-android
      - etc.

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.
https://docs.bitbar.com/testing/appium/


Here is a link to our RF sample, feel free to even use this as a base for your test.
https://github.com/bitbar/test-samples/tree/master/samples/testing-frameworks/robot-framework

 

If you have any more specific questions, please reach out!
Kind Regards,
Wille

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Follow the Poll
Create your own user feedback survey
Watch Bitbar Videos
Subscribe to the Youtube Bitbar channel to always get the latest and exclusive videos