-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommandlinetest_src.sh
75 lines (66 loc) · 1.87 KB
/
commandlinetest_src.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
# The file names
#TODO Define all file names used for this project
# The file paths
#TODO Define all file paths here
# The globals
#TODO Define all global variables required
# Time out periods
#TODO Define all timeout values here
function log()
{
# TODO Write activities to log files along with timestamp, pass argument as a string
}
function answer_file_creaton()
{
#TODO create answer csv file. If its already exists create a back up
}
function menu_header()
{
# TODO Just to print welcome menu presntation
}
function view_test_screen()
{
# TODO UI for view a test.
# 1. Display all questions from test to user with options answered by user.
# 2. If it was not answered by user, show message
# 3. Read answers from csv file
# 4. Do appropriate activities to log files
}
function test_screen()
{
# TODO UI for test.
# 1. Implement time out
# 2. Pick and display random question from question bank
# 3. Answers stores to csv files
# 4. Do appropriate activities to log files
}
function test_menu()
{
# TODO Provide a menu for user for taking test and viewing test.
# Read input from user and call respective function
}
function sign_in()
{
# TODO For user sign-in
# 1. Read all user credentials and verify
# 2. Time-out for entering password
# 3. Do appropriate activities to log files
}
function sign_up()
{
# TODO For user sign-up
# 1. Read all user credentials and verify
# 2. Time-out for entering password
# 3. Set minimum length and permitted characters for username and password, prompt error incase not matching
# 4. Check for same user name already exists.
# 5. Do appropriate activities to log files
}
# TODO Your main scropt starts here
# 1. Creating a .TestData directory if it doesn't exist
# 2. Creating a .user_credentials.csv file if it doesn't exist
# Just loop till user exits
while [ 1 ]
do
# TODO call the appropriate functions in order
done