Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In order to perform test case execution using Appium, you need to connect the mobile devices with to the computer. Once you connect devices with computer you can easily locate objects (also called spying) in order to create new objects in Qualitia. 

...

You need to enable the Developer Options in Option and USB Debugging mode in the Android device and enable the USB debugging mode.

Expand
titleTo enable Developer Option:
  1. Go to Settings.
  2. Scroll down to the bottom and tap the About Phone option.
  3. Scroll down to the bottom on the About Phone screen.
    You will see option Build Number.
  4. Tap seven times on Build Number option. After three taps, it will display a message such as, "You are now 2 steps away from being a developer".
    After tapping seven times, it will display a message that "You are now a developer".
  5. Go back to Settings and scroll down to the bottom.
    You will see option Developer Options above About Phone.
  6. Connect your device with PC using USB cable.
  7. Go to Settings > Developer options options.
  8. Select Enable the USB Debugging check box option.
    A pop-up is displayed asking confirmation about switching on USB Debugging.
  9. If you are using device manufactured by Xiaomi, you must enable the USB Debugging (Security settings) option.
  10. Click OK.

Note

When you connect device to the computer, system asks for permission to allow USB debugging. Select the check box, Always allow from this computer and then click OkOK.


Configuring iOS Device for Automation

In order to get started with application testing, you need to first configure your devices. Changing some settings helps you configure your devices for application testing.

Expand
titleGeneral Settings

You need to enable the Web Inspector and JavaScript options in the iOS device.

To enable Web Inspector and JavaScript options:

  1. Open the Settings app.
  2. Tap Safari.
  3. Scroll down and select Advanced.
  4. Switch on Web Inspector and JavaScript options.
  5. Connect your device to Mac using USB cable.
  6. Launch the Safari browser on your Mac.
  7. On the Develop menu, click the logged in Username.

A list of open web applications is displayed. You can select from applications. 

Your device is now successfully connected to Mac.

Note

You need to switch on these options only on the iOS physical devices. These options need not be enabled in Simulators.


...

Expand
titleConfiguring iOS Device for Native Application Testing

In order to use the physical iOS device/Simulator for native mobile application testing, enable the UI Automation option from the Settings section

To enable UI Automation option:

  1. Connect your device to Mac.
  2. On your iOS device, launch Settings.
  3. Tap the Developer option.
  4. Ensure that the Enable UI Automation option is turned on.

...

Expand
titleConfiguring iOS Simulators for Native Application Testing

In order to execute native mobile application test cases on iOS simulator, you need to disable Hardware Keyboard, Auto-Correction, and Auto-Capitalization options as follows. 

To disable Hardware Keyboard:

  1. On the Simulator menu in Mac, click Hardware > Keyboard.
  2. Deselect the Connect Hardware Keyboard option.

To disable Auto-Correction and Auto-Capitalization:

  1. Inside the Simulator screen, click Settings > General > Keyboard.
  2. Deselect the Auto-Correction and Auto-Capitalization options.