background

Recently, some students came to me for work, saying that the leader had asked him to take charge of the performance test of the product. However, he bought several books and installed related tools, but he seemed to find it too complicated and knew nothing to do. He came to me and asked me, “Is the performance test difficult?”

You ask

Is performance testing hard to do?

I answer

It’s only been a little over a year since I started zero-contact performance testing, and I’ve been on a bumpy, winding road that I can only imagine, not tell. While I’ve gone from getting started to “giving up,” I’ve been thinking and looking for ways to make performance testing seem less difficult and less unattainable.

Performance testing is actually a category of testing, so correspondingly, it is also a set of standard procedures, nothing more than requirements analysis, test plan formulation, test execution, results analysis and other links.

Therefore, for several links in the performance testing process, I put myself in the position of the original white, to think about what kind of support and help I hope to get at that time, combined with the thinking of the product, to think of the following can be used as a “performance testing framework or guidance system.

1. What is it?

Definition and explanation of common basic concepts, test methods and standard procedures in performance testing;

2. What to do?

The analysis method of performance test requirements can be adopted in the form of questions in the checklist to help users figure out the types of performance tests required for corresponding requirements, such as stress test, stability test, robustness test, etc.

3. How?

3.1 Corresponding to step 2 above, each of the specific test types has corresponding test method description, including what kind of data and steps to prepare and how to select corresponding scripts for modification or assembly;

3.2 a set of corresponding sample library, including script (usr), parameterized file (dat), scene (LRS), while one hundred percent say impossible gm or paraphrase, but at least in the same products can form performance tests, they are relatively independent, one by one packet of the structure is clear, easy to update and management;

How about it?

After the performance test is complete, the system generates a report. For the commonly used single analysis diagram and combination analysis diagram, sample diagram and my actual diagram to do comparison, and tell me these data diagram, respectively represent the performance of which indicators, the value of these indicators, respectively represent the performance is good or bad;

5. How to do?

List common solutions to common performance problems, such as whether SQL should be checked and optimized, or whether the server Tomcat connection size should be changed.

With a productized performance testing framework, I think the mountain of performance testing isn’t too high for most test engineers, right?

Operation with guidance documents, test plan template, independent test data and test scripts, distributed test environment build script or manuals, test reports and the analysis of the corresponding template, holds up a complete set of performance testing framework ground quickly, quickly adapt to different projects, and can make a test engineer in small cost performance testing task of learning.

Such a framework, however, was not sudden can be set up, it must be in the performance test engineers have had a deeper understanding to theory, and through multiple projects of actual combat, which formed a summary of a set of methodology system, coupled with relatively independent data and scripts, plan template, analysis steps and related tools such as template. Continuous polishing, optimization and improvement, to form a set of entry-level white, or in the process of the old bird, can easily use it to climb the peak of such a product.

Write at the end:

Don’t forget your original aspiration, try not to give up, and you will open a flower of your own.

I wish you and I meet, both gain! Welcome to follow the wechat official account: Program Yuan Yifei, there are more learning resources to share with you!