当前位置:网站首页>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 .
边栏推荐
- MySQL learning notes (stage 1)
- Sword finger offer 23 - print binary tree from top to bottom
- What is an index in MySQL? What kinds of indexes are commonly used? Under what circumstances will the index fail?
- 《统计学》第八版贾俊平第四章总结及课后习题答案
- Login the system in the background, connect the database with JDBC, and do small case exercises
- 1.支付系统
- Function: calculates the number of uppercase letters in a string
- Numpy Quick Start Guide
- How does SQLite count the data that meets another condition under the data that has been classified once
- 《统计学》第八版贾俊平第十一章一元线性回归知识点总结及课后习题答案
猜你喜欢

Statistics 8th Edition Jia Junping Chapter 14 summary of index knowledge points and answers to exercises after class

1.支付系统

《统计学》第八版贾俊平第五章概率与概率分布

王爽汇编语言详细学习笔记二:寄存器

Wu Enda's latest interview! Data centric reasons

Login the system in the background, connect the database with JDBC, and do small case exercises

Get started with Matplotlib drawing

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

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

Statistics 8th Edition Jia Junping Chapter XIII Summary of knowledge points of time series analysis and prediction and answers to exercises after class
随机推荐
Based on authorized access, cross host, and permission allocation under sqlserver
浙大版《C语言程序设计实验与习题指导(第3版)》题目集
Matplotlib绘图快速入门
The difference between layer 3 switch and router
Pointers: maximum, minimum, and average
“Hello IC World”
Sentinel overall workflow
The common methods of servlet context, session and request objects and the scope of storing data in servlet.
C language learning summary (I) (under update)
Function: find 1-1/2+1/3-1/4+1/5-1/6+1/7-... +1/n
函数:用牛顿迭代法求方程的根
循环队列(C语言)
Realize applet payment function with applet cloud development (including source code)
函数:求方程的根
[pointer] octal to decimal
. Net6: develop modern 3D industrial software based on WPF (2)
《統計學》第八版賈俊平第七章知識點總結及課後習題答案
Lintcode logo queries the two nearest saplings
线程的实现方式总结
XSS (cross site scripting attack) for security interview