当前位置:网站首页>Automated testing: a practical skill that everyone wants to know about robot framework
Automated testing: a practical skill that everyone wants to know about robot framework
2022-07-07 17:53:00 【Two black】

1. background
Today's sharing is about Robot Framework During the use of the framework , A little-known but very practical trick , The reason why I wrote a separate article to share , Indeed, it is also the confusion encountered by many readers during the period , Today, the author will help you answer . Skill is very dry , Operation and short , Please don't blink .
2. Skill sharing
Robot Framework It is a famous and commonly used keyword in the industry + Data driven Dual core automated testing framework , Hereinafter referred to as RF frame , This framework is especially suitable for novice Automation , Very easy to master , It can be said to be an essential part of automated testing at home !
One of the reasons why it's easy to get started , Thanks to the RF The framework provides users with support similar to table syntax and editor , This is for traditional use Excel Pattern to write manual test cases , Simplicity is great . Automated test scripts can be developed quickly and easily through table syntax .
Similar to figure 1 :

In Figure 1 , Visible in RF In the frame , Support writing automated test scripts directly in class tables . In practice , In order to facilitate the separation of test data and test logic , It is often recommended to encapsulate the test logic into keywords , Test cases are only responsible for managing test data .( Of course, when implementing data-driven automated testing , Test data can also be put into external storage media )

And the tips shared today , That is how in Figure 2 , Add header definitions for test cases , Look at the effect , As shown in Figure 3 :

Add header definitions in test cases , Although the function is simple , But in the practice of automated testing for multi person teams , But it's very practical , Can play a good use case field annotation and auxiliary role . And this skill , Few people know .
How to add header definitions ?
Many readers think it too complicated , In fact, to achieve the above functions , The operation is very simple , Just need you to be able to type .
Specific operation mode :
If you are using RIDE Editor to write RF Automation script , Just switch to Text Edit Pattern , stay Test Case Columns can be added :

If you are using PyCharm perhaps VSCode, The increase method is similar , The operation position is shown in the red box below :

Many readers leave messages saying , In order to achieve this effect , It's been a few days but I haven't done it , how , Have you learned it now ? Is the simplicity subverting your imagination ! Okay , Today's sharing is here , More about RF The framework uses best practices , Interested readers , You can pay attention to me
Learning resource sharing
Finally, thank everyone who reads my article carefully , Watching the rise and attention of fans all the way , Reciprocity is always necessary , Although it's not very valuable , If you can use it, you can take it 
These materials , For those who want to advance 【 automated testing 】 For our friends, it should be the most comprehensive and complete war preparation warehouse , This warehouse also accompanied me through the most difficult journey , I hope it can help you ! Everything should be done as soon as possible , Especially in the technology industry , We must improve our technical skills . I hope that's helpful …….
Join my communication group below for free !
边栏推荐
- 【TPM2.0原理及应用指南】 12、13、14章
- 【深度学习】3分钟入门
- DatePickerDialog和trimepickerDialog
- Youth experience and career development
- 面试官:页面很卡的原因分析及解决方案?【测试面试题分享】
- Simple loading animation
- 带动画的列表选中js特效
- js拉下帷幕js特效显示层
- 《世界粮食安全和营养状况》报告发布:2021年全球饥饿人口增至8.28亿
- Ansible learning summary (9) -- ansible loop, condition judgment, trigger, processing failure and other task control use summary
猜你喜欢

【TPM2.0原理及应用指南】 9、10、11章
![[OKR target management] value analysis](/img/d9/1f0022d3aa34cc10f1151e181dd695.png)
[OKR target management] value analysis

原生js验证码

【4500字归纳总结】一名软件测试工程师需要掌握的技能大全
![[distributed theory] (II) distributed storage](/img/51/473a8f6a0d109277eab54d72156539.png)
[distributed theory] (II) distributed storage

Toast will display a simple prompt message on the program interface

物联网OTA技术介绍

Self made dataset in pytoch for dataset rewriting

第3章业务功能开发(用户登录)

Face recognition attendance system based on Baidu flying plasma platform (easydl)
随机推荐
手机app外卖订餐个人中心页面
[re understand the communication model] the application of reactor mode in redis and Kafka
mui侧边导航锚点定位js特效
Mysql 索引命中级别分析
运行yolo v5-5.0版本报错找不到SPPF错误,进行解决
Create dialog style windows with popupwindow
本周小贴士#140:常量:安全习语
自动化测试:Robot FrameWork框架大家都想知道的实用技巧
【可信计算】第十三次课:TPM扩展授权与密钥管理
第2章搭建CRM项目开发环境(搭建开发环境)
第1章CRM核心业务介绍
【分布式理论】(二)分布式存储
DatePickerDialog and trimepickerdialog
[deep learning] 3 minutes introduction
Functions and usage of viewswitch
Functions and usage of serachview
Function and usage of textswitch text switcher
漫画 | 宇宙第一 IDE 到底是谁?
textSwitch文本切换器的功能和用法
<代码随想录二刷>链表