当前位置:网站首页>Appium environment setup
Appium environment setup
2022-06-29 07:42:00 【Wang dada】
One 、 Download and install appium client ( Do not install 1.15.1 edition ,1.15.1 There are a lot of holes in the version )
Get into appium Official website http://appium.io/ Download version , Install the downloaded version according to the steps 


Appium-Python-Client Third party package
pip3 install Appium-Python-Client -i https://pypi.tuna.tsinghua.edu.cn/simple
Two 、 To configure jdk And Android sdk Environmental Science
2.1、jdk8 Download address :https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Follow the steps to install jdk
2.2、Android SDK Download address :http://dl.google.com/android/android-sdk_r23.0.2-windows.zip
2.2.1、 download SDK After extracting the file , function SDK Manager install platform-tools
2.2.2、 To configure Android environment variable
1)、 New system variable , Variable name :ANDROID_HOME, A variable's value :Android SDK Store the root directory
2)、 In system variable path New variable in :;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;




3、 ... and 、appium start-up Android app
android (vivo x21) desired capabilities:
{ “appPackage”: “com.lumiunited.aqarahome”, “appActivity”: “com.lumiunited.aqara.main.SplashActivity”, “noReset”: “true”, “platformVersion”: “9”, “deviceName”: “android”, “platformName”: “Android” }
Four 、appium start-up iOS app
4.1、iOS Real machine installation webdriveragent(appium Bring their own WDA,WDA See the problem record in the configuration environment for the path 2)
1)、 The terminal enters the directory :/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/webdriveragent
2)、 Execute the script
Command line terminal to wda The root directory , function ./Scripts/bootstrap.sh
3)、 Open the project , Configure developer certificate ,WebDriverAgentRunner project build setting modify bundle Id It's the only sign ( Such as com.lumi.WebDriverAgentRunner),product-》test function
4)、 Browser input http://localhost:8100/status, The result data can be displayed , For example, next :
{ “value” : { “message” : “WebDriverAgent is ready to accept commands”, “state” : “success”, “os” : { “name” : “iOS”, “version” : “13.4.1”, “sdkVersion” : “13.4” }, “ios” : { “simulatorVersion” : “13.4.1”, “ip” : “10.0.100.19” }, “ready” : true, “build” : { “time” : “May 21 2020 18:36:31”, “productBundleIdentifier” : “com.facebook.WebDriverAgentRunner” } }, “sessionId” : “B9BE0798-C334-47BE-AFDF-F99D12CC036D” }
WebdriverAgent Environment configuration successful
5)、 start-up appium, To configure desired capability by :
{ “bundleId”: “com.lumiunited.pre.homekit”, “automationName”: “XCUITest”, “platformVersion”: “13.4.1”, “deviceName”: “iphone”, “platformName”: “iOS”, “udid”: “2e6939b70da40972c17971831a7ed4e43087b8e9” }
5、 ... and 、 Configure problem records in the environment :
1、appium To configure Android desired capabilities Prompt at startup The ANDROID_HOME environment variable is not set to the Android SDK root directory path. ANDROID_HOME is required for compatibility with SDK 23+. Checking along PATH for adb( The computer is configured Android SDK Environmental Science )
Solution :
appium-》Configurations To configure Android sdk route , restart appium Can be started normally Aqara Home app
2、appium 1.15.1 edition webdriver Path is :/Applications/Appium.app/Contents/Resources/app/node_modules/appium-webdriveragent
appium Common path is :/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/webdriveragent
3、 Prompt when executing the script ./Scripts/bootstrap.sh Tips ERROR in ./js/app.js Module parse failed:/app.js Unexpected token error
Solution :1、 modify Inspector Next webpack.config.js file
2、 Get rid of babel-loader After the configuration ,“exclude: /node_modules/”
3、 Delete Inspector Next node_modules Folder
4、 Re execution “sh ./Scripts/bootstrap.sh”
4、 Prompt at run time ’assign’ property of object type may become a dangling reference; consider using ‘unsafe_unretained’
Solution : We're reporting an error , Go to the error code , take assign Change it to strong After again build
边栏推荐
- 关于开发web场景下如何解决手机访问web跨域问题
- Appium automation test foundation ADB common commands (II)
- JMeter can't find its own jar package imported by BeanShell
- Using cdockablepane to realize floating window in MFC
- Compiling principle: the king's way
- 施努卡:3d机器视觉检测系统 3d视觉检测应用行业
- Kingbasees v8r6 cluster maintenance case -- single instance data migration to cluster case
- [translation] E-Cloud. Large scale CDN using kubeedge
- How to talk about salary correctly in software test interview?
- Perceiving healthy life, enabling boundless connection -- contributing to openharmony 3.1 ecological construction
猜你喜欢

Problem solving -- > online OJ (13)

【工控老马】基于PLC的花样喷泉设计原理详解

Mmclassification installation and debugging

1183: patient queue

ShapeShifter: Robust Physical Adversarial Attack on Faster R-CNN Object Detector

ES中配置ext.dic文件不生效的原因

Listen to textarea input through Keyup to change button style

Wechat applet learning notes (summer vacation)

Blue Bridge Cup -- Analysis of the second batch of test questions of the 13th session

Using cdockablepane to realize floating window in MFC
随机推荐
Some examples.
What is a Test Architect
KingbaseES 中select distinct on 语句
施努卡:3d视觉检测方案 3d视觉检测应用行业
Wechat applet learning notes (summer vacation)
如何看待软件测试培训?你需要培训吗?
DataTables screen error Popup
Swin Transformer理论讲解
How to select CRM brand suppliers in garment industry?
100 lectures on Excel advanced drawing skills (VI) - practical application cases of Gantt chart in project progress
【工控老马】PLC六路抢答器系统设计详解
The table cannot be vacuumed because the cursor is open for a long time
Appium自动化测试基础 — ADB常用命令(二)
Perceiving healthy life, enabling boundless connection -- contributing to openharmony 3.1 ecological construction
[translation] E-Cloud. Large scale CDN using kubeedge
cv2.cvtColor
Two ways to write throttling - recently seen
并发幂等性防抖
Kingbasees v8r6 cluster maintenance case -- single instance data migration to cluster case
National Security Agency and CISA kubernetes reinforcement guidelines - new content in version 1.1