Contents: Guide
-
- foreword
- 1. From entry to mastery of Python programming
- 2. Interface automation project actual combat
- 3. Actual Combat of Web Automation Project
- 4. Actual Combat of App Automation Project
- 5. Resume of first-tier manufacturers
- 6. Test and develop DevOps system
- 7. Commonly used automated testing tools
- Eight, JMeter performance test
- 9. Summary (little surprise at the end)
foreword
What is automated testing?
It is a practice of transforming human testing behavior on software into testing behavior performed by machines.
For example, web automation testing, simulating people to operate the software interface, frees people from simple and repetitive labor. The essence is to use code to test another piece of code, which is a kind of software development work. Test objects are updated for changes, therefore, there are additional maintenance costs.
What are the classifications of automated testing?
Classification by test purpose:
functional automation test; performance automation test; classification by test object;
Web application testing:
APP testing; interface testing; unit testing
Why do you need automated testing?
It can replace a large number of manual and mechanical repetitive operations, and test engineers can spend more time on use case design and new function testing
It can greatly improve the efficiency of regression testing, which is very suitable for the agile development process;
it can make better use of unattended time to execute tests more frequently;
it can efficiently implement some types of tests that cannot be completed or costly by manual testing, such as: 7*24 hours of continuous system stability testing and stress testing of high-concurrency scenarios;
it can ensure that each operation is consistent and repeatable, and will not be affected by human emotional factors;
Automated testing of Postman interface
1. Create a new collection
to classify the interfaces to be tested in a unified way.
2. Create a new interface
The following is what I added
3. Fill in the automated test script.
For example, you need to test several points
with HTTP status code 200;
the returned json code is 0;
the interface return time is not less than 1000 milliseconds;
The script is as follows
//查看httpCode码
tests["接口状态码200"] = responseCode.code === 200;
//判断请求时间
tests["返回时间小于1000毫秒"] = responseTime < 1000;
//返回body转json
var data = JSON.parse(responseBody);
//检查json数据
tests['code码必须为0']= data.code==0
The test results are as follows
4. Enter all the interfaces
and then I will perform this test on all the interfaces, and enter these interfaces, as follows
5. Execute the automated test
and click the Run button of the collection
The following interface pops up, you can fill in the corresponding parameters, here I use the default
Click Run, the execution results are as follows
The following is the most complete software test engineer learning knowledge architecture system diagram in 2023 that I compiled |
1. From entry to mastery of Python programming
2. Interface automation project actual combat
3. Actual Combat of Web Automation Project
4. Actual Combat of App Automation Project
5. Resume of first-tier manufacturers
6. Test and develop DevOps system
7. Commonly used automated testing tools
Eight, JMeter performance test
9. Summary (little surprise at the end)
No matter how harsh the wind and rain, the faith in my heart will never go out. The journey of struggle may be lonely, but every step is one step closer to success. Go forward bravely, persevere, only hard work can create infinite possibilities. Believe in yourself, bravely chase your dreams, you will be able to write your own glorious chapter!
Embark on a journey with faith, perseverance, and courage. No matter where you are, you must stick to your original intention and pursue excellence. The power of struggle can travel through time and turn dreams into reality.
Difficulty is the trial of life, and struggle is the tempering of the soul. No matter how tortuous the road ahead is, as long as you have the light of your dreams in your heart, you can go through the darkness and pursue the light. Believe in yourself, keep working hard, every struggle will be one step closer to success!