当前位置:网站首页>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 .
边栏推荐
- [pointer] find the largest string
- 数字电路基础(四) 数据分配器、数据选择器和数值比较器
- Feature extraction and detection 14 plane object recognition
- Transplant hummingbird e203 core to Da Vinci pro35t [Jichuang xinlai risc-v Cup] (I)
- JVM memory model concept
- {1,2,3,2,5} duplicate checking problem
- 【指针】求二维数组中最大元素的值
- Intranet information collection of Intranet penetration (3)
- Pointer -- eliminate all numbers in the string
- Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]
猜你喜欢

循环队列(C语言)

Statistics, 8th Edition, Jia Junping, Chapter VIII, summary of knowledge points of hypothesis test and answers to exercises after class

JDBC看这篇就够了

数字电路基础(二)逻辑代数

JDBC read this article is enough

Quaternion -- basic concepts (Reprint)

Binary search tree concept

《统计学》第八版贾俊平第三章课后习题及答案总结

数字电路基础(一)数制与码制

Résumé des points de connaissance et des réponses aux exercices après la classe du chapitre 7 de Jia junping dans la huitième édition des statistiques
随机推荐
. Net6: develop modern 3D industrial software based on WPF (2)
Fundamentals of digital circuits (II) logic algebra
Chain team implementation (C language)
内网渗透之内网信息收集(三)
Fire! One day transferred to go engineer, not fire handstand sing Conquest (in serial)
《统计学》第八版贾俊平第十章方差分析知识点总结及课后习题答案
[pointer] counts the number of times one string appears in another string
MySQL learning notes (stage 1)
数字电路基础(三)编码器和译码器
Numpy Quick Start Guide
JDBC transactions, batch processing, and connection pooling (super detailed)
Statistics 8th Edition Jia Junping Chapter 14 summary of index knowledge points and answers to exercises after class
《统计学》第八版贾俊平第七章知识点总结及课后习题答案
[pointer] octal to decimal
Fundamentals of digital circuits (I) number system and code system
Statistics 8th Edition Jia Junping Chapter 3 after class exercises and answer summary
后台登录系统,JDBC连接数据库,做小案例练习
[pointer] use the insertion sorting method to arrange n numbers from small to large
函数:用牛顿迭代法求方程的根
Wang Shuang's detailed learning notes of assembly language II: registers