Chapter 43
In fact, after the problem is found, it is very easy to fix it. They only need to make a simple judgment on the zoom, and judge that if the target value is too large, then the target value will be set to a maximum value.

Suddenly Cheng Wen seemed to understand why some programs have a maximum value for their settings.

It may be the same as this. If the maximum value is not set, once a certain value is exceeded, the system will have some unexpected problems, which will affect the stability of the system.

The development has corrected this bug, and there is no problem in testing it yourself.

Send a message in the WeChat group:

[Cheng Wen, you can test it again, we have fixed it now. 】

【OK】

Cheng Wen replied, he thought in his heart that the developers' actions are still quite fast, and the changes have been made in just a short while.

Ran through his code again, and after a while, it finished, this time there was nothing wrong here, so it was done quickly.

Unlike when there was a problem just now, when there was a delay in getting a response, it was often a request. After a long time, the time exceeded the maximum timeout set by Cheng Wen, and the program returned a timeout.

"It seems that this gray box test is still useful, but this is also my own problem. The black box can actually find this problem, but I haven't tested it with such a large value."

Although the bug has been fixed, Cheng Wen felt that it was necessary to conduct a replay to summarize the gains this time.

Looking at the test case, Cheng Wen found that his test case stated clearly that he was going to test this thing, but he didn't test the maximum value himself.

"It seems that the boundary value must not be careless. In the future, I must be more careful. I can't lose the ability to think just because I have a system. If I calm down and think carefully, I can find out why there is a problem here."

"You caused what was said in the group?" Xing Yafan asked.

"Yes."

"Are you using gray box testing?"

"Correct."

"Is there really a problem with scaling?"

"Yes."

Xing Yafan: ...

"Can't you say a few more words?"

"Although we didn't make a bet, I said there is a problem here. Sure enough, there is a problem. Why don't you invite me to dinner tonight?"

Xing Yafan: ...

"Forget it, you should say it in one word, two words."

"Tell me what's the problem there. If you understand, I'll treat you to dinner tonight." Xing Yafan tempted Cheng Wen with dinner.

"In fact, it's nothing. They forgot to set the maximum ratio for zooming. If you write a program that zooms the image to a size of 100000000000*100000000000, the machine will be overwhelmed and become slower and slower."

"Processing one request is already very slow. The gray-box test code I wrote has a timeout period. When the timeout period expires, it will retry. If you try again, what do you think will happen?"

Cheng Wen felt that it was necessary for Xing Yafan to learn to think independently, instead of letting him talk about everything, it was guiding her to think.

"If the previous one has not been processed, the machine will definitely occupy some resources. If there is another request that is the same as before, or a request that consumes more resources than before, the system will process it more slowly.

You are running with the program you wrote, so there will be another one in a while, and the server will become slower and slower and get stuck.

As time goes on, the server will become more and more stuck, and eventually the load on the machine will rise extremely high in a short period of time, and finally nothing can be processed, even those normal requests that do not consume any resources. "

"Yes, that's the reason, so tonight..."

"Stop talking, tonight I'll treat you to grilled fish."

"Thank you, grilled fish is my favorite food." Cheng Wen's hobby changed instantly.

But suddenly Cheng Wen remembered the money rewarded by the system. This time, it's not for others to treat him to dinner, right?
It shouldn't be, what kind of grilled fish can cost 200 per person?Jiangbian outside the city, Wushan grilled fish...

Although there is food and drink in the system, in reality, Cheng Wen is very happy to go to other people's treats in order to thank himself.

Here Cheng Wengang made an appointment with Xing Yafan, and the development team over there also had an idea.

They felt that Cheng Wen had done them a great favor, so they also wanted to treat them. They invited Cheng Wen to have dinner all night, in order to connect with each other and thank Cheng Wen.

【Cheng Wen, are you free tonight? 】

When Cheng Wen saw this, he thought it was a test at night, which was a matter of work, so he replied:
【available】

[That's great, in order to thank you for doing us such a big favor today, we would like to treat you to dinner, can you come over tonight, what would you like to eat? 】

Cheng Wen was a little stunned when he saw this, it wasn't about work!He wants to invite me to dinner.

But he looked at the young lady in front of him, and then at a group of elders over there.

He decisively chose to eat grilled fish with Xing Yafan.

【Is it okay tomorrow? I thought you were asking if you were free. Is there any work arrangement for the evening? Actually, I have a meeting tonight. I will have a meal with my friends. If there is something at work, I can push]

[Yes, yes, it mainly depends on when is convenient for you, we can do it anytime here. 】

[That's really thankful to you all] Cheng Wen thinks that he is really considerate.

Ding--

【帮助商业化团队进行测试,任务完成,任务完成奖励:1.定向技能点+50;2.自由技能点+50;3.人民币+200元;4.键帽+5;】

Ding--

[The host has received heartfelt thanks from others, thank you coin +7]

There is also a new model, what is the use of this thank you coin, since it is a coin, it should be able to spend, can it buy things?
Cheng Wen didn't quite understand how to use this thing.

Closing his eyes and meditating, concentrating on his dantian, Cheng Wen came to the system space.

Looking at the translucent glass, I saw an introduction about the thank you coin.

[Thank you coin: it is a currency inside the system, which cannot be used in the real world. When you collect a certain amount, you can open the system mall. There are more fun and interesting things in the system mall]

"It's actually a system mall, that's great, but how should I collect it? Does someone have to speak a special language to activate it? It shouldn't be necessary, and I haven't heard what Xing Yafan said. Cheng Wen, you are one of the good people. kind of words."

Besides, if he really said that, Cheng Wen would definitely feel that he was rejected, because this sentence is often followed by another sentence - but we are really not suitable.

(End of this chapter)

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like