久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Appium : 能否用于跨平臺應用測試

Appium : Can it be used for cross platform application testing(Appium : 能否用于跨平臺應用測試)
本文介紹了Appium : 能否用于跨平臺應用測試的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我有一個使用跨平臺開發工具開發的應用程序.這個應用程序有相同的界面為 ios(ipa) 和 android(apk).我可以編寫一個自動化腳本并在兩個平臺上運行它,即適用于 android 和 ios 應用程序.

I have one application that is developed using cross platform development tool. This app has same interface for ios(ipa) and android(apk). Can I write one automation script and run it across both the platforms i.e both for android and ios app.

有人用 Appium 試過嗎?開發跨平臺測試的測試腳本需要使用哪些定位技術.例如,通過 tagName、xpath ?

Anyone tried this using Appium ? What are the locating techniques that need to be used for developing test scripts for cross platform testing. e.g by tagName, xpath ?

使用 appium 進行跨平臺測試有什么限制?

What are the limitations with appium for cross platform testing?

推薦答案

所以,跨平臺的意思是 Sencha 對?

So, cross platform means Sencha right?

問題一:-是的,Appium 支持混合以及原生 iOS/Android 應用程序.

Que 1:- Yes, Appium support to hybrid as well as native iOS/Android app.

對于自動化,您可以在 iOS 和 Android 上重復使用相同的代碼(但要小心謹慎).請參閱第六個答案

for automation you can reuse same code for both iOS and Android(But take it with pinch of salt). Please see 6th answer here

查看這個 github 鏈接 https://github.com/appium/appium.

Check out this github link https://github.com/appium/appium.

問題2:-

定位元素:-您也可以使用索引、resource_id、文本和 XPath.

Locating elements :- you can use indexes, resource_id, text, and XPath also.

1.索引 :- 假設你想獲得按鈕的索引.Appium 將特定類型的元素視為數組.從上到下,從左到右開始計算索引(button[0],button1 ...).

1. Indexes :- Suppose you want to get index of buttons. Appium treat specific types of elements as array. Start counting of indexes(button[0],button1 ... ) from top to bottom, left to right.

  1. uiautomatorviewer :- 將您的移動設備連接到桌面并啟動您的應用程序.在桌面終端中使用 uiautomatorviewer 命令(請確保您已為工具、平臺工具、構建工具和 adb devices 設置了所有 ANDROID_HOME 路徑,顯示所有附加設備列表).
  1. uiautomatorviewer :- connect you mobile device to desktop and launch your app. In desktop terminal use uiautomatorviewer command (please make sure you have all ANDROID_HOME path set for tools, platform-tools, build-tools and adb devices showing all attached devices list).

它會打開一個窗口,點擊最右邊的截圖按鈕.將鼠標懸停在屏幕截圖上的元素上,您將看到所有按索引、resource_id、文本和 XPath 列出的元素

It will open a window, click on right most take a screenshot button. Hover on elements present on screenshot you will see all elements by indexes, resource_id, text, and XPath

限制 :- Appium 到現在還有點不穩定.Android 4.2+ 支持 uiautomatorviewer 而低版本使用 Selendroid

limitations :- Appium is Little bit unstable till now. Android 4.2+ supports to uiautomatorviewer while for lower version use Selendroid

對于跨平臺,您需要根據您的平臺(iOS/Android)和設備版本和運行平臺更改代碼capabilities.

for cross platform you need to change code capabilities based on your platform(iOS/Android) and device version and running platforms.

請參閱博客以獲取幫助 http:///swapnilvkotwal.wordpress.com/2014/04/04/appium-setup-ruby-sample-test-script/

See blog for help http://swapnilvkotwal.wordpress.com/2014/04/04/appium-setup-ruby-sample-test-script/

這篇關于Appium : 能否用于跨平臺應用測試的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Cut, copy, paste in android(在android中剪切、復制、粘貼)
android EditText blends into background(android EditText 融入背景)
Change Line Color of EditText - Android(更改 EditText 的線條顏色 - Android)
EditText showing numbers with 2 decimals at all times(EditText 始終顯示帶 2 位小數的數字)
Changing where cursor starts in an expanded EditText(更改光標在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 大象视频一区二区 | www.日韩系列 | 久草综合在线 | 色噜噜色综合 | 国产成人精品久久二区二区91 | 人人玩人人添人人澡欧美 | 成人性视频免费网站 | 成人在线免费电影 | 男女下面一进一出网站 | 日韩成人免费视频 | 久久综合九九 | 国产成在线观看免费视频 | 国产精品特级片 | 日韩在线视频一区 | 成人三区| 91免费视频 | 欧美伊人久久久久久久久影院 | 国产美女在线观看 | 视频一区二区在线观看 | 欧洲色综合 | 91在线免费观看网站 | 亚洲精品中文字幕 | 黄色免费三级 | 99精品久久久 | 亚洲精品女优 | 欧美一级久久精品 | 亚洲视频一区二区三区四区 | 男人av在线播放 | 国产精品久久影院 | 伊人伊成久久人综合网站 | 欧美一级艳情片免费观看 | av在线一区二区三区 | 一区二区三区四区不卡视频 | 91精品久久久久久久久久小网站 | 亚洲精品久久久 | 国产片侵犯亲女视频播放 | 视频一区二区中文字幕 | 亚洲人成网站777色婷婷 | 亚洲一区精品在线 | 欧美日韩高清一区 | 婷婷激情综合 |