This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using Mobile Center for working with Appium Inspector

Appium Desktop (https://github.com/appium/appium-desktop) provides Appium Server and Inspector in Desktop GUIs for Mac, Windows, and Linux.  The post below explains how to use Appium inspector together with the devices hosted by Mobile Center.

  • Launch Appium Desktop app
  • Open New Session from Appium menu
  • Navigate to Custom Server tab
  • Setup the needed parameters (see attachment)
  1. Mobile Center FQDN/IP and Port
  2. Remote path: /wd/hub
  3. Proxy (if used)
  4. Desired capabilities:

Screen Shot 2019-08-31 at 20.04.37.png

 

  • Please be sure to add browserName capability as empty, otherwise Appium will add the default browser name.
  • It is highly recommended to use OATH Client ID and Secret instead of username/password for the user
  • If you set Anonymous Access option for Appium to NO, please provide userName and password capabilities as well. If it is set to YES - no needed, it will work anonymously.Screen Shot 2018-06-07 at 11.08.04.png

     

 

 

  • Done - Appium Inspector is launched with device hosted by Mobile Center.Screen Shot 2018-06-07 at 11.07.44.png

     

 

 

  • 0 in reply to 

    Hi Maria Rolfe

    Finally i am able to run my script. Thanks for the solution.
    But I am not able to see mobile UI while running my appium script. I can only see that one device got reserved in from the lab during execution.
    How can I see the execution on mobile device. Please help me in this.

  • 0 in reply to 

    Hi Ishan,

    There is no way to see the device executing an Appium script from Eclipse. The only tools that would show you the output are UFT One or UFT Developer.

    The only way to "see" what is happening with the script, is to wait until the script locks the device and then open the device from UFT Mobile. 

    Since the device is already being controlled by the script, most of the buttons will appear disabled but at least you will be able to see the script in action.

    Once the script releases the device, if you still have it open in UFTM, you will see an error message because the connection has stopped but that is normal.

  • 0 in reply to 

    Cool, I used UFT Developer and can see the execution.
    As the execution finished , i saw error on device Something like: VNC session expires or another session is opened.
    This is correct behavior, Right?


     

  • 0 in reply to 

    Hi Maria Rolfe

    Is there any way to run ADB command on Mobile farm device?

  • 0 in reply to 

    Hi Ishan,

    Yes, that is correct. Once the script finishes, the session is closed so if you have the device open for viewing using VNC, that session gets closed as well. 

  • 0 in reply to 

    Hi Maria Rolfe
    Can you help me in this?

    "Is there any way to run ADB command on Mobile farm device?"

  • 0 in reply to 

    Hi Ishan,

    Could you please create a new discussion for this?

    We are going way off-topic here.

    Thanks!

  • 0 in reply to 

    Yes sure.

    Thanks!