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

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

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

問題描述

限時送ChatGPT賬號..

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

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 實例重新啟動并重新附加到應用程序,只需運行兩個單獨的腳本,一個用于執(zhí)行重置和中止,另一個用于檢查應用程序的結果狀態(tài).

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 工具繼續(xù)測試 iOS 應用?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關文檔推薦

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 測試提供登錄憑據(jù)?)
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 中的目標成員身份可見性)
主站蜘蛛池模板: 91麻豆精品国产91久久久久久久久 | 久久99精品久久久久久琪琪 | 三a毛片| 一区二区三区视频 | 久久久久久看片 | 国产欧美一区二区三区在线看蜜臀 | 国产美女久久久 | 国产精品18久久久 | 国产在线观看网站 | 亚洲高清视频在线观看 | 黄色av网站在线观看 | 久久精品国产亚洲a | 色综合av| 亚洲成人第一页 | 国产精品日韩欧美一区二区三区 | 久久久精品一区 | 九九久久99 | 第一福利社区1024 | 性色视频 | 亚洲男人天堂av | 欧洲精品久久久久毛片完整版 | 久久99精品久久久 | 中文字幕成人av | 亚洲视频免费在线观看 | 欧美在线视频一区 | a黄视频 | 欧美日韩在线一区二区三区 | 国产黄色在线 | 国产不卡视频在线 | 欧美日韩在线播放 | 国产精品久久久久久中文字 | 国产视频导航 | 国产欧美一区二区三区在线看 | 日韩一区二区成人 | 影音先锋中文字幕在线观看 | 日韩视频在线免费观看 | 国产精品久久久久久久久免费相片 | 免费黄色网址视频 | 亚洲激情一区二区 | 日本一区二区三区在线观看 | 成人在线网|