AppiumDeskTop Second for Android
在教程First已經完成AppiumDeskTop安裝,接下來我們完成App錄製指令碼,並生成測試報告
1.錄製指令碼

點選錄製

暫停錄製

錄製語言

選擇語言
2.生成報告
這裡使用我已經搭建好的框架:App-autotest(連結:https://pan.baidu.com/s/1SbaM9d2jB0Y-dmK5DrFpUg 密碼:lmul)
我們選擇指令碼語言為Python,用HtmlTestRunner配合生成報告,這之前要按照node.js
安裝Homebrew:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安裝python3:brew install python3(建議用3.6的)
安裝nose:pip3 install nose
安裝client:pip3 install Appium-Python-Client
安裝HtmlTestRunner:pip3 install html-testRunner

錄製的指令碼放到test.login test_start方法裡
進入測試專案Runner目錄,輸入python3 runner.py

image
測試報告

error注意:
1.TabError: Inconsistent use of tabs and spaces in indentation
解決:把Tab都換成空格就好
HtmlTestRunner模板目錄:
/usr/local/lib/python3.6/site-packages/HtmlTestRunner/template
相關文章
- 研發週記(second week)
- 671-Second Minimum Node In a Binary Tree
- 22號 second day 關於切片
- [Vue] how to encapsulate second time of ui componentsVueUI
- jmeter監聽器(Transactions per Second)JMeter
- [LeetCode] 671. Second Minimum Node In a Binary TreeLeetCode
- Omi 入坑指南 The second floor 初步接觸
- PHP 控制 QPS (Query Per Second) 的寫法PHP
- 題解:AT_abc140_e [ABC140E] Second Sum
- Second Dinner 工作室正與漫威合作,開發一款漫畫改編遊戲遊戲
- Springboot2.x整合lettuce連線redis叢集報超時異常Command timed out after 6 second(s)Spring BootRedis
- Android學習—— Android佈局Android
- [Android元件化]Android app BundleAndroid元件化APP
- Android之android exported="false"作用AndroidExportFalse
- AndroidAndroid
- Android APIs (Class Index - Android SDK)(一)AndroidAPIIndex
- Android APIs (Class Index - Android SDK)(二)AndroidAPIIndex
- Android總結篇系列:Android ServiceAndroid
- 2018.03.12、Android知識點-Android篇Android
- android開發 之 Bolts-AndroidAndroid
- Android解析ClassLoader(二)Android中的ClassLoaderAndroid
- 【Android SDK】在命令列管理Android SDKAndroid命令列
- Android Q (Android 10.0)系統新特性Android
- vector android:fillType gradient android:endX attribute not foundAndroid
- 聚焦 Android 11: Android 開發者工具Android
- Android進階(七)Android中的ClassLoaderAndroid
- Android之Service設定android:process作用Android
- android裝置連線至Android studioAndroid
- android基礎學習-android篇day17-Android Fragment(碎片)基本使用AndroidFragment
- android 拍照Android
- Android FrameworkAndroidFramework
- Android ServiceAndroid
- renderdoc on androidAndroid
- Android APNAndroid
- Android混淆Android
- Android 《Notification》Android
- Android概述Android
- android:configChangesAndroidGC