当前位置:网站首页>appium1.22.x 版本後的 appium inspector 需單獨安裝
appium1.22.x 版本後的 appium inspector 需單獨安裝
2022-07-03 05:04:00 【全棧哈士奇】

萬葉集 |
---|
隱約雷鳴,陰霾天空。 |
但盼風雨來,能留你在此。 |
前言:
作者簡介:渴望力量的哈士奇 ,大家可以叫我 哈士奇 ,一比特致力於 TFS - 全棧 賦能的博主
CSDN博客專家認證、新星計劃第三季全棧賽道 top_1 、華為雲享專家、阿裏雲專家博主
如果文章知識點有錯誤的地方,請指正!和大家一起學習,一起進步
人生格言:優於別人,並不高貴,真正的高貴應該是優於過去的自己。
如果感覺博主的文章還不錯的話,還請關注、點贊、收藏三連支持一下博主哦
專欄系列(點擊解鎖) 學習路線指引 知識定比特 Python全棧白皮書 零基礎入門篇 以淺顯易懂的方式輕松入門,讓你徹底愛上Python的魅力。 語法進階篇 主要圍繞多線程編程、正則錶達式學習、含貼近實戰的項目練習 。 自動化辦公篇 實現日常辦公軟件的自動化操作,節省時間、提高辦公效率。 自動化測試實戰篇 從實戰的角度出發,先人一步,快速轉型測試開發工程師。 數據庫開發實戰篇 更新中 爬蟲入門與實戰 更新中 數據分析篇 更新中 前端入門+flask 全棧篇 更新中 django+vue全棧篇 更新中 拓展-人工智能入門 更新中 網絡安全之路 踩坑篇 記錄學習及演練過程中遇到的坑,便於後來居上者 網安知識掃盲篇 三天打魚,不深入了解原理,只會讓你成為脚本小子。 vulhub靶場漏洞複現 讓漏洞複現變得簡單,讓安全研究者更加專注於漏洞原理本身。 shell編程篇 不涉及linux基礎,最終案例會偏向於安全加固方向。 [待完結] WEB漏洞攻防篇 2021年9月3日停止更新,轉戰先知社區等安全社區及小密圈 滲透工具使用集錦 2021年9月3日停止更新,轉戰先知社區等安全社區及小密圈 點點點工程師 測試神器 - Charles 軟件測試數據包抓包分析神器 測試神器 - Fiddler 一文學會 fiddle ,學不會倒立吃翔,稀得! 測試神器 - Jmeter 不僅是性能測試神器,更可用於搭建輕量級接口自動化測試框架。 RobotFrameWork Python實現的自動化測試利器,該篇章僅介紹UI自動化部分。 Java實現UI自動化 文檔寫於2016年,Java實現的UI自動化,仍有借鑒意義。 MonkeyRunner 該工具目前的應用場景已不多,文檔已删,為了排版好看才留著。

前言
這幾天折騰 mac 環境下的 appium 是真的被折騰的不輕,差一點給配置環境勸退嘍。這不,又遇到了一個坑,只能硬著頭皮給埋了…
場景如下:
利用 aapt 解析本地的 apk 包獲取包的信息,需要將啟動的參數信息填入到 “appium-inspector” ,這樣就會在啟動的時候自動的去啟動 app 了。但是當我點擊 appium 的 的這個圖標的時候,卻發現直接打開了瀏覽器,跳轉到了 “https://github.com/appium/appium-inspector” 。根本就沒有打開 “appium-inspector” ,這就很讓人費腦筋了…

場景分析
OK,接下來就分析一下吧, 在 跳轉的 https://github.com/appium/appium-inspector 發現了以下內容。

看到了吧,這裏先看一下我們安裝的 appium 的版本, 終端執行 appium -v

OK,問題找到了,是因為我們使用的 appium 的版本是 1.22.3 造成的,所以,appium-inspector
需要另外安裝。
安裝 appium-inspector
- 下載並安裝
appium-inspector
:https://github.com/appium/appium-inspector/releases- 安裝之後,配合 appium 的話, appium-inspector 需要另行單獨啟動
- 同時因為
appium為1.22.x,appium-inspector為新版
,需要在appium inspector
中的Remote Path
中配置/wd/hub

配置appium-inspector並啟動
- platformName:設備名稱,一般為 “Android” 或者 “ios”
- platformVersion:版本號,可以通過命令:
adb shell getprop ro.build.version.release
,可以得到一個整數類型的值,就是版本號- deviceName:如果是真機的話填寫的是設備名稱;用的是模擬器的話,填寫的是IP端口號。
- 可以通過命令:
adb devices -l
,查看到一個結果;model:後面跟的那個值就是 "deviceName" 要填寫的名稱
- appPackge 與 appActivity為必填項,獲取這兩種參數的方式也有兩種
- 第一種:通過 android sdk 目錄下的 build_tools 的
aapt
,執行命令aapt dump badging 路徑名 + apk包名
即可獲取- 第二種:啟動了app後通過命令
adb shell dumpsys activity | grep "mResume"
查看,以"/"為界限,左邊是appPackge,右邊是appActivity ;格式舉例:"com.taobao.taobao/com.taobao.tao.TBMainActivity"
- PS:獲取 appPackge 與 appActivity 參數,參考 〖Python APP 自動化測試實戰篇⑤〗- appium Capability詳解 這一章節的
利用 aapt 解析本地的 apk 包獲取包的信息
的這一部分- automationName:這個是可選參數,一般默認為
"Appium"
以上設置參數設置好後如下圖:

啟動後如下:


边栏推荐
- 2022-02-11 daily clock in: problem fine brush
- Caijing 365 stock internal reference: what's the mystery behind the good father-in-law paying back 50 million?
- Keepalived热备与HAProxy
- First + only! Alibaba cloud's real-time computing version of Flink passed the stability test of big data products of the Institute of ICT
- Current market situation and development prospect forecast of the global fire boots industry in 2022
- 1095 cars on campus (30 points)
- The programmer resigned and was sentenced to 10 months for deleting the code. JD came home and said that it took 30000 to restore the database. Netizen: This is really a revenge
- Market status and development prospect prediction of global fermented plant protein industry in 2022
- Distinguish between releases and snapshots in nexus private library
- [research materials] 2022q1 game preferred casual game distribution circular - Download attached
猜你喜欢
Review the old and know the new: Notes on Data Science
Keepalived热备与HAProxy
【批处理DOS-CMD命令-汇总和小结】-CMD窗口的设置与操作命令-关闭cmd窗口、退出cmd环境(exit、exit /b、goto :eof)
Basic knowledge of reflection (detailed explanation)
Thesis reading_ Chinese NLP_ ELECTRA
Esp32-c3 learning and testing WiFi (II. Wi Fi distribution - smart_config mode and BlueIf mode)
Concurrent operation memory interaction
First + only! Alibaba cloud's real-time computing version of Flink passed the stability test of big data products of the Institute of ICT
Unity tool Luban learning notes 1
Review the configuration of vscode to develop golang
随机推荐
Notes | numpy-07 Slice and index
[develop wechat applet local storage with uni app]
[set theory] relationship properties (symmetry | symmetry examples | symmetry related theorems | antisymmetry | antisymmetry examples | antisymmetry theorems)
Burp suite plug-in based on actual combat uses tips
Shuttle + Alluxio 加速内存Shuffle起飞
并发操作-内存交互操作
论文阅读_清华ERNIE
Use Sqlalchemy module to obtain the table name and field name of the existing table in the database
[research materials] 2021 China's game industry brand report - Download attached
移动端——uniapp开发记录(公共请求request封装)
Based on RFC 3986 (unified resource descriptor (URI): general syntax)
"Hands on deep learning" pytorch edition Chapter II exercise
Automatic voltage rise and fall 5-40v multi string super capacitor charging chip and solution
文献阅读_基于多模态数据语义融合的旅游在线评论有用性识别研究(中文文献)
Promise
Three representations of signed numbers: original code, inverse code and complement code
[SQL injection] joint query (the simplest injection method)
Blog building tool recommendation (text book delivery)
leetcode435. Non overlapping interval
Analysis of proxy usage of ES6 new feature