当前位置:网站首页>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 .
边栏推荐
- Cuda11.2 corresponding pytorch installation
- 十大排序详解
- Leetcode daily practice - 26. Delete duplicates in an ordered array
- There are six ways to help you deal with the simpledateformat class, which is not a thread safety problem
- The authentication type 10 is not supported
- Software process that testers must know
- 线性代数第4章线性方程组
- Redis6
- 学习Muduo中ChatRoom实现的各种细节和思考
- Redis introduction
猜你喜欢
随机推荐
Volatile keyword of JVM memory model
After working for 13 years, I have a little software testing experience and feelings
手机app测试用例怎么写?手机app测试点有哪些?
Analysis of interface testing
YOLO V1详解
Ijcai2022 meeting! Brescia et al. Tutorial of evidential reasoning and learning, describing its latest progress, with 96 slides attached
查看容器的几种方式
Leetcode daily practice - 88. Merge two ordered arrays
Save 50% of the cost JD cloud releases a new generation of hybrid CDN products
[internship experience] date verification
Software process that testers must know
Redis6
EN 1504-6 products for protection and repair of concrete structures - reinforcement anchorage - CE certification
Selenium + case of Web Automation Framework
中天钢铁在 GPS、 AIS 调度中使用 TDengine
LeetCode每日一练 —— 26. 删除有序数组中的重复项
基于ABP实现DDD--领域逻辑和应用逻辑
Win11 U盘驱动异常怎么调整为正常?
Principle analysis and source code interpretation of service discovery
iPhone开发 数据持久化总结(终结篇)—5种数据持久化方法对比









