-
Notifications
You must be signed in to change notification settings - Fork 0
Tests
The following tests were made using the last commit #49.
//Test with PASS.txt removed in ../data/ [jad@jad src] $ java Main 2020/07/14 21:31:16 EDT Welcome to your personal database, Chef.
CRITICAL ERROR! PASS.txt File Not Found! Troubleshooting Missing Pass file: -- Creating Generic Password With New File. ✓ -- Encrypting New Password. ✓ -- Testing Encryption Key. ✓ -- Writing Encryption Key to File. ✓ -- Testing Encryption Key from File. ✓ Success! Your New Password is: password
Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 0 Person's Information Has Been Loaded Locally.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 5
Saving Data to DATA + DATA BACKUP Files: -- Creating DATA File. ✓ -- Creating DATA BACKUP File. ✓ -- Writing Data to DATA File. ✓ -- Copying DATA File to DATA BACKUP File. ✓ SUCCESS! 0 Person's Information Has Been Saved To The Files.
Have a good day, Chef. 2020/07/14 21:31:31 EDT
//Test with DATA.txt removed in ../data/ [jad@jad src] $ java Main 2020/07/14 21:32:31 EDT Welcome to your personal database, Chef.
Loading Data from File: -- Opening DATA File. x
CRITICAL ERROR! DATA.txt File Error! Troubleshooting DATA file Error: -- Checking for DATABACKUP. ✓ -- Creating DATA file and Copying DATABACKUP to DATA File. ✓ Success! 0 Person's Information Has Been Restored.
Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 0 Person's Information Has Been Loaded Locally.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 5
Saving Data to DATA + DATA BACKUP Files: -- Creating DATA File. ✓ -- Creating DATA BACKUP File. ✓ -- Writing Data to DATA File. ✓ -- Copying DATA File to DATA BACKUP File. ✓ SUCCESS! 0 Person's Information Has Been Saved To The Files.
Have a good day, Chef. 2020/07/14 21:32:49 EDT [jad@jad src] $
//Test with DATA.txt and DATABACKUP.txt removed in ../data/ [jad@jad src] $ java Main 2020/07/14 21:33:49 EDT Welcome to your personal database, Chef.
Loading Data from File: -- Opening DATA File. x
CRITICAL ERROR! DATA.txt File Error! Troubleshooting DATA file Error: -- Checking for DATABACKUP. x -- Creating and Initializing DATA file. ✓ Success! An Empty DATA File Has Been Restored.
Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 0 Person's Information Has Been Loaded Locally.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 5
Saving Data to DATA + DATA BACKUP Files: -- Creating DATA File. ✓ -- Creating DATA BACKUP File. ✓ -- Writing Data to DATA File. ✓ -- Copying DATA File to DATA BACKUP File. ✓ SUCCESS! 0 Person's Information Has Been Saved To The Files.
Have a good day, Chef. 2020/07/14 21:34:00 EDT
//Testing with invalid inputs (wrong passcode / String as numbers / etc) [jad@jad src] $ java Main 2020/07/14 21:35:14 EDT Welcome to your personal database, Chef.
Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 0 Person's Information Has Been Loaded Locally.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 123213 Please choose a number between 1 and 5. [1 -> Print] [2 -> Search] [3 -> Add] [4 -> Password] [5 -> Exit] Choice: 1
Choice: 3123213 Please choose a number between 1 and 2. [1 -> Console] [2 -> Custom File] Choice: 1
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 1
Choice: 2
1 -- Please Choose a Name for your File. (NAME.txt) Choice for NAME: awdawd
2 -- Confirm File Name. File Name = awdawd.txt Confirm? (Y/N) Choice: dawdvbawdbg Y = Correct File Name | N = False File Name Confirm? (awdawd.txt): y
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 2
Search People Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)
First Name: Last Name: Phone Number: adwadaw ERROR! Malicious input. Please try again. Phone Number: 613 ERROR! Phone number not found
Step 2: Creating list matching criteria. -- Checking basic input criteria. x -- FAIL! No Matching Users Found!
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 3
Add Person Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)
First Name: Last Name: Phone Number: awdwad ERROR! Malicious input. Please try again. Phone Number: 613 Address Number: dawdawd ERROR! Malicious input. Please try again. Address Number: 613 Address Road: City: Province: Country: Postal Code: Description: Success! 1 Person's Information Has Been Added.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 2
Search People Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)
First Name: Last Name: Phone Number: dawdwa ERROR! Malicious input. Please try again. Phone Number: 613 Address Number: dawdwad ERROR! Malicious input. Please try again. Address Number: 613 Address Road: City: Province: Country: Postal Code:
Step 2: Creating list matching criteria. -- Checking basic input criteria. ✓ -- Checking individuals who match all inputs. ✓ -- SUCCESS! 1 Matching Individual Has Been Found!
Choice: 1
Name: Unknown Unknown Phone number: 613 Address: 613 Unknown, Unknown, Unknown, Unknown PC: Unknown Description: Added on 2020/07/14 21:36:38 EDT | Added on 2020/07/14 21:36:27 EDT | Unknown
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 4
Change Password Requested Step 1: Enter your Old Password. Please enter your password: adwadaw Decryption Failed. Retype Password: password Decryption Success.
Step 2: Choose a New Password. Enter a New Password: Confirm New Password: Error!Password Cannot Be Null. Enter New Password Again. Enter a New Password: pass Confirm New Password: Error!Confirmation Does Not Match. Enter New Password Again. Enter a New Password: pass Confirm New Password: pass
Saving New Password. -- Encrypting New Password. ✓ -- Testing Encryption Key. ✓ -- Writing Encryption Key to File. ✓ -- Testing Encryption Key from File. ✓ SUCCESS! The New Password Has Been Created.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 5
Saving Data to DATA + DATA BACKUP Files: -- Creating DATA File. ✓ -- Creating DATA BACKUP File. ✓ -- Writing Data to DATA File. ✓ -- Copying DATA File to DATA BACKUP File. ✓ SUCCESS! 1 Person's Information Has Been Saved To The Files.
Have a good day, Chef. 2020/07/14 21:37:13 EDT [jad@jad src] $
//Creating 3 people and searching to find only 2 then printing to a custom file [jad@jad src] $ java Main 2020/07/14 21:38:48 EDT Welcome to your personal database, Chef.
Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 1 Person's Information Has Been Loaded Locally.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 3
Add Person Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)
First Name: Jad Last Name: dawudbawdbawudb Phone Number: 5156 Address Number: 654156 Address Road: dawdva] City: auwdbawd Province: awdbaw Country: bdiawbdoa Postal Code: dawubd Description: duwadbwa Success! 1 Person's Information Has Been Added.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 3
Add Person Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)
First Name: Jad Last Name: awdbawuidvbawud Phone Number: 654864132 Address Number: 65456 Address Road: dawdvwa] City: dawdaw gf Province: dwagtg Country: awdwafgwa Postal Code: awgwag Description: awgwag Success! 1 Person's Information Has Been Added.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 2
Search People Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)
First Name: Jad Last Name: Phone Number: Address Number: Address Road: City: Province: Country: Postal Code:
Step 2: Creating list matching criteria. -- Checking basic input criteria. ✓ -- Checking individuals who match all inputs. ✓ -- SUCCESS! 2 Matching Individuals Have Been Found!
Choice: 2
1 -- Please Choose a Name for your File. (NAME.txt) Choice for NAME: Jad
2 -- Confirm File Name. File Name = Jad.txt Confirm? (Y/N) Choice: y SUCCESS! Jad.txt has been created with 2 Individuals' Information P.S -> The file is located at the /data directory of the master directory.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 5
Saving Data to DATA + DATA BACKUP Files: -- Creating DATA File. ✓ -- Creating DATA BACKUP File. ✓ -- Writing Data to DATA File. ✓ -- Copying DATA File to DATA BACKUP File. ✓ SUCCESS! 3 People's Information Have Been Saved To The Files.
Have a good day, Chef. 2020/07/14 21:39:53 EDT [jad@jad src] $
//Trying to input menu and exit in random inputs [jad@jad src] $ java Main 2020/07/14 21:40:32 EDT Welcome to your personal database, Chef.
Loading Data from File: -- Opening DATA File. ✓ -- Reading and Storing Data Locally. ✓ Success! 3 People's Information Have Been Loaded Locally.
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 1
Choice: menu
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 3
Add Person Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)
First Name: Last Name: Phone Number: menu
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 4
Change Password Requested Step 1: Enter your Old Password. Please enter your password: pass Decryption Success.
Step 2: Choose a New Password. Enter a New Password: menu
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: 2
Search People Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)
First Name: Last Name: Phone Number: Address Number: Address Road: City: Province: Country: menu
1 -> Print Full Database. 2 -> Search a Specific Person. 3 -> Add Person to Database. 4 -> Password Change for Login. 5 -> Exit Program. (Will Save Progress)
P.S -> At Any Input: [exit -> Force Quit Program.] [menu -> Return to Menu] Choice: Please choose a number between 1 and 5. [1 -> Print] [2 -> Search] [3 -> Add] [4 -> Password] [5 -> Exit] Choice: 2
Search People Requested. Step 1: Enter individual's information. (Press Enter to skip unknown information)
First Name: Last Name: Phone Number: Address Number: Address Road: City: Province: exit [jad@jad src] $