When the programmer opens the plug-in
Chapter 40
Chapter 40
When the test started, a translucent screen still appeared on the left side of Cheng Wen.
There is a test case that is exactly the same as he wrote, and it is marked red and green as before.
The function of Chengwen test is the same as the place where test cases are written, and it is also a download function.
Their project is divided into upload and download.
Uploading refers to uploading pictures in a specific format using a client or other terminal.
The supported formats are the usual ones - gif, jpeg, bmp, png, webp.
Uploading is okay, as long as the system can run stably and support the above-mentioned formats.
Of course, in the process of uploading, it also supports some features, such as automatic rotation (you can put the picture upright), zoom (can be zoomed to a specified size, and the position of some pictures is required for the size of the picture), compression (you can Optimize image storage space)...
There are also regulations on the size of the picture, which cannot exceed a specific value, such as 20M.
But this is fine, but the access function or the download function, this part of the function is difficult to test.
There is also scaling when downloading, add a length and width to the address of the picture, so that the size of the returned picture should be the specified size.
There are two types of scaling, one is proportional scaling, if the size does not match, the picture will be preserved, so that it will be filled with another color, as for the filling color is different, this scaling can be divided into several types.
The most common ones are filled with a simple fixed color, or intelligently filled according to the content of the picture. This will take a color of the picture itself and make a gradient.
There is also a kind of scaling that does not leave edges. This is to scale the picture to the specified size first, and then crop the long side.
Another kind of scaling is deformation scaling, but this is not commonly used. After all, the deformed picture will be distorted. This will not fill or cut some content of the picture itself.
There is also cropping, which is generally used for very large pictures. This function can make the picture smaller. You can set a position to crop from, and it does not scale the size of the picture itself.
There is also cropping for the face. If there is a face in the picture, it is necessary to ensure that the face will not be cropped first, and try to arrange the face in the middle.
There is also the format of the converted image, for example, the original image is png, but the extension entered when accessing is another, such as webp, the extension of the image should be webp when right-clicking and saving as.
Or it is a gif animation. If the extension is changed to jpg, then only the first frame should be kept, which is a bit like cropping.
There is also the frame cropping of gif. For example, if a gif has 300 frames, you can only crop the first frame, which is equivalent to a static picture. You can also specify the number of frames such as cropping 20 frames, or other values. .
There are also ways to round the corners of the picture, which can be simply rounding the four corners, or rounding the entire picture.
They all have corresponding adaptation scenarios.
You can also compress pictures, and you can choose an incomparable compression ratio.
I have to say that the quality of the product they developed this time is still good. Cheng Wen only saw three bugs on the translucent glass, but one was particularly conspicuous.
The red one has turned black, and the number of small bugs is more than Cheng Wen has ever seen since he got the system.
"Since this is so powerful, I'll find other simple problems first, and save this one for the last." Cheng Wen thought so.
The red and black bug is in the scaling branch.
Cheng Wen tested it several times, and the zoom functions are all working well, there is no problem.
I don't know why it's so red.
Finally, when Cheng Wen was at a loss, he remembered the details of the system's assignment of this mission.
Cheng Wen took another look at the task.
【帮助商业化团队进行测试,任务要求在进行黑盒测试的同时也要进行灰盒测试。任务完成奖励:1.定向技能点+50;2.自由技能点+50;3.人民币+200元;4.键帽+5;】
When the system releases other tasks, it never specifies what technology to use, but this time is an exception.
It actually explicitly specifies the use of gray box testing.
The task must have a certain point, and it will not just come out for no reason.
"So if my guess is correct, this bug can only be tested by gray box testing, or it can be easily tested using gray box technology.
However, artificial black box testing is not easy to find this problem. "
Cheng Wen's IQ suddenly went online.
"But gray box testing requires programming experience."
The system released a daily task this morning, but Cheng Wen didn't ask for it from Yao Shao at the beginning of today, so there is nothing to test.
So he thought of a way to write the program and test it himself, and he didn't know if it was a bug in the system.
At that time, Cheng Wen chose PHP, and when he found all the bugs, the system gave him an additional reward—orientation skill points +50.
"How do I feel that the path of my life has been designed by others, and I just need to walk according to the design." Cheng Wen suddenly had this thought in his heart.
It's a pity that the reward is only 50 skill points, so Cheng Wen's php programming experience is still in its infancy.
Cheng Wen took a look at his attributes and the good things he got from the system:
[Keycaps: 79 pieces
Reduced Backpack: 1
Black box skills: 513
Error Finding Skill: 20
Free experience: 380
Base keystroke ability: 6.5
Strength: +20kg
php skills: 50
】
This is a junior php engineer, people who come out of training institutions should be higher than this level!
There are still many php training institutions in the society. Many people have not learned much knowledge in school, and they will go to training institutions to continue their studies.
It's not that the things taught by training institutions are not good, it's just that many people don't have any foundation, so most people learn less when they go there.
Some training institutions even teach people how to interview in the last link. In fact, this is nothing, but they will teach people how to package themselves, packaging up all the experience they did not have, and some will falsify their academic qualifications and resumes.
It would be really embarrassing if someone passed the interview without paying attention.
Cheng Wen's current level is not even comparable to them, but Cheng Wen has no fake academic qualifications.
Cheng Wen believes that in a few days, he will become an intermediate, and he may even become a senior engineer soon. At that time, he will definitely be better than most of the people who come out of the training institutions.
There was another method that Cheng Wen didn't want to use.
(End of this chapter)
When the test started, a translucent screen still appeared on the left side of Cheng Wen.
There is a test case that is exactly the same as he wrote, and it is marked red and green as before.
The function of Chengwen test is the same as the place where test cases are written, and it is also a download function.
Their project is divided into upload and download.
Uploading refers to uploading pictures in a specific format using a client or other terminal.
The supported formats are the usual ones - gif, jpeg, bmp, png, webp.
Uploading is okay, as long as the system can run stably and support the above-mentioned formats.
Of course, in the process of uploading, it also supports some features, such as automatic rotation (you can put the picture upright), zoom (can be zoomed to a specified size, and the position of some pictures is required for the size of the picture), compression (you can Optimize image storage space)...
There are also regulations on the size of the picture, which cannot exceed a specific value, such as 20M.
But this is fine, but the access function or the download function, this part of the function is difficult to test.
There is also scaling when downloading, add a length and width to the address of the picture, so that the size of the returned picture should be the specified size.
There are two types of scaling, one is proportional scaling, if the size does not match, the picture will be preserved, so that it will be filled with another color, as for the filling color is different, this scaling can be divided into several types.
The most common ones are filled with a simple fixed color, or intelligently filled according to the content of the picture. This will take a color of the picture itself and make a gradient.
There is also a kind of scaling that does not leave edges. This is to scale the picture to the specified size first, and then crop the long side.
Another kind of scaling is deformation scaling, but this is not commonly used. After all, the deformed picture will be distorted. This will not fill or cut some content of the picture itself.
There is also cropping, which is generally used for very large pictures. This function can make the picture smaller. You can set a position to crop from, and it does not scale the size of the picture itself.
There is also cropping for the face. If there is a face in the picture, it is necessary to ensure that the face will not be cropped first, and try to arrange the face in the middle.
There is also the format of the converted image, for example, the original image is png, but the extension entered when accessing is another, such as webp, the extension of the image should be webp when right-clicking and saving as.
Or it is a gif animation. If the extension is changed to jpg, then only the first frame should be kept, which is a bit like cropping.
There is also the frame cropping of gif. For example, if a gif has 300 frames, you can only crop the first frame, which is equivalent to a static picture. You can also specify the number of frames such as cropping 20 frames, or other values. .
There are also ways to round the corners of the picture, which can be simply rounding the four corners, or rounding the entire picture.
They all have corresponding adaptation scenarios.
You can also compress pictures, and you can choose an incomparable compression ratio.
I have to say that the quality of the product they developed this time is still good. Cheng Wen only saw three bugs on the translucent glass, but one was particularly conspicuous.
The red one has turned black, and the number of small bugs is more than Cheng Wen has ever seen since he got the system.
"Since this is so powerful, I'll find other simple problems first, and save this one for the last." Cheng Wen thought so.
The red and black bug is in the scaling branch.
Cheng Wen tested it several times, and the zoom functions are all working well, there is no problem.
I don't know why it's so red.
Finally, when Cheng Wen was at a loss, he remembered the details of the system's assignment of this mission.
Cheng Wen took another look at the task.
【帮助商业化团队进行测试,任务要求在进行黑盒测试的同时也要进行灰盒测试。任务完成奖励:1.定向技能点+50;2.自由技能点+50;3.人民币+200元;4.键帽+5;】
When the system releases other tasks, it never specifies what technology to use, but this time is an exception.
It actually explicitly specifies the use of gray box testing.
The task must have a certain point, and it will not just come out for no reason.
"So if my guess is correct, this bug can only be tested by gray box testing, or it can be easily tested using gray box technology.
However, artificial black box testing is not easy to find this problem. "
Cheng Wen's IQ suddenly went online.
"But gray box testing requires programming experience."
The system released a daily task this morning, but Cheng Wen didn't ask for it from Yao Shao at the beginning of today, so there is nothing to test.
So he thought of a way to write the program and test it himself, and he didn't know if it was a bug in the system.
At that time, Cheng Wen chose PHP, and when he found all the bugs, the system gave him an additional reward—orientation skill points +50.
"How do I feel that the path of my life has been designed by others, and I just need to walk according to the design." Cheng Wen suddenly had this thought in his heart.
It's a pity that the reward is only 50 skill points, so Cheng Wen's php programming experience is still in its infancy.
Cheng Wen took a look at his attributes and the good things he got from the system:
[Keycaps: 79 pieces
Reduced Backpack: 1
Black box skills: 513
Error Finding Skill: 20
Free experience: 380
Base keystroke ability: 6.5
Strength: +20kg
php skills: 50
】
This is a junior php engineer, people who come out of training institutions should be higher than this level!
There are still many php training institutions in the society. Many people have not learned much knowledge in school, and they will go to training institutions to continue their studies.
It's not that the things taught by training institutions are not good, it's just that many people don't have any foundation, so most people learn less when they go there.
Some training institutions even teach people how to interview in the last link. In fact, this is nothing, but they will teach people how to package themselves, packaging up all the experience they did not have, and some will falsify their academic qualifications and resumes.
It would be really embarrassing if someone passed the interview without paying attention.
Cheng Wen's current level is not even comparable to them, but Cheng Wen has no fake academic qualifications.
Cheng Wen believes that in a few days, he will become an intermediate, and he may even become a senior engineer soon. At that time, he will definitely be better than most of the people who come out of the training institutions.
There was another method that Cheng Wen didn't want to use.
(End of this chapter)
You'll Also Like
-
Pirate Family
Chapter 1318 3 hours ago -
Full-time Summoner
Chapter 1763 3 hours ago -
Technology: breaking the hegemony that monopolizes the world
Chapter 1904 3 hours ago -
Out of the cage
Chapter 1605 3 hours ago -
Build Madness
Chapter 1094 3 hours ago -
Recruit black physique to start practice in the wasteland
Chapter 1581 3 hours ago -
Night of apocalypse
Chapter 1107 3 hours ago -
Mortal Cultivation: Starting from a Casual Cultivator
Chapter 1110 3 hours ago -
Technology overlord starts with baby
Chapter 1229 3 hours ago -
Naruto: I traveled through time with the Samsara Eye
Chapter 151 4 hours ago