-
Notifications
You must be signed in to change notification settings - Fork 0
TestCases
Testcases are included through the class Testsuite and will all be run by default once executing the program. after that it initialize it to some state and starts.
You can see in main.cpp file function `runapp();
runalltest();
This instruction is responsible for running all tests
You can see also
T.TC6();
This instruction initializes the system to the state described in testcase 6 (the final state of testcase). You can in fact change this one to anytest you like "T.TC1()" , "T.TC3()" or any testcase you would like to.
You may specify which tests you want to run by simply following the same function written in the main.cpp runapp()
As for testing the GUI and logging in:
There will always be 1 admin:
Username: sasha password:123456
Other users can be found in the database after running tests (note that they present the same users described in testcases pdf so you can try any of them in which ever way you like).
-
Username: sergey password:afonso
-
Username: elvira password:espindola
-
Username: nadia password:texeira
-
Username: andrey password:velo
-
Username: veronika password:rama
-
Username: eugenia password: rama (librarian with prev1)
-
Username: luie password: ramos (librarian with prev2)
-
Username: ramon password: valdez (librarian with prev3)
In fact you can just add Users/Librarians by yourself and start logging using them.
Please note that, these functions (TC1() , TC2()...) initializes the whole system. So if you want to initialize it to some state and then try to work with the users and their functionalities, you need to initialize the system only once. After that you need to cross out the initialization instruction (TC) in runapp function (because each time you run the project again it reinitializes itself). I added the log out choice to make testing easier.