TestingBot provides a grid of browsers and mobile devices to run Automated tests. This example demonstrates how to use C# to run an Automated Test on a Mobile Device, located in the TestingBot Cloud.
-
Setup
- Clone this repository
-
TestingBot Credentials
- Add your TestingBot Key and Secret as environmental variables. You can find these in the TestingBot Dashboard.
$ export TB_KEY=<your TestingBot Key> $ export TB_SECRET=<your TestingBot Secret> -
Specify
TB_APP_IDLet us know which app you want to test by specifying theTB_APP_IDenvironment variable. This should point to a public URL and contain a.apk,.ipaor.zipfile. For more information, please see our Mobile App Documentation.If you do not have an
.ipaor.apkfile and just want to test, you can use https://testingbot.com/appium/sample.apk or https://testingbot.com/appium/sample.ipaTo test with ipa files, you'll need to edit the
DesiredCapabilitiesto includerealDevice: true
- To run a test, please use Visual Studio or Mono.
You will see the test result in the TestingBot Dashboard