Mac build appium automated test environment Xcode 11.3

Mac build appium automated test environment Xcode 11.3

I have to say that domestic articles are really copied pasted. . . It took a long time to build an appium automated testing tool. The following are my steps to build an environment based on Xcode11.3 macOS Majove10.14.5 appium1.15.1, I hope it will help you.

Step 1: Configure the basic environment (by default you have installed brew)

npm install
brew install npm
 
node installation
brew install node
 
carthage installation
brew install carthage
 
Necessary installation required for real machine
brew install libimobiledevice
brew install ios-deploy
 
Determine if the installation is complete install appium-doctor
npm install -g appium-doctor

 
appium-doctor
 

Step 2: Download and configuration of appiumdesktop client

#####1. Go to the official website to download appium-desktop. I am now installing appium1.15.1 (the latest version). #####2. The following is more important. If you are not careful, you may be like me and engage in a day. #####2.1 The application displays the package contents.

#####2.2 Open the project appium-webdriveragent .
#####2.3 Libraries required by the installation project

# The following commands carthage update --no-use-binaries --platform iOSand official documentation installation md different, I use the official ./Scripts/bootstrap.sh -d execute scripts can not install the full tripartite library for a computer does not work, interested students can try.

cd  appium-webdriveragent 
 2 
mkdir -p Resources/WebDriverAgent.bundle
carthage update --no-use-binaries --platform iOS
 

#####2.4 Configure the project bundleId. TARGETS bundlID team

babundlID

bundlID Build Setting -> packaging -> product bundle identifer

Step 3: Compile and run

#####3.1 Install the WebDriverAgentRunner program on a real machine

As shown in the figure below, the program switches to WebDriverAgentRunner, the device selects your phone, and executes Command + U or Product -> Test. After the execution, the modified program will be installed on the phone, and you can trust it.

#####3.2 Run appium program

Run the Appium program installed on the mac, click Start Server, click the icon, enter the parameters (search for the meaning of the specific parameters yourself), and click Start Session to see the following renderings