In the most recent time, the most impressive bug I've had was in Javaweb's big homework last semester.
The requirement is to add a modifier button after each record of the worker, which requires that the contents of the previous page be brought into the next page, because the password is encrypted by MD5, so the content that is brought into the subsequent page is encrypted, and when the password needs to be changed, no error occurs, but If you do not change the password, click OK, at this point, the encrypted password will be encrypted once, resulting in a problem with password modification.
The reason for the bug is that when writing code, only one-sided situations are taken into account, and the overall situation is not taken into account.
Find out the method is: oneself in testing other functions, in the case of not changing the password, click OK, when again in this identity, password prompt error. In order to set the output statement in the program, output the contents of the password, so as to find this bug.
Software Testing (i)