nus-cs2113-AY2223S1 / forum

4 stars 0 forks source link

Testing the application data storage #36

Open Than-Duc-Huy opened 1 year ago

Than-Duc-Huy commented 1 year ago

I would like to ask about the extent of testing for the PE, especially for the storage files generated by the program For acceptance testing, we should behave like a user and should only do what was told in the UG. We shouldn't tamper with the storage files. But for system testing, we can tamper with the storage file to see how the program respond! Is my understanding correct? How do we know if the application has handle the tampering of the storage file elegantly so that we don't raise it as a bug!

okkhoy commented 1 year ago

A very good question! Your understanding is correct. In the PE you can do both! The teams should manage data tampering in an elegant way. Some possible (but not exhaustive) things are:

Of course, you cannot expect the application to recover tampered data if it is not already read by the app and maintained in-memory.

@Than-Duc-Huy