Forum Discussion

arjunrv0's avatar
arjunrv0
New Contributor
5 years ago
Solved

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.

  • WilleK's avatar
    WilleK
    4 years ago

    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

2 Replies

  • arjunrv0's avatar
    arjunrv0
    New Contributor

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

    • WilleK's avatar
      WilleK
      Staff

      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