当前位置:网站首页>Automated testing: robot framework is a practical skill that 90% of people want to know
Automated testing: robot framework is a practical skill that 90% of people want to know
2022-07-07 23:51:00 【Little brother said test】

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 + 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 described as automated testing A must 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 , by Add header definitions to 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 about Add header definition ?
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 , You can follow the author's continuous updates
If this article helps you , Or if there's some inspiration , Give me a favor 、 Looking at 、 forward 、 Collection , Your support is the biggest driving force for me to persevere !
A little help
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 …….

边栏推荐
- P1067 [noip2009 popularity group] polynomial output (difficult, pit)
- AITM3.0005 烟雾毒性测试
- One click installation with fishros in blue bridge ROS
- 【汇总】看过的一些Panel与视频
- Arbre binaire équilibré [Arbre AVL] - Insérer et supprimer
- 2022.7.7-----leetcode.648
- archery安装测试
- Archery installation test
- The file format and extension of XLS do not match
- Reverse output three digit and arithmetic sequence
猜你喜欢

神奇快速幂

SQL connection problem after downloading (2)

Ora-02437 failed to verify the primary key violation

平衡二叉樹【AVL樹】——插入、删除

Uic564-2 Appendix 4 - flame retardant fire test: flame diffusion

Magic fast power

Traduction gratuite en un clic de plus de 300 pages de documents PDF
![Balanced binary tree [AVL tree] - insert, delete](/img/1f/cd38b7c6f00f2b3e85d4560181a9d2.png)
Balanced binary tree [AVL tree] - insert, delete

【路径规划】使用垂距限值法与贝塞尔优化A星路径
![Binary sort tree [BST] - create, find, delete, output](/img/e4/a950607f8b76bc7f8d56063dd72126.png)
Binary sort tree [BST] - create, find, delete, output
随机推荐
archery安装测试
postgres timestamp转人眼时间字符串或者毫秒值
MySQL Architecture
95. (cesium chapter) cesium dynamic monomer-3d building (building)
Basic learning of SQL Server -- creating databases and tables with code
At the age of 35, I made a decision to face unemployment
95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
C - linear table
Laser slam learning (2d/3d, partial practice)
2022.7.7-----leetcode. six hundred and forty-eight
Flash download setup
平衡二叉树【AVL树】——插入、删除
数据湖(十五):Spark与Iceberg整合写操作
SAP HR family member information
FFA and ICGA angiography
机器人(自动化)等专业课程创新的结果
数据库面试题+解析
HB 5469 combustion test method for non-metallic materials in civil aircraft cabin
HDU - 1260 Tickets(线性DP)
企业应用需求导向开发之人力部门,员工考勤记录和实发工资业务程序案例