当前位置:网站首页>Software testing - what are the automated testing frameworks?
Software testing - what are the automated testing frameworks?
2022-07-26 19:51:00 【Software testing fange】
Catalog
Preface
Commonly used in automated testing Python What are the frameworks ? Common frameworks are Robot Framework、Pytest、UnitTest/PyUnit、Behave、Lettuce.Pytest、Robot Framework and UnitTest Mainly used for function and unit testing ,Lettuce and Behave Only for behavior driven testing .
One 、Robot Framework
Python One of the testing frameworks ,Robot Framework Used in test drive (test-driven) Type development and acceptance . Although it was Python Developed from , But it can also be based on .Net Of IronPython And based on Java Of Jython Up operation . As a Python frame ,Robot It's compatible with things like Windows、MacOS、 as well as Linux Such as platform .
In the use of Robot Framework(RF) Before , You need to install Python 2.7.14 And above . Recommended Python 3.6.4, To ensure that appropriate comments can be added to the code snippet , And be able to track program changes . It also needs to be installed Python Package manager --pip.
Two 、Pytest
Suitable for a variety of software testing Pytest, Is another Python Type of automated testing framework . With its open source and easy to learn characteristics , The tool is often QA( Quality analysis ) The team 、 The development team 、 Individual team 、 And all kinds of open source projects . Whereas Pytest have “ Assertion rewrite (assert rewriting)” And so on , Many large Internet applications , Such as Dropbox and Mozilla, All of them have been mentioned from the following unittest(Pyunit) Switch to the Pytest above .
Except for the basic Python knowledge , Users don't need more technical reserves . in addition , Users only need a test device with command line interface , And it's installed Python Package manager 、 And for development IDE Tools .
3、 ... and 、UnitTest/PyUnit
UnitTest/PyUnit A standardized for unit testing Python Class automation testing framework . Base class TestCase Provides various assertion methods 、 And all the cleaning and setting routines . therefore ,TestCase Each method in a subclass is represented by “test” As a noun prefix , To identify that they can be run as test cases . Users can use load Methods and TestSuite Class 、 And load various tests .
Can be used in combination , To build a custom test runner . As we use Junit To test Selenium like that ,UnitTest It also uses UnitTest-sml-reporting、 And can generate all kinds of XML Types of reports . because UnitTest Default used Python, So we don't need any preconditions . In addition to having Python Basic knowledge of framework , You can also install additional pip、 And for development IDE Tools .
Four 、Behave
Behavior driven development is a method based on agile software development . It encourages developers to 、 Business participants and QA personnel , Cooperation among the three .Python The test framework Behave Allow the team to avoid complex situations , To carry out BDD test . In essence, the framework is similar to SpecFlow and Cucumber be similar , Often used to perform automated tests . Users can write test cases in easy to read language , And can be pasted into the code during its execution . and , The established codes of conduct and procedures , It can also be reused in other test scenarios .
Anything with Python People with basic knowledge can use Behave. Other prerequisites include : Install first Python 2.7.14 And above . adopt Python Package manager or pip Come and Behave Collaboration . Most developers will choose Pycharm As development environment , Of course, you can also choose other IDE Tools .
5、 ... and 、Lettuce
Lettuce It's another one based on Cucumber and Python Behavior driven class automation tools .Lettuce Focus on common tasks with behavior driven development features . It's not only easy to use , And it can make the whole testing process smoother 、 Even more interesting . Install with IDE Of Python 2.7.14、 And above . Of course , You can also use the Pycharm Or any other IDE Tools . meanwhile , You also need to install Python Package manager .
Here's a copy Excellent learning resources , For doing 【 software test 】 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 !
I can send all the above software test data by private mail Free access
Here's another one 216 Page software testing engineer interview guide document information . And the corresponding video learning tutorial is free to share !, The information includes basic knowledge 、Linux necessary 、Shell、 The principles of the Internet 、Mysql database 、 Special topic of bag capturing tools 、 Interface testing tool 、 Test advanced -Python Programming 、Web automated testing 、APP automated testing 、 Interface automation testing 、 Testing advanced continuous integration 、 Test architecture development test framework 、 Performance testing 、 Safety test, etc. .
Learn not to fight alone , It's best to keep warm , Achieve each other and grow together , The effect of mass effect is very powerful , Let's learn together , Punch in together , Will be more motivated to learn , And you can stick to it .
Conclusion
Welcome to leave a message , Or follow my column and communicate with me .
边栏推荐
- 基于ABP实现DDD--领域逻辑和应用逻辑
- Redis介绍
- Is it safe for CSCI qiniu school to open an account? What is qiniu for
- Software process that testers must know
- Leetcode daily practice - 27. Remove elements
- iPhone开发 数据持久化总结(终结篇)—5种数据持久化方法对比
- How to adjust the abnormal win11 USB drive to normal?
- Linux 定时备份数据库并删除 N 天以前的数据
- Redis introduction
- 【OBS】Dropped Frames And General Connection Issues
猜你喜欢
![Design of intelligent weighing system based on Huawei cloud IOT (STM32) [II] there is information at the end](/img/55/ca86fd1a53eb61efc70fead08ff0ad.png)
Design of intelligent weighing system based on Huawei cloud IOT (STM32) [II] there is information at the end

LeetCode每日一练 —— 26. 删除有序数组中的重复项

DOM案例:10秒倒计时-写跳转页面相关的知识

jar文件 反编译(IDEA环境)

论文精读:YOLOV2——YOLO9000:Better, Faster, Stronger

Pychart loads CONDA to create a pytorch virtual environment and reports an error. It is normal on the CONDA command line

How to compress the traffic consumption of APP under mobile network in IM development

How to write the test case of mobile app? What are the mobile app test points?

J1: why is redis so fast + basic structure

Linear algebra Chapter 4 linear equations
随机推荐
Pads draw 2.54mm row needle
Svn - detailed documentation
Leetcode daily practice - 88. Merge two ordered arrays
Bug 反馈:同步失败
Uiobject2 of uiautomator2 common classes
What is federated graph machine learning? A summary of the latest "federal map machine learning: concepts, techniques, and Applications" at the University of Virginia
win11 edge怎么卸载?win11 edge浏览器彻底卸载的方法教程
Fair lock process of reentrantlock learning
Live video source code to achieve the advertising effect of scrolling up and down
Summary of iPhone development data persistence (final) - Comparison of five data persistence methods
[PHP] common header definitions
亲力亲为的思考
IJCAI2022开会了! Brescia等《证据推理和学习》教程,阐述其最新进展,附96页Slides
Intensive reading of the paper: yolov2 - yolo9000: better, faster, stronger
How to compress the traffic consumption of APP under mobile network in IM development
Openstack virtual machine network card is renamed cirename0
LeetCode每日一练 —— 27. 移除元素
Save 50% of the cost JD cloud releases a new generation of hybrid CDN products
数据库设计三大范式
CIO guide to business change