# Real-Time Evaluation of the Improved Eagle Strategy Model in the Internet of Things
## 5 Testing and Validation
### Evaluate the IES Model in a Real-Time Environment  
The proposed approach was tested in a real-time environment to ensure the dynamism and continuity of the system. This study employed the Smart Toilet system. A Smart Toilet  
\begin{table}
\begin{tabular}{c c c c c} \hline \hline
**TC\#** & **Input** & **Expected Output** & **Actual Output** & **Pass/Fail** \\ \hline \multirow{4}{*}{1} & \multirow{4}{*}{Celsius: 50} & Response Code: 200-OK & Response Code: 200-OK & \multirow{4}{*}{PASS} \\  & & 200-OK & 200-OK & \\ \hline \multirow{4}{*}{2} & \multirow{4}{*}{Celsius: ABC} & Response Code: & \multirow{4}{*}{Response Code: 200-OK} & \multirow{4}{*}{PASS} \\  & & 200-OK & & \\ \cline{1-1} \cline{5-5}  & & Error message & & \\ \cline{1-1} \cline{5-5}  & & & & \\ \cline{1-1} \cline{5-5}  & & & & \\ \hline \hline \end{tabular}
\end{table}
Table 11: Test cases for Weather function.  
\begin{table}
\begin{tabular}{c c c} \hline \hline
**Response Code** & **Description** \\ \hline Test Objective & To retrieve the countries’ information. \\ \hline Test Keyword & Currency \\ \hline Test Description & To retrieve the country information based on the selected country. \\ \hline \multirow{4}{*}{Test Procedure} & 1. & Provide the keyword in the Keyword search text box. \\  & 2. & Then, click the search button. \\  & 3. & At the services to be invoked in the WSC column, copy the first service URL. \\ \cline{1-1}  & 4. & Paste the copied service URL into ReadyAPI. \\ \cline{1-1}  & 5. & Provide the parameters required in the request column. \\ \cline{1-1}  & 6. & Then, click the “Send” button. \\  & 7. & Check the response code and the message-sending status in the response column. \\ \hline \hline \end{tabular}
\end{table}
Table 12: Test objective for the send currency service.  
\begin{table}
\begin{tabular}{c c c c} \hline \hline
**TC\#** & **Input** & **Expected Output** & **Actual Output** & **Pass/Fail** \\ \hline \multirow{4}{*}{1} & \multirow{4}{*}{Countsy ISO Code: MY} & Response Code: 200-OK & \multirow{4}{*}{Response Code: MY} \\  & & ISO Code: MY & ISO Code: MY \\ \cline{1-1}  & & Name: Malaysia & Name: Malaysia \\ \cline{1-1}  & & Phone Code: 60 & Phone Code: 60 & \multirow{4}{*}{PASS} \\ \cline{1-1}  & & Capital City: Kuala & Capital City: Kuala \\ \cline{1-1}  & & Lumpur & \multirow{4}{*}{Lumpur} \\ \cline{1-1}  & & Currency Code: MYR & Currency Code: MYR \\ \hline \multirow{2}{*}{2} & \multirow{2}{*}{Country ISO Code: 1234} & Response Code: 200-OK & \multirow{4}{*}{Country not exist} \\  & & Country not exist & & database \\ \hline \hline \end{tabular}
\end{table}
Table 13: Test cases for currency service.  
system was installed to monitor the usage of toilets and provide predictive maintenance and a janitor schedule to optimize resources. Additionally, this system provides an option for the user to report if the toilet is unhygienic and provides the toilet availability status. This system also sends a short message service (SMS) if any user reports that the toilet needs attention directly to the janitor on duty.  
The IES system is invoked inside the IoT device to maintain the system security level. If any user performs vandalism on the system, the alarm is triggered, and an SMS is sent to the security department for further action. The send SMS function is invoked by WS. During the system design, security measures are embedded into the IoT system. While developing WS for the Smart Toilet IoT system, the IES model accounted for reduced response times and service correctness. The first step in WSC is to design the architecture of the WSC, where Business Process Model Notation (BPMN) is designed. Figure 25 below shows the overall BPNM diagram for the Smart Toilet IoT system.  
Figure 26 below shows the workflow of Business Process Execution Language (BPEL). BPEL is a workflow designed using Microsoft Visual Studio. The workflow is designed using sequential order, invoking the IES to perform the task once the action is triggered.  
Figure 25: BPMN of Smart Toilet IoT System.