当前位置:网站首页>What are some good open source automation testing frameworks to recommend?
What are some good open source automation testing frameworks to recommend?
2022-08-09 19:58:00 【Code Xiaoyi】
2022年后,What are some good open source automation testing frameworks to recommend?In order to let everyone read the article without being confused,Articles I will be around3个方面来阐述:
1、Introduction to common automated testing frameworks
2、JavaAn automated testing framework under the language
3、PythonAn automated testing framework under the language
With the massive increase in computer technicians,Testing by writing code becomes a more efficient way to test,As a result, the automated testing scheme based on computer language was born,Of course, the test engineer needs to have the ability to code.
Today we combine the current mainstream programming languages,The respective automated testing frameworks in the three environments.
一、Introduction to common automated testing frameworks
Test frameworks are not set in stone,In fact it is like building blocks,It is composed of tools with various functions,Can be freely combined according to needs.Here are a few common basic tools:
1、Jenkins(可以支持java、pythonprojects in most languages)
简介:Jenkins是一个基于java语言开发的,Can replace cumbersome manual integration,Continuous integration tools for monitoring ongoing repetitive work,Simply put, it is a timed task that can be set,Tools to automate execution and report results.
优点:解放双手,极大地提高了效率,jenkinsOften used to automate various tasks,包括构建、测试和部署软件.
官方下载地址:Jenkins download and deployment
2、Selenium(is a sim pairwebA testing tool library for end page operations)
简介:Selenium通常需要搭配chromedriver一起使用,chromedriver是Chrome浏览器驱动,是selenium The module is used to simulate a file necessary to open Google Chrome.
优点:解放双手,Selenium+chromedriver能够驱动浏览器模拟人的操作,如鼠标单击、键盘输入等,At the same time, it can also realize the acquisition and automatic download of the target content.
官方下载地址:Downloads | Selenium
3、Appium(A test tool library that simulates human operations on the mobile terminal)
简介:appium是一个合成词,分别由“application”the first three letters and “Selenium”The last three letters of ,它的作用与selenium 其实一样的.appium 类库封装了标准 Selenium 客户端类库.
优点:解放双手,Operations such as multi-touch gestures and screen orientation can be implemented.It can be supported simultaneously across platformsAndroid、iOS.支持多种语言,java、python、php、Ruby等等.
下载地址:Appium: Mobile App Automation Made Awesome.
二、JavaAn automated testing framework under the language
1、Maven(JavaTools for project building and management)
简介:MavenOne of the most important functions is to facilitate the management of binary libraries and dependencies
打个比方,have a worker,Carry all your tools with you wherever you go to work,Not sure when it will be used,后来,He has a magic list,It has the name of his tool written on it,No more heavy tools to go out to work,Just open the magic list,The tools you need come automatically.
而mavenFor programmers it's that magic list,It will help us maintain various dependencies required for programming.
优点:Maven 在美国是一个口语化的词语,代表专家、内行的意思,It is roughly equivalent to the old cannon in Beijing dialect.There are old guns in hand,Don't worry about work.
2、Testng(A one-stop testing framework that simplifies coding)
Testng简介:
Test methods are [email protected]的java方法
将测试信息添加到testng.xml文件或者build.xml
可以在suite/test/test methodThree levels to execute the test method
Testng优点:
简化代码编写,提高测试效率.
3、OkHttp
简介:OkHttpIt is a popular lightweight network request framework,易用性,复用性都比较好.一般使用时,Better to repackage it,to meet the needs of specific scenarios.
优点:拿来即用,No need to care about the underlying implementation,简单易上手.
4、Finally, according to the actual scene,Combine the individual tools you need,Get an automated testing framework
java自动化接口测试:jenkins+maven+testng+okhttp
java自动化web测试:jenkins+maven+testng+selinum
java自动化app测试:jenkins+maven+testng+appium
三、PythonTools in the locale
1、Pytest(Very mature full-featuredpython测试框架)
简介:Similar test framework tools existPython原生的unittest,但Pytest完全兼容Unitest,And contains a very rich plug-in,Can support simple unit testing and complex functional testing and interface automation testing.
优点:插件丰富,可以很好地和jenkins集成.
2、Requests(用于发送HTTP请求的第三方库)
简介:Requests是用于发送HTTP请求的第三方库.We do not need to implement the low-level details when implementing the request,只需要引入一个Requests 就可以了.类似的工具有很多,比如urllib、httplib等.
优点:requests使用简单、强大高效.
3、Allure(一款开源的,A tool for presenting test results)
简介:Pytest可以生成html格式的报告,但是Allure不仅可以与PytestDo integration to generate beautiful and readable test reports,At the same time can be integrated intoJenkins,所以推荐使用.
优点:Beautiful reports can be generated,并集成到jenkins.
4、Pytest、Requests、Allure、JenkinsThe relationship between other tools is shown in the figure below
Combine common tools,The corresponding automated testing frameworks under different automated testing scenarios are as follows:
Python自动化接口测试:jenkins+pytest+requests+allure
Python自动化Web测试:jenkins+pytest+selinum+allure
Python自动化App测试:jenkins+pytest+appium+allure
四、Summary of automated testing framework learning
Automated testing is the dividing line for test engineers from beginner to advanced,It is also a must-have skill for entering a large factory.
Several automated testing frameworks have been introduced above,如果是初学者,You may have a big head:I can't learn this framework at once
别慌,其实Interface automation testing is currently mainly used in the industry,Web及AppAutomated tests are used as an aid,So you can spend energy to master the interface automation testing framework first.
As for the interface automation testing framework 选择Java的【Jenkins+Maven+Testng+Okhttp】还是Python的【Jenkins+Pytest+Requests+Allure】You can choose according to your own habits and the company's locale
最后感谢每一个认真阅读我文章的人,下面这个网盘链接也是我费了几天时间整理的非常全面的,希望也能帮助到有需要的你!

这些资料,对于想转行做【软件测试】的朋友来说应该是最全面最完整的备战仓库,这个仓库也陪伴我走过了最艰难的路程,希望也能帮助到你!凡事要趁早,特别是技术行业,一定要提升技术功底.希望对大家有所帮助……
如果你不想一个人野蛮生长,找不到系统的资料,问题得不到帮助,坚持几天便放弃的感受的话,可以点击下方小卡片加入我们群,大家可以一起讨论交流,里面会有各种软件测试资料和技术交流.
敲字不易,如果此文章对你有帮助的话,点个赞收个藏来个关注,给作者一个鼓励.也方便你下次能够快速查找.
自学推荐B站视频:
零基础转行软件测试:38天自学完软件测试,拿到了字节的测试岗offer,堪称B站最好的视频!
自动化测试进阶:已上岸华为,涨薪20K,2022最适合自学的python自动化测试教程,自己花16800买的,无偿分享

边栏推荐
猜你喜欢
随机推荐
The strongest distributed lock tool: Redisson
[SUCTF 2019]CheckIn
WinForm(四)一种实现登录的方式
艺术与科技的狂欢,云端XR支撑阿那亚2022砂之盒沉浸艺术季
.NET 6 study notes (4) - Solve the Nullable warning in VS2022
如何在 PC 机上测试移动端的网页?
Can't install the Vmware virtual machine on the Ark Kai server?
In-depth understanding of MySQL common data types and data type selection optimization
最新!2022版新员工基础安全知识教育培训PPT,企业拿去直接用
有什么好的开源自动化测试框架可以推荐?
字符设备的注册
The difference between approach and method
测试开发是什么,为什么现在这么吃香?
在 ASP.NET Core 中上传文件
Substrate 源码更新导读八月第1周: 新版事务化存储层启用默认模式, Polkadot v0.9.27发布
Apache Doris 社区 PMC 杨政国:开源项目如何在自身和社区的需求中取得平衡?
50道Redis面试题,来看看你会多少?
进程的两种创建方式,join方法,进程间的数据隔离,队列,进程间的通信IPC机制,生产者消费者模型,守护进程,僵尸进程,孤儿进程,互斥锁
基于ABP和Magicodes实现Excel导出操作
WPF效果第一百九十四篇之伸缩面板









