Program Life: Programmer's Growth, Do a Good Job in Testing



In most companies, after the programmers complete the functions, there will be students from the special testing department to conduct professional tests. In fact, many large companies did not have test posts in the early days. As the skills required for testing became more and more demanding, there were more test posts.

But I think even if the company has a test engineer, as a research and development staff, they must be able to test themselves. Understand some test thinking. Think about it, if in the team, every time you submit code, you have the most bugs. Isn’t your face dull?

I think the following points should be considered and exercised by every R&D personnel.

1. Thinking about abnormal situations. Under inertial thinking, we will always input according to the normal value when testing a certain function. Such as cash withdrawal function. We will test for a positive number. The abnormal situation is that if we enter a 0 or a negative number or non-number, how will the software respond? Does the front end have control? Whether the backend has control. It is correct only to control both.

2. Thinking about extreme abnormal situations, such as a weak network environment, will cause the request to fail, do I need to reconnect? What is the reconnection mechanism? Another example is that the input item is an array. Under normal circumstances, we will pass in an array. In the case of non-array, we must deal with extreme cases. For example, if a very large array is passed in, the program will freeze and crash, or how is it? This needs to be considered when writing code.

Three, do a good job of unit testing. Unit testing is used to test the correctness of a module, a function or a class. Generally we will run unit tests through program automation. If something goes wrong, we usually run a unit test first, and then we go to find the cause of the problem after it passes.

Fourth, do a functional test. After running the unit test, do the functional test. Because even if each independent module is normal, there are still many situations where problems will occur together. Every time you modify, you need to run the functions you have done yourself. Generally, functional tests are carried out in a real/test environment, and simulated data tests are not counted.

Fifth, you must have your own problem library, and put all the bugs and solutions you have encountered in the problem library. If the company has a problem database, it is better. If not, you can also make suggestions to the supervisor for the formation. With this problem library, you can quickly find solutions to the same types of problems in the future, avoid the same problems, and you need to solve them from the beginning every time.

In fact, testing is sometimes more difficult than writing code, because when you write, you think and code according to normal logic, but after testing, you need to think from different scenarios. This kind of critical thinking, logical thinking, The ability to think systematically, but it is well worth investing energy to exercise.


Finally: a wave of software testing data sharing!

In the technology industry, you must improve your technical skills and enrich your practical experience in automation projects. This will be very helpful for your career planning in the next few years and the depth of your test technology mastery.

In the interview season of the Golden 9th and the Silver 10th, the season of job-hopping, organizing interview questions has become my habit for many years! The following is my collection and sorting in recent years, the whole is organized around [software testing], the main content includes: python automation test exclusive video, Python automation details, a full set of interview questions and other knowledge content.

May you and I meet and you will find something! If you want to exchange experience in software testing, interface testing, automated testing, and interviews. Follow WeChat public account:[Sad Spicy Strips]Receive a 216-page software test engineer interview book for free. And the corresponding video learning tutorials are free to share! Communication learning skirt:313782132

If the article is helpful to you, please reach out to make a fortune and give me a like. Thank you for your support. Your likes are my motivation for continuous updating.

Recommend good articles:

Packaged as a test engineer with 1 year of work experience, my advice before the interview is as follows

What exactly should I learn in automated testing?

Why not consider Tencent for job-hopping? Talk about a little bit of the past between me and the goose factory

Which is more advanced, automated testing or manual testing?

Novice must see: How to write a qualified test case?

Python login interface test problem record and solution (dry goods)

Guess you like

Origin blog.csdn.net/weixin_50829653/article/details/114155413
Recommended