What is optimization?
You may not be a developer, but you’ve heard of optimization.
And now do test development engineer, of course, to write code, do tools, make platforms, write scripts. Optimization is a must when it comes to creating and coding. After all, there is no best, only better.
Differences:
The differences between test development and development are as follows:
1. The number of users of the testing tool is not large, the efficiency requirement is not high, the safety requirement is not high, the convenience and other requirements are not as good as the real enterprise C-terminal tool, so the optimization direction should focus on stability, reliability and authority.
2. Most of the time, we can only rely on ourselves, without developing the requirements/products/UI/design/operation and maintenance/testing/customer service provided by students, so we have to rely on ourselves to optimize what and how to optimize in most cases. However, it also has advantages, that is, the space for optimization is large, the freedom is high, and the cost performance is also high. You may increase the running speed several times in a morning, but for the company’s external products, it will cost a lot to increase the efficiency by 0.0 times.
3. Optimization is not as important as function completion, so students should not spend all their energy on optimization too early. Because the test tool generally does not have the exact idea and complete link, so the direction of the results is not reliable, it is best to develop the actual thing to verify, if it is what we need, then the optimization is not too late.
Xiao Wang’s salary is very high when he enters a company. The leader is also full of expectation for him. He plans to make a data factory platform to see the effect during the probation period. So Xiao Wang puzzled for 3 months, the leadership to ask progress, he said, now the platform’s home page function has been finished, very perfect and beautiful, optimization is very good, but the specific data generation function has not started to do….. The leader saw the progress and efficiency and did not give him a probationary period. Then let another make a real function of the new zhao for the regular, although Zhao’s platform page is ugly, it is difficult to use, but the leadership believes that as long as give him the time, he can optimize very well ~
Optimization classification:
There are three main points as follows:
1. Planned optimization:
Before we test out a tool/platform/script, please plan for at least two phases. Then what functions will be implemented in the first phase and what will be optimized in the second phase. For example, a specific function to add secondary functions, new interactive design, new grip.
For example, Xiao Wang is doing an algorithm of intelligent deep assertion interface return value. He intends to make the first phase usable, and then add automatic input and generate report optimization design in the second phase.
2. Data dependency optimization:
Before we start creating, online, be sure to do quantitative data record, namely each function/page you use frequency, quantity, etc., it is best to record the funnel rate, namely consumer USES route, take a look at where is the end of the highest frequency, when online after a period of time, according to the data point to new phase ii to do optimization.
Such as xiao Ming in the development of an interface test platform, through the data found that users use the interface caught the import function in this link, caught the quantity is large, but the real imported into the project number is very few, so this time you are going to make sure, why do people use half will not continue to go down, because don’t understand, can’t, or couldn’t find the button, Insufficient guidance leads to. Then it will be listed in the next phase of the optimization plan.
3. Unexpected optimization:
This refers to the fact that during the development process, with many new technological breakthroughs and new features being created, testers will discover many areas of improvement that they could not have imagined before if they are sharp enough. Of course, there will be some unexpected trouble, if the cost is very high, this kind of optimization can be prioritized.
For example, Xiao Wang is making a data generation tool. In order to obtain interface data, he needs to manually parse the captured data every time, pick them out one by one, change the single quotation marks into double quotation marks and put them into the code for testing and correction. But since this action was cumbersome and time-consuming, and could be expected to be repeated hundreds of times, he decided to develop a small script to optimize the debugging feature. This greatly speeds up development efficiency. The so-called is not wrong to cut wood workers ~
Optimization field:
Popular ones are: performance, efficiency, interaction, pages, stability, security
A bit more detailed: ISO9126 quality is detailed:
Baike.baidu.com/item/ISO912…