Install Appium on Mac

Installing Appium on a Mac can be done with the following steps:

  1. Install Xcode and Xcode Command Line Tools. If you already have Xcode and Xcode Command Line Tools installed, you can skip this step.

  2. Install Homebrew. If you already have Homebrew installed, you can skip this step.

  3. Open the Terminal application.

  4. Type the following command and press Enter to install Node.js using the Homebrew command:

brew install node
  1. Wait for a while, and Homebrew will automatically download and install Node.js and its associated packages and dependencies.

  2. Once the installation is complete, you can use the following command to verify that Node.js was successfully installed:

node -v
  1. If you can see the version number of Node.js, it has been successfully installed.

  2. Type the following command and press Enter to install Appium using the npm command:

npm install -g appium
  1. Wait for a while and npm will automatically download and install Appium and its associated packages and dependencies.

  2. Once the installation is complete, you can use the following command to verify that Appium was installed successfully:

appium -v
  1. If you can see the version number of Appium, it has been installed successfully.

After the installation is complete, you can use Appium for iOS and Android UI automation testing. If you need to use XCUITest for iOS UI automation testing, you also need to install Appium's XCUITest Driver. You can use the following command to install XCUITest Driver:

npm install -g appium-xcuitest-driver

After the installation is complete, you can use XCUITest in Appium for iOS UI automation testing.

Guess you like

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