Specific steps to install Appium Desktop on Mac

1. Install Homebrew

Open a terminal and run the following command to install Homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Install Node.js

Run the following command in a terminal to install Node.js:

brew install node

3. Install Appium Desktop

Run the following command in Terminal to install Appium Desktop:

npm install -g appium-desktop

4. Start Appium Desktop

Start Appium Desktop by entering the following command in Terminal:

appium

Alternatively, you can find Appium Desktop in Applications and double-click to run it.

5. Configure Appium Desktop

After launching Appium Desktop, you need to configure some options to start using it. In the Appium Desktop interface, select the "Start Server" tab and configure the following options:

  • "Server Address": The default is 127.0.0.1, you don't need to modify it.
  • "Server Port": The default is 4723, you don't need to modify it.
  • "App Path": Select the path of the application you want to test.
  • "Platform Name": Select the platform you want to test, such as Android or iOS.
  • "Platform Version": Select the platform version number you want to test.
  • “Device Name”: Select the name of the device you want to test.

After the configuration is complete, click the "Start Server" button to start Appium Server.

6. Connect the device

Run the following command in a terminal to see a list of devices connected to your computer:

adb devices

Alternatively, if you are connecting an iOS device, you can use the "Devices and Simulators" window in Xcode to view a list of devices.

If the device is connected to the computer, it should appear in the list. In the Appium Desktop interface, click the "Session" tab and configure the following options:

  • "Automation Name": Select the automation tool you want to use, such as Appium or XCUITest.
  • "Platform Name": Select the platform you want to test, such as Android or iOS.
  • "Platform Version": Select the platform version number you want to test.
  • “Device Name”: Select the name of the device you want to test.
  • "App Path": Select the path of the application you want to test.

After the configuration is complete, click the "Start Session" button to start the test.

Website address to be used:

  • Homebrew official website: https://brew.sh/
  • Node.js official website: https://nodejs.org/
  • Appium Desktop official website: https://github.com/appium/appium-desktop

The commands that need to be used:

  • Install Homebrew:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Install Node.js:brew install node
  • Install Appium Desktop:npm install -g appium-desktop
  • Start Appium Desktop:appium
  • View device list (Android):adb devices
  • To view the list of devices (iOS): use the "Devices and Simulators" window in Xcode

Guess you like

Origin blog.csdn.net/daxiangaifashi/article/details/130157964