Using CMD to create Android automation environment

本文详细介绍如何搭建Appium自动化测试环境,包括安装Appium服务器、Node.js、Java JDK、Android SDK等关键步骤,并提供了创建Android模拟器及运行测试用例的具体命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. Install Appium server,      install path: http://appium.io/     
  2. Install the Node JS, install      path: https://nodejs.org/en/
  3. Open the Appium server
  4. Start the Appium server
  5. Install the Java JDK, install      path: http://www.oracle.com/technetwork/java/javase/downloads/index.html
  6. Install the Android SDK,      install path: https://developer.android.com/studio/index.html?gclid=CjwKEAjwmMS-BRCm5dn51JLbp1wSJACc61tFag0ZqtZdGSydOBbWbC1TKrebc1z_tn6qQtBq5lJE0BoCNdDw_wcB     
  7. Add environment variables for      Java and Android SDK
  8. Create Android emulator
  9. Start emulator
  10. Install the PowerApp sdk
  11. Run PowerApp test cases

 

We can execute the below CMD to create the above step:

The step 1,2,5,6, we can copy the files and install it.

The step 3, CMD: “C:\Program Files (x86)\Appium\Appium.exe"  

The step 4: CMD: “C:\Program Files (x86)\Appium\node_modules\.bin\appium.cmd” -a 127.0.0.1 -p 4723

The step 7: we can change the registry value, see the below screen shot:

The step 8: CMD: android create avd -n EmulatorName -t 7 -b default/x86    (details, please refer to: http://blog.sina.com.cn/s/blog_4d353ac3010186c4.html)

The step 9: CMD: emulator -avd avdName   (go to the Android SDK tools path firstly)

The step 10: CMD: adb install ***.sdk

 

转载于:https://www.cnblogs.com/Tomliuxin/p/5919737.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值