当前位置:网站首页>About the problem of APP flash back after appium starts the app - (solved)
About the problem of APP flash back after appium starts the app - (solved)
2022-07-07 13:02:00 【Full stack husky】

Wanyeji |
---|
Faint thunder , Cloudy sky . |
But I hope the wind and rain will come , I can keep you here . |
Preface :
Author's brief introduction : Husky who yearns for power , You can call me Siberian Husky , One devoted to TFS - The whole stack Empowered bloggers
CSDN Blog expert certification 、 Nova plan Season 3 full stack track top_1 、 Huawei cloud sharing expert 、 Alibaba cloud expert Blogger
If there is something wrong with the knowledge of the article , Please correct me. ! Learn with you , Progress together
The motto of life : Being superior to some other man , Is not high , The true nobility is to be superior to one's former self .
If you feel the blogger's article is good , Please pay attention. 、 give the thumbs-up 、 Collect three companies to support bloggers
Column series ( Click unlock ) Learning route guidance Knowledge orientation Python Full stack white paper Zero foundation beginner level chapter Easy to get started in an easy to understand way , Let you fall in love with Python The charm of . Advanced Grammar Mainly around multi-threaded programming 、 Regular expression learning 、 Including project exercises close to actual combat . Office automation Realize the automatic operation of daily office software , Save time 、 Improve office efficiency . Automation test practice From the perspective of actual combat , One step ahead , Rapid transformation test development engineer . Database development practice Updating Introduction and practice of reptile Updating Data analysis Updating Introduction to the front +flask Full stack Updating django+vue Full stack Updating expand - Introduction to artificial intelligence Updating The road to network security Stepping on a pit Record the pit encountered during learning and drilling , It is convenient for those who come from behind to catch up Net security literacy Three days fishing , No deep understanding of the principle , It will only make you a script boy . vulhub The loopholes in the shooting range reappear Make it easy to reproduce vulnerabilities , Let security researchers focus more on the vulnerability principle itself . shell Programming Don't involve linux Basics , The final case will be in the direction of safety reinforcement . [ To be finished ] WEB Vulnerability attack and defense 2021 year 9 month 3 Stop updating on , Move to safe communities such as prophet community and small secret circles Collection of penetration tools 2021 year 9 month 3 Stop updating on , Move to safe communities such as prophet community and small secret circles A little Engineer Test artifact - Charles Software test data packet capture analysis artifact Test artifact - Fiddler Learn to fiddle , Learn not to stand upside down and eat , Rarefied ! Test artifact - Jmeter Not just a performance test artifact , It can also be used to build a lightweight interface automation testing framework . RobotFrameWork Python Automatic test tool realized , This chapter only introduces UI Automation part . Java Realization UI automation Document written in 2016 year ,Java Realized UI automation , It still has reference significance . MonkeyRunner There are not many application scenarios for this tool at present , The document has been deleted , Only for the sake of good typesetting .

List of articles
Introduction background
In writing blog appium At the time of the case , The following scene appears : When passed python Script
Realization appium Of APP In the end automation scenario , After starting the tested app After that ,APP Flash back after startup . as follows :


Abnormal analysis
Try this to analyze the error log , To no avail .
Try to find previous cases on the Internet , To no avail .
… Too many fruitless , And waste time .
There's a big guy to mention something , Probably because app Safety reinforcement of , After all appium 、selenium Plus the simulator , This is a conventional reptile crawl app operation …
so… Forget it , Don't digress , Keep going .
Finally, look at the startup parameters of the script , as follows :
# Launch parameters
desired_caps = {
} # Definition desired_caps Variable , Used to assign a lot of startup information
desired_caps['platformName'] = 'Android' # Equipment name 、 System is "Android"
desired_caps['platformVersion'] = '7.1.2' # Here is the setup center of the night God simulator to view the Android version "7.1.2" , Later, I will tell you how to switch versions
desired_caps['deviceName'] = '127.0.0.1:62001' # If it is a real machine, fill in the equipment name ; Because we use simulators , Fill in IP Port number
desired_caps['appPackage'] = 'com.baidu.searchbox' # APP The package name ; Here we use the address book
desired_caps['appActivity'] = 'com.baidu.searchbox.SplashActivity' # The name of the launched interface ( Or the startup name , The default is "." At the beginning )
desired_caps['automationName']='UiAutomator1'
About the sixth and seventh lines : This is a required parameter for the startup parameter , If we log out these two lines of parameters , Then start it manually in the simulator app , Is it possible to bypass this error reporting problem when running scripts ?
The operation results are as follows :

Solution
This solution is not so friendly , After all, he needs to start it manually app , Instead of starting through a script app. It seems very stupid , It can only be regarded as a bad way . Later, if I find a solution, I will update .
If any boss knows how to solve this problem , Please give me some advice .
边栏推荐
- Day-14 common APIs
- [crawler] avoid script detection when using selenium
- Leetcode brush question: binary tree 24 (the nearest common ancestor of binary tree)
- 免费手机号码归属地API查询接口
- Users, groups, and permissions
- Visual stdio 2017 about the environment configuration of opencv4.1
- ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
- 认养一头牛冲刺A股:拟募资18.5亿 徐晓波持股近40%
- 人均瑞数系列,瑞数 4 代 JS 逆向分析
- 怎样重置火狐浏览器
猜你喜欢
Leetcode brush question: binary tree 24 (the nearest common ancestor of binary tree)
.Net下极限生产力之efcore分表分库全自动化迁移CodeFirst
Day-16 set
【学习笔记】AGC010
Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
飞桨EasyDL实操范例:工业零件划痕自动识别
高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
2022 examination questions and online simulation examination for safety production management personnel of hazardous chemical production units
Star Enterprise Purdue technology layoffs: Tencent Sequoia was a shareholder who raised more than 1billion
处理链中断后如何继续/子链出错removed from scheduling
随机推荐
MySQL importing SQL files and common commands
处理链中断后如何继续/子链出错removed from scheduling
PHP calls the pure IP database to return the specific address
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
【学习笔记】AGC010
在字符串中查找id值MySQL
Adopt a cow to sprint A shares: it plans to raise 1.85 billion yuan, and Xu Xiaobo holds nearly 40%
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
regular expression
聊聊Redis缓存4种集群方案、及优缺点对比
Day26 IP query items
【从 0 开始学微服务】【03】初探微服务架构
Leetcode question brushing: binary tree 26 (insertion operation in binary search tree)
Leetcode brush questions: binary tree 19 (merge binary tree)
博文推荐|Apache Pulsar 跨地域复制方案选型实践
【无标题】
Lingyunguang of Dachen and Xiaomi investment is listed: the market value is 15.3 billion, and the machine is implanted into the eyes and brain
HZOJ #235. 递归实现指数型枚举
Cmu15445 (fall 2019) project 2 - hash table details