- Getting Started with Selenium for Automated Website Testing
- Getting Started with Appium for Mobile Native Application Testing
- Selenium Bootcamp by Dave Haeffner
- Appium Bootcamp by Dave Haeffner and Matthew Edwards
You can test your mobile applications on a variety of real Android and iOS mobile devices.
- Log in to Sauce Labs and select Live Tests from the options in the left-hand navigation.
- Select Mobile App.
- At the top of the page you will see the name of the last app you tested. Click Change to select a different app, or Manage Apps if you want to create a new real device project.
- Select the data center you want to use, in the US or EU, for Location.
Testing Websites or Applications on localhost or an Internal Network
Sometimes apps are designed to run on internal networks, or on networks that can be accessed only from specific IP addresses. In this case, you can add an exception for TestObject to your network's whitelist for the IP range
184.108.40.206/21 and 220.127.116.11/21for the US data center.
- If you have access to a private cloud of devices, select it for the Cloud option.
Use the filter options or search for the real device that you want to test with.
Recent and Saved Configurations
If you have run previous mobile native application tests, you can select the configuration under the Recent tab. You can also create a configuration and save it for later use by clicking the star icon next to Save this Configuration. You can then access the configuration under the Saved tab.
- If you use Sauce Connect Proxy to connect to the application you're testing, select the tunnel to use.
Click Start Session.
You'll see a loading screen, and then the real device you selected will launch with the selected application.
Running Tests in Parallel
You can run multiple manual test sessions at the same time, with the number of tests limited by the concurrency allowance associated with your account. If you want to start additional sessions, click the + icon next to the tab containing the URL of your current test session. Follow the steps to set up the session, and then you can switch back and forth between the sessions by clicking on the URL tabs.
Using Multi-Touch in Live Real Device Tests
You can perform multi-touch actions, such as pinch and zoom, in live real device tests:
- Hold down the ALT key (Windows) or the Option key (OS X).
- Hold down the left mouse key and move it in the direction you want to swipe.
If you are testing using a Windows machine, note that if you hold down ALT and click TAB, it will change the focus from the browser window to the File Explorer, and you will not be able to move the cursor in the live testing window. Press ALT again to change the focus back to the browser, and you will be able to move the live testing cursor.