Robot Framework and Appium Mobile Automation Tests Integration With BrowserStack

 

Mobile Automation Tests Integration with BrowserStack


In this blogpost, we will discuss integration of mobile automation test with BrowserStack. 

The Mobile Automation test is written using Robot Framework and Appium on Pycharm IDE.

First of all, Sign up to BrowserStack Sign Up

After, Sign up, Login to BrowserStack  Sign In with your credentials.



You will see the home page


Click on “App Automate” as shown above for BrowserStack Dashboard. 


You will see the screen below and here Click on “UPLOAD APP



You will be navigated to the screen below



Click on “Browse” button above to upload your “.apk” file for Android (OR) ".ipa" file for iOS from your computer.


I have uploaded my "TED.apk" file for this blogpost.



Click on "Open" and your ".apk" file will be uploaded.


You will be navigated to the screen below.



Make sure, you copy the link from above which looks something like below

"bs://8ec18a0a1f134e7edaebfb7755de17bb082471bd". 

This will be your “app” in your desired capabilities. 

 

Make sure, you also copy the BrowserStack username and access key from here below.




Now, Go to the link Capabilities and select your device. 




Open your Pycharm IDE and make the necessary changes.


Your "TestSetup.robot" looks something like this




Your "TestSetupHelper.robot" looks something like this




The Testcase "Android_Login_Test.robot" looks something like this 




Now run the test!!!



Go to your BrowserStack Dashboard! Ensure that, you are under the correct tab "App Automate" to see the report on the dashboard.


Click on the first one from above for instance!




Click on "Download Video" button as shown below. Incase, If you want to see the video. Save locally on your computer.



Also check your Pycharm IDE console for the status of the test case



Report and Logs will be saved in your "Reports" folder.


Test Output on BrowserStack: 


Please see GitHub Repo for reference : GitHub


Happy Automation Testing Guys :) !

Comments

Popular posts from this blog

Mobile Automation Testing with Robot Framework and Appium for Android

Mobile Automation Testing with Robot Framework and Appium for iOS