当前位置:网站首页>RobotFramework入门(二)appUI自动化之app启动
RobotFramework入门(二)appUI自动化之app启动
2022-07-06 02:35:00 【Makasa】
前言
本章主要讲述appUI自动化的一个小示例
ps:这里虽然是一个小示例,但如果你要通过robot去做appUI自动化,思路都是一样的,可以自行搜索关键字组合去使用
其实正常情况下,我们会直接使用代码去实现自动化,而不是在ride上实行哈,等之后我再讲述robotframework框架的搭建
一、创建测试用例
- 整个用例创建在之前的blog说过了,在这里不做过多讲述,详细可以看下如下链接哈~
https://blog.csdn.net/Makasa/article/details/125615199?spm=1001.2014.3001.5502
二、app启动步骤
1、下载robotframework-AppiumLibrary
pip install robotframework-AppiumLibrary
2、在测试套件中导包
- 注意:导包名称需要严格区分大小写,下载完包后,记得重新导一次
- 红色:则表示导包失败,黑色:则导包成功
如果显示红色,你不知道什么原因的话,可以打开Tools–View RIDE Log看下日志具体报什么错
3、UI用例编写
- 关键字:Open Application 启动应用
- 关于这些参数具体adb命令获取方法,我之前在介绍appium的时候已经讲述过了的
详细请看:https://blog.csdn.net/Makasa/article/details/121287286
参数1、Appium所在的url路径(这个固定不变):http://localhost:4723/wd/hub
参数2、platformName:被测平台名称 Android/ios
参数3、platformVersion :版本
参数4、deviceName:设备名称
参数5、appPackage:测试app的包名
参数6、appActivity:测试app的activity名
如果你不知道具体关键字如何使用?可以按快捷键F5,可以进行搜索
4、运行用例查看结果
边栏推荐
- 机器学习训练与参数优化的一般过程 (讨论)
- 数据准备工作
- GifCam v7.0 极简GIF动画录制工具中文单文件版
- Compact lidar global and Chinese markets 2022-2028: technology, participants, trends, market size and share Research Report
- Lecture 4 of Data Engineering Series: sample engineering of data centric AI
- MySQL winter vacation self-study 2022 11 (6)
- 微软语音合成助手 v1.3 文本转语音工具,真实语音AI生成器
- 力扣今日題-729. 我的日程安排錶 I
- Global and Chinese markets of general purpose centrifuges 2022-2028: Research Report on technology, participants, trends, market size and share
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
猜你喜欢
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
2022年版图解网络PDF
在线怎么生成富文本
剑指 Offer 29. 顺时针打印矩阵
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 7
力扣今日题-729. 我的日程安排表 I
Minecraft 1.16.5 biochemical 8 module version 2.0 storybook + more guns
2022 China eye Expo, Shandong vision prevention and control exhibition, myopia, China myopia correction Exhibition
Black high-end responsive website dream weaving template (adaptive mobile terminal)
爬虫(9) - Scrapy框架(1) | Scrapy 异步网络爬虫框架
随机推荐
MySQL winter vacation self-study 2022 11 (6)
Bigder:34/100 面试感觉挺好的,没有收到录取
Follow the mouse's angle and keyboard events
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
剑指 Offer 29. 顺时针打印矩阵
[Digital IC manual tearing code] Verilog asynchronous reset synchronous release | topic | principle | design | simulation
How to check the lock information in gbase 8C database?
纯Qt版中国象棋:实现双人对战、人机对战及网络对战
Yyds dry inventory comparison of several database storage engines
更换gcc版本后,编译出现make[1]: cc: Command not found
Minecraft 1.16.5 biochemical 8 module version 2.0 storybook + more guns
Zero basic self-study STM32 wildfire review of GPIO use absolute address to operate GPIO
2022 edition illustrated network pdf
Global and Chinese market of commercial cheese crushers 2022-2028: Research Report on technology, participants, trends, market size and share
Differences and usage scenarios between TCP and UDP
Qt发布exe软件及修改exe应用程序图标
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 15
Is there a case where sqlcdc monitors multiple tables and then associates them to sink to another table? All operations in MySQL
有沒有sqlcdc監控多張錶 再關聯後 sink到另外一張錶的案例啊?全部在 mysql中操作
[untitled] a query SQL execution process in the database