当前位置:网站首页>How to transform functional testing into automated testing?
How to transform functional testing into automated testing?
2022-07-06 14:44:00 【Programming simplicity】
One 、 Before learning automation , You need to know what automated testing is ?
Automated testing is the process of transforming human test situations into machine execution . As a general rule , After test case design , The tester tests step by step according to the rules described in the test case , The act of getting test results and expected results . In the process here , In order to better save manpower 、 Time or hardware resources , promote Test efficiency , The basic concept of automated testing is added .
Two 、 Automated testing how to learn , What are the categories of automated testing
1. Categories of automated tests
What can be automated ? Actually a lot of , But it's usually easy to misinterpret this problem .
There are two main categories , Functional and non functional :
· Functionality : Test the specific business application of the software .
· Non functional : Other requirements for testing software ( Such as performance , Security , Data storage, etc ).
Performance testing mainly uses testing tools ,Loadrunner、Jmeter etc. , Stress testing software 、 The load test 、 Strength test , Because it can't be replaced by hand , Therefore, it must be automated . Automatic function test : Including unit tests 、 The interface test 、UI test . Mainly writing code 、 Script , Let the software run automatically , Find a flaw , Replace part of the manual test . But usually only large projects need to be automated , Automated testing is not recommended for small and medium-sized projects . At present, enterprises have more and more requirements for automated testing . Testers want better development in the future , We need to master automation technology to increase our competitiveness .
2. The learning circuit of automated testing
Get the performance 、 automated testing , Acquire the !( I am also in this period, but I belong to the group with relatively shallow experience , That's why 20k about )
Let's start with performance testing , There are many misunderstandings and pain points in the industry :
· It just doesn't work , Unable to provide R & D and operation and maintenance personnel with implementation suggestions
· Can't locate the problem , Lack of clear logic and data to prove value
· Performance testing tools ≠ Performance testing
· Performance testing technology system is backward (loadrunner), Need to embrace open source software
If you want to solve this problem , That's how you have to learn performance testing :
Basic concept and process of performance testing : FAQ analysis 、 Popular special tools 、 Scheme design performance test tool :jmeter Tool use 、 actual combat ;jmeter multi-protocol 、 Expand and customize ; Distributed pressure measurement and task scheduling ; Performance monitoring : Performance monitoring system and monitoring data acquisition performance implementation : Distributed service pressure measurement , Scene design 、 Scene execution ; Correlation analysis of test results ,TPS、 response time 、 Thread correlation analysis , Stress and resource utilization correlation analysis performance analysis and reporting :jvm Debugging and system debugging ; Performance bottleneck analysis .
Performance testing you can get to this level ,15k That's all right , If you can grasp the following automated test learning content , That would have a direct impact on the monthly salary 25k!
Get it done Python perhaps Java Language , It is suggested to start from Python Starting with , Study first Python Basic grammar of .
web End of the automation test :selenium install 、 Recording 、 Handle ;web Control 、JavaScript Script 、PO Pattern ; Mobile APP automated testing :appium Use 、 Recording 、 Element positioning method ;APP Control positioning 、 Interaction , Parameterized use cases ;appium Problem location analysis 、 Source code analysis 、 Secondary packaging ; Automatic test of server interface : Interface automation test framework request; Interface request construction 、 Assertion ;json/xml request 、 Response assertion ;headcookie Handle 、 Certification system .
3、 ... and 、 Automated test learning resources
· Interface automation testing
There are usually two ways to implement interface testing , One is realized by special tools ; The other is implemented by code , Special tools do more debugging , Most Internet companies do interface testing through code . Test of special tools , Usually easy to use , in the light of “0” For basic people , It is the first choice for getting started , The amount of code is limited , As long as you are familiar with the test process , Can skillfully use special tools to complete basic interface testing , But poor flexibility , The degree of automation is not as high as code , Common interface testing tools on the market are postman、Jmeter etc. . Code implementation , Mainly through python.
·web automated testing
web Automated testing is mainly implemented through code . For example, common applications are :Python/Java+selenium. First , You still need to be proficient in a language , Very proficient in using at least one programming language . On the other hand , Need to learn web Test process steps , Because it is based on the default manual operation of the page , Therefore, it is necessary to have a certain foundation for page composition , for example :HTML+JavaScript+CSS, Understand the positioning of page elements , And the use of common positioning methods . If there is a foundation for interface automation , Study like that web Automation is relatively easy . also , Through some relatively complete projects to practice training , Only in this way can we learn and master web Automation skills , Through repeated project training, we can gradually achieve the ideal effect .
· Mobile automation test
Mobile automation testing is mainly realized through special tools and code . For example, common Python/Java+appium.
In addition to mastering a programming language, mobile automation , You also need to learn the process steps of mobile testing , Mobile basic functions and web The basic category of the end . But more need to test some non functional applications , Need to learn and use some mobile phone simulators ( Such as :mumu)、 Third party special tools ( Such as :GT Special tools )、adb command 、monkey Etc , Learn to use more special tools , And it needs to be used in conjunction with code , This requires a wider range of knowledge , Start with the use of special tools . in addition : The application of mobile terminal also needs to carry out exception test , For network problems in use 、 Design of abnormal scenarios such as information interruption , According to the scenes in the use of the mobile phone itself, combined with the actual project training and learning .
Four 、 ***
Generally speaking, automated testing is a broadening of testing ideas , Provides a test engineer with “ Tentacles ”, The situation can be regarded as a special tool , But in essence, automated testing is still a kind of idea .
By the way , In a narrow sense, automated testing refers to testing based on GUI Automated testing , And unit testing is like API test , Have you ever thought about how to do it by hand without any special tools ? Therefore, they naturally belong to the category of test automation .
The real advantage of automation is —— Work is easy to find : There's a test engineer ( It's not me ) Find an interesting phenomenon , Almost all the testing positions she applied for , Automation testing experience is needed in recruitment . But when she started working , I found that such companies are trying to do automated testing , But most of the results are not very . however , Even though she's involved in some cupping projects , But she can always pack this cup into a washing tool for the next interview .
Opportunity favors only those who are prepared , This is a society that relies on real skills . occasionally , The reason why you don't develop well , It's not because there's no opportunity , It's because you're not ready , Cause the opportunity to pass you by . If you want to learn , It's not too late to start , Instead of looking forward to the future , You just have to do your best , Leave the rest to time !
After reading this article , Believe in the following two things , It will also be helpful to your self-improvement :
1、 give the thumbs-up , Let more people see , At the same time, your recognition will encourage me to create more high-quality content .
2、 Make yourself stronger : Think , If you want to do it in the testing industry for a long time , Your work experience and testing skills are definitely not enough , You need to improve , You need to enrich your technology stack ! What are we waiting for? !
Last :【 Tutorials that may help you 】
This information , Do right 【 software test 】 For my friends, it should be more complete , This kind of learning materials also accompanied me through the most difficult journey , Hope it can help you too ! Everything should be done as soon as possible , Especially in the technology industry , We must improve our technical skills .
边栏推荐
- Fundamentals of digital circuits (I) number system and code system
- My first blog
- 2022华中杯数学建模思路
- 循环队列(C语言)
- Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]
- MySQL learning notes (stage 1)
- Intranet information collection of Intranet penetration (2)
- [pointer] find the value of the largest element in the two-dimensional array
- ES全文索引
- The four connection methods of JDBC are directly coded
猜你喜欢
内网渗透之内网信息收集(三)
《统计学》第八版贾俊平第十二章多元线性回归知识点总结及课后习题答案
《统计学》第八版贾俊平第六章统计量及抽样分布知识点总结及课后习题答案
数字电路基础(二)逻辑代数
Lintcode logo queries the two nearest saplings
How does SQLite count the data that meets another condition under the data that has been classified once
数字电路基础(四) 数据分配器、数据选择器和数值比较器
1. Payment system
New version of postman flows [introductory teaching chapter 01 send request]
王爽汇编语言详细学习笔记二:寄存器
随机推荐
High concurrency programming series: 6 steps of JVM performance tuning and detailed explanation of key tuning parameters
[issue 18] share a Netease go experience
Wu Enda's latest interview! Data centric reasons
flask实现强制登陆
函数:求1-1/2+1/3-1/4+1/5-1/6+1/7-…+1/n
Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]
{1,2,3,2,5} duplicate checking problem
Statistics 8th Edition Jia Junping Chapter 5 probability and probability distribution
“Hello IC World”
函数:求两个正数的最大公约数和最小公倍
浙大版《C语言程序设计实验与习题指导(第3版)》题目集
Mathematical modeling idea of 2022 central China Cup
Pointer -- output all characters in the string in reverse order
数据库多表链接的查询方式
SystemVerilog discusses loop loop structure and built-in loop variable I
我的第一篇博客
关于交换a和b的值的四种方法
Fundamentals of digital circuit (IV) data distributor, data selector and numerical comparator
About the garbled code problem of superstar script
Fundamentals of digital circuits (II) logic algebra