• Tidak ada hasil yang ditemukan

System Testing and Performance Metrics Functionalities Testing

Dalam dokumen DECLARATION OF ORIGINALITY (Halaman 71-79)

SYSTEM IMPLEMENTATION AND EVALUATION

5.5 System Testing and Performance Metrics Functionalities Testing

58

Bachelor of Computer Science (Honours)

Faculty of Information and Communication Technology (Kampar Campus), UTAR

5.5 System Testing and Performance Metrics

59

Bachelor of Computer Science (Honours)

Faculty of Information and Communication Technology (Kampar Campus), UTAR

User press Bedroom button

The system will direct user to the bedroom home appliances control module

User press mic icon The system will direct user to the voice command module

User press logout icon The system will direct user to the sign in page

AR Control Module

Test Action Expected Result Meet Expectation (✓/) User press AR button The system will appear on

or off button for user to choose

User select on button The system will open the smartphone camera and scan any plane surface

User place the on button The system successfully detected the plane surface and the on button is place on the plane surface

User press the on button The home appliances will turn on

User select off button The system will open the smartphone camera and scan any plane surface

User place the off button The system successfully detected the plane surface and the off button is place on the plane surface

User press the off button The home appliances will turn off

60

Bachelor of Computer Science (Honours)

Faculty of Information and Communication Technology (Kampar Campus), UTAR

Button Control Module

Test Action Expected Result Meet Expectation (✓/) User press the on button The home appliances will

turn on

User press the off button The home appliances will turn off

Voice command Module

Test Action Expected Result Meet Expectation (✓/) User provide correct

voice command “open living room light”

The system will recognize the keyword and then turn on living room light

User provide correct voice command “close living room light”

The system will recognize the keyword and then turn off living room light

User provide correct voice command “open living room fan”

The system will recognize the keyword and then turn on living room fan

User provide correct voice command “close living room fan”

The system will recognize the keyword and then turn off living room fan

User provide correct voice command “open bedroom light”

The system will recognize the keyword and then turn on bedroom light

User provide correct voice command “close bedroom light”

The system will recognize the keyword and then turn off bedroom light

User provide correct voice command “open bedroom fan”

The system will recognize the keyword and then turn on bedroom fan

61

Bachelor of Computer Science (Honours)

Faculty of Information and Communication Technology (Kampar Campus), UTAR

User provide correct voice command “close bedroom fan”

The system will recognize the keyword and then turn off bedroom fan

Use Case Testing

Use Case ID 1

Use Case Name Register Account

Step Action Expected

Result

Test Status (PASS/FAIL) Main Flow 1 The system displays

register button for user

System direct user to main page

PASS

2 The user presses Register button.

3 System validates user username, email and password.

Alternate/Exceptional Flows

1 Input a registered email address

Account will not be created

PASS

Table 5.1: Use case testing of Register Account Use Case ID 2

Use Case Name Login Account

Step Action Expected

Result

Test Status (PASS/FAIL) Main Flow 1 User inputs valid

username and password

The user login to the system and enter Manage

PASS

2 The user presses Login button.

62

Bachelor of Computer Science (Honours)

Faculty of Information and Communication Technology (Kampar Campus), UTAR

3 System validates user email and password.

Device Page to main page Alternate/Exceptional

Flows

1 Input an invalid email and password

System displays error message to user

PASS

2 User presses Login button

3 System validates user email and password

Table 5.2: Use case testing of Login Account

Use Case ID 3

Use Case Name Logout Account

Step Action Expected

Result

Test Status (PASS/FAIL) Main Flow 1 User presses Logout

button

System will logout the user and return to Login page

PASS

Table 5.3: Use case testing of Logout Account

63

Bachelor of Computer Science (Honours)

Faculty of Information and Communication Technology (Kampar Campus), UTAR

Use Case ID 4

Use Case Name Select Room

Step Action Expected

Result

Test Status (PASS/FAIL) Main Flow 1 User presses Login

button

The system shows the available room for user to select

PASS

2 User successfully login to the system

Alternate/Exceptional Flows

1 User fails to login the system

System returns to the home page

PASS

Table 5.4: Use case testing of Select Room

Use Case ID 5

Use Case Name Manage Device

Step Action Expected

Result

Test Status (PASS/FAIL) Main Flow 1 The system displays all

the available devices

The system show user chosen devices

PASS

2 User chooses devices to control

Table 5.5: Use case testing of Manage Device

64

Bachelor of Computer Science (Honours)

Faculty of Information and Communication Technology (Kampar Campus), UTAR

Use Case ID 6

Use Case Name Control Device

Step Action Expected

Result

Test Status (PASS/FAIL) Main Flow 1 User presses control

device button

The system turns on the selected home appliances.

The system navigate user to AR page if user press AR button

PASS

2 User chooses to use button or AR to control on or off of the home appliances

3 User controls the home devices

Table 5.6: Use case testing of Control Device

Use Case ID 7

Use Case Name Voice Command Control

Step Action Expected

Result

Test Status (PASS/FAIL) Main Flow 1 User presses Voice

Command control button

The system recognize the keyword and turn on or off of the home appliances

PASS

2 System starts voice command control service

3 User gives command

65

Bachelor of Computer Science (Honours)

Faculty of Information and Communication Technology (Kampar Campus), UTAR

Table 5.7: Use case testing of Voice Command Control Use Case ID 8

Use Case Name AR Control

Step Action Expected

Result

Test Status (PASS/FAIL) Main Flow 1 User chooses AR on

button or AR off button

The system will detect the plane and the AR button able to perform on or off function

PASS

2 The system will open user’s smartphone camera

3 User places the AR button

4 User presses the AR button

Table 5.8: Use case testing of AR Control

66

Bachelor of Computer Science (Honours)

Faculty of Information and Communication Technology (Kampar Campus), UTAR

CHAPTER 6

Dalam dokumen DECLARATION OF ORIGINALITY (Halaman 71-79)

Dokumen terkait