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

即使在應用退出后,如何使用 UIAutomation 工具繼續

How to continue testing an iOS app, using UIAutomation instrument, even after the app exits?(即使在應用退出后,如何使用 UIAutomation 工具繼續測試 iOS 應用?)
本文介紹了即使在應用退出后,如何使用 UIAutomation 工具繼續測試 iOS 應用?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我有一個應用程序.應用程序中有一個按鈕,如果單擊該按鈕,將退出應用程序.我正在使用 UIAutomation 工具測試應用程序.我想測試這個按鈕.但是在應用程序退出后,儀器停止給出異常.我想做的是在應用程序存在后,我想重新打開應用程序并繼續進行其余的測試.有沒有其他人遇到過同樣的情況?如果是這樣,您能否分享一下解決方案,如果您找到了?

I have an app. There is a button in the app, which, if clicked, exits the app. I am testing the app using UIAutomation instruments. I want to test this button. But after the app exits, the instrument stops giving an exception. What I want to do is that after the app exists, I want to reopen the app and continue with the rest of the test. Have anyone else been in the same scenario? If so, can you please share the solution, if you have found any?

推薦答案

這是不可能的,因為 Instruments 一旦退出就會失去與應用進程的連接.

This is not possible because Instruments loses the connection with the app process once it quits.

如果您從命令行編寫 UI 自動化腳本,您可以在第一個自動化腳本退出應用程序后運行第二個自動化腳本,然后檢查以確保一切都已重置.

If you are scripting UI Automation from the command line, you can run a second automation script after the first one quits the app that then checks to make sure everything is reset.

instruments 
    -D [trace document] 
    -t [instruments template] 
    /path/to/Bundle.app 
    -e UIARESULTSPATH [directory to store test output] 
    -e UIASCRIPT reset_the_app.js

instruments 
    -D [trace document] 
    -t [instruments template] 
    /path/to/Bundle.app 
    -e UIARESULTSPATH [directory to store test output] 
    -e UIASCRIPT check_that_the_app_is_reset.js

因此,與其嘗試讓同一個 Instruments 實例重新啟動并重新附加到應用程序,只需運行兩個單獨的腳本,一個用于執行重置和中止,另一個用于檢查應用程序的結果狀態.

So, rather than trying to get the same instance of Instruments to relaunch and reattach to the app, just run two separate scripts, one that does your reset-and-abort, and the other that checks the resulting state of the app.

這篇關于即使在應用退出后,如何使用 UIAutomation 工具繼續測試 iOS 應用?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

Using Instruments to test an iOS app without having source code to the application(在沒有應用程序源代碼的情況下使用 Instruments 測試 iOS 應用程序)
KIF: How to auto-run/stress test an iOS app to find the cause of a rare UI bug?(KIF:如何自動運行/壓力測試 iOS 應用程序以找出罕見 UI 錯誤的原因?)
How to provide login credentials to an automated android test?(如何為自動化的 android 測試提供登錄憑據?)
How to fix error quot;Could not detect Mac OS X Version from sw_vers output: #39;10.12 #39;quot; from Appium(如何修復錯誤“無法從 sw_vers 輸出檢測 Mac OS X 版本:10.12來自Appium)
How do you test an Android application across multiple Activities?(如何跨多個活動測試 Android 應用程序?)
Can#39;t change target membership visibility in Xcode 4.5(無法更改 Xcode 4.5 中的目標成員身份可見性)
主站蜘蛛池模板: 国产精品1区2区3区 中文字幕一区二区三区四区 | 国产黄色电影 | 中文字幕伊人 | 久草中文在线 | 国产精品a久久久久 | 久久精品亚洲精品国产欧美 | 国产精品久久久久久久久久 | 91视在线国内在线播放酒店 | 日韩欧美国产一区二区三区 | 亚洲成人免费视频 | 久久精品女人天堂av | 伊人免费在线观看 | 国产欧美一区二区三区在线看 | 爱爱视频日本 | 日韩精品一区二区三区视频播放 | 天天爽天天干 | avtt国产| 久久成人国产 | 91综合网 | www.色.com| 91欧美激情一区二区三区成人 | 超碰最新在线 | 国产一区久久久 | 台湾佬久久 | 91亚洲精 | 色视频网站 | 99久久中文字幕三级久久日本 | 久久人爽| 成人免费观看男女羞羞视频 | 三级在线免费 | 热re99久久精品国99热观看 | 国产电影一区二区在线观看 | 老外黄色一级片 | 欧美精品久久久久久久久久 | 久久久久久久久久久91 | 正在播放亚洲 | 国产精品久久久久久久久久 | 中文字幕国产一区 | 一本一道久久a久久精品蜜桃 | 国产精品日韩在线观看一区二区 | 天天摸天天干 |