Testsigma Agent's Failure to Detect Local Devices for Mobile Test Recorder


This guide offers solutions to the issue of Testsigma Agent not detecting local devices for the mobile test recorder on Android and iOS devices. Below, it provides potential causes and steps to resolve them.


Common causes

Testsigma agent may be unable to detect your local mobile device for the test recorder for the following reasons:

  • Testsigma Agent is not up-to-date: Ensure you keep Testsigma Agent up-to-date. The Agent's automatic update may fail due to network issues or incorrect configurations. Refer to the guide on updating Testsigma Agent manually to update Agent manually.
  • Damaged or faulty USB ports or cables: Try connecting to a different USB port or using an alternative cable if your current one is damaged.
  • Weak Wi-Fi Signal: If you have connected your device wirelessly, ensure a stable Wi-Fi connection.


Android Device

Common Causes for Android Devices

  • Disabled Developer Options and USB Debugging: Follow the steps to set up a local Android device to enable Developer Options and USB debugging.
  • Android Debug Bridge (ADB) Recognition Failure: Verify the ADB recognition by following the steps below if ADB does not recognize the device connected to the system .
  • Desired Capabilities Not Modified: Use the guide on desired capabilities to modify desired capabilities according to your device or application.
  • Driver installation error: If you encounter a Failed to install drivers message, follow these steps: driver-install-error
    1. Allow time for the driver installation to finish.
    2. Check device memory for sufficient space.
    3. Uninstall AppiumSettings and UI Automator Server apps, then restart the agent.uninstall_appiumapp

ADB does not Recognize the Device Connected to the System

If Android Debug Bridge (ADB) fails to recognize your connected Android device, you should follow these steps to troubleshoot the problem.

Verification Steps:

  1. Navigate to the folder containing ADB.
  2. Open the command prompt and type adb devices.
  3. If you connect, the command prompt will display a list of attached devices, as shown in the example below: adb devices command execution Here, AVY9KA90322022030 is the device ID.

If Your Device Is Not Displayed:

If the response does not display your device, it indicates a hardware or communication problem between Android and your PC. Follow the steps below to troubleshoot the issue.

NOTE:

Ensure you have installed the Android SDK on your system and set its environment path before running the ADB command.

Troubleshooting Android Device

  1. Restart Your Android Device: Begin by restarting your Android device.
  2. Turn Off and On USB Debugging: On your device, turn off USB debugging and then re-enable it.
  3. Change USB Port: Plug the USB cable into a different USB port on your computer.
  4. Unplug and Replug USB Cable: Disconnect and reconnect the USB cable from your Android device, ensuring it fits securely into the device's USB port. Then, attempt syncing again.
  5. Replace USB Cable: Try using a different USB cable that fits more securely into your Android device's USB port.

iOS Device

Refer to the following information to troubleshoot and resolve common issues if you encounter problems with your iOS device.

Common Causes for iOS Devices

  • Device locked: You must unlock iOS devices to enable Testsigma Agent to mount the developer image and run apps. A notification displaying 'Unlock device' is shown if the device is locked. If the device is locked, a notification reads 'Unlock device'.
  • Computer not trusted: You must trust the connected iOS device to ensure that Testsigma Agent functions correctly. To establish trust, select your device in Finder and click Trust'.
  • Developer Image Not Mounted: Testsigma Agent requires mounting the developer disk image on iOS devices to run apps. You should ensure that the provisioning profile is added in Settings > iOS Settings. A notification indicating a configuration issue says, 'Ensure profile exists in iOS Settings'.

Troubleshooting iOS Device

Troubleshoot and resolve issues with iOS devices by following these steps.

  1. Turn Off iOS Device: Begin by turning off your iOS device.
  2. Turn Off Testsigma Agent: Turn off Testsigma Agent.
  3. Terminate Applications or Processes: Open Task Manager on your computer and terminate the following applications or processes NodeJS, tidevice.
  4. Delete Testsigma Agent Logs: Locate and delete Testsigma Agent logs. For more information, refer to fetching agent test logs.
  5. Restart Testsigma Agent: Restart the Testsigma agent.
  6. Restart iOS Device and Connect: Reboot your iOS device and connect it to your computer.
  7. Change USB Port: If the iOS device does not appear on the list of connected devices, connect the device with a different USB port on your computer.
NOTE:

If the troubleshooting steps above do not resolve the problem, you can contact Testsigma Support on Discord or support@testsigma.com. You can also use the Instant Chat Options for prompt assistance.