You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 line
7.3KB

  1. %&tex
  2. \subsection{Test Protocol}
  3. The last step of the preparation phase is to design tests.
  4. The tests are designed to validate if the system meets the specifications.
  5. While defining the tests, it became clear that part of the specifications was not explicitly defined.
  6. As the specifications were made before the design decissisions in the initial design and the feature definition, the specifications did not take that information into account.
  7. Updating the specifications after the design decissions was overlooked during the specification of the design plan.
  8. To ensure the repeatibility of the tests, this step starts with specifying the order of operation and improved specifications.
  9. \subsubsection{Defining the Order of Operation}
  10. There are two modes of operation: writing and wiping.
  11. Defining the order of operation also distributes the responsibility between the different components.
  12. The writing operation can be split in the following steps:
  13. \begin{order}{Writing}
  14. \emph{Precondition:} Marker as end-effector.
  15. \begin{enumerate}
  16. \item Move cable driven carriage to position of characters.
  17. \item Write three characters with the SCARA.
  18. \item Repeat step 1 and 2 till the Tweet is on the board.
  19. \item Move carriage away from the text on the board.
  20. \end{enumerate}
  21. \end{order}
  22. The other operation is wiping.
  23. This is similar to the operation of writing with the following steps:
  24. \begin{order}{Wiping}
  25. \emph{Precondition:} Wiper as end-effector.
  26. \begin{enumerate}
  27. \item Move cable driven carriage to position of characters.
  28. \item Clear the area in reach of the SCARA.
  29. \item Repeat step 1 and 2 till the Tweet is removed from on the board.
  30. \end{enumerate}
  31. \end{order}
  32. Furthermore, switching between the states requires the tool to be switched.
  33. However, at this point, it is not known how tools will be switched.
  34. Therefore, the order of operation is determined during the development of the end-effector.
  35. Additionally, the missing order of operation for the end-effector did not result in difficulty while defining the tests.
  36. \subsubsection{Improving Specifications}
  37. Based on the order of operation, the following specifications were added to the list in \autoref{sec:specifications}:
  38. \begin{specification}
  39. \begin{enumerate}
  40. \setcounter{enumi}{11}
  41. \item While writing, the SCARA shall have a writing speed of at least 1.5 characters per second.
  42. \item When the Carriage/base of the SCARA is at a static position, the SCARA shall be able to write at least three characters at that position.
  43. \item When the SCARA finished writing at their current position, the Carriage shall move the SCARA to it's next position where it can write the subsequent characters.
  44. \item When the SCARA has to be moved to a new position, the Carriage shall perform this movement within one second.
  45. \item When the system changes from writing to wiping or vice-versa, the SCARA and End-effector should change the tool within ten seconds.
  46. \end{enumerate}
  47. \end{specification}
  48. These additional specifications are also based on the combined system decission that was made in section \autoref{sec:initialdesign}.
  49. These specifications distribute responsibility between sub-components.
  50. \subsubsection{Setting up the tests}
  51. With the updated specifications it was possible to create a number of test cases.
  52. In total there are five small test cases and four large test cases.
  53. The small tests cover a sub-system and the large tests apply on the complete systems.
  54. Each tests has a list of specifications that are covered with the test and for smaller tests the subsystem under test is also determined.
  55. With a short description it is described how the test should be performed.
  56. One of the small tests focusses on the speed and range requirements of the SCARA:
  57. \setcounter{testcounter}{0}
  58. \begin{test}[label={rect}]{Small rectangle}
  59. During this test, a rectangle will be drawn on the whiteboard using the SCARA.
  60. This rectangle is will be at least \SI{50}{\milli\meter} high and \SI{70}{\milli\meter} wide, such that three characters fit within the rectangle.
  61. To test the speed requirements, the rectangle should be drawn within one second.
  62. \tcbline
  63. \begin{description}
  64. \item[Features:] SCARA
  65. \item[Specifications:] 3, 7, 11, 13
  66. \item[Results:] The test passes when:
  67. \begin{itemize}
  68. \item Rectangle height is at least \SI{50}{\milli\meter}
  69. \item Rectangle width is at least \SI{70}{\milli\meter}
  70. \item Completion time is less than \SI{1}{\second}
  71. \end{itemize}
  72. \end{description}
  73. \end{test}
  74. Repeatability is tested in one of the large system wide tests:
  75. \setcounter{testcounter}{5}
  76. \begin{test}[label={rep}]{Repeatability}
  77. This tests if the Writer can reach draw repeatedly on the same position on the board.
  78. The system will start with drawing multiple \SI{60}{\milli\meter} squares on the board in a random location.
  79. To test the repeatability, a circle with a \SI{55}{\milli\meter} diameter must be drawn inside of the square.
  80. This should be done with twenty squares in an area of at least \SI{1000}{\milli\meter} x \SI{300}{\milli\meter}.
  81. The drawing order of each square must be different from the drawing order of circles, this ensures that the Cable bot makes a different approach path.
  82. \tcbline
  83. \begin{description}
  84. \item[Features:] SCARA, Cable Bot
  85. \item[Specifications:] 3, 4, 9, 11
  86. \item[Results:]
  87. The test passes when:
  88. \begin{itemize}
  89. \item Each square has a circle drawn inside.
  90. \item The squares and circles are within \SI{5}{\milli\meter} of their given dimensions.
  91. \item All the circles are completely within their corresponding square.
  92. \end{itemize}
  93. \end{description}
  94. \end{test}
  95. The complete set of system tests is included in \autoref{app:test_specification}.
  96. \subsubsection{Evaluation}
  97. This step was completed without many difficulties.
  98. Even though it required a revision of the earlier specifications and defining order of operation.
  99. However, this is an issue with the preparation phase in general, not with this step in particular.
  100. During the analysis, I expected more specific tests.
  101. Each test could then be used as a milestone during the development of the system.
  102. Every time detail is added, an additional test passes.
  103. Or a test fails, notifying that something went wrong and should be investigated.
  104. Creating such specific tests relies on the details in the design of the system.
  105. The current design is basic and these details are added during the feature implementation.
  106. Nevertheless, this step resulted in a set of tests that cover all specifications and features that are specified in this preparation phase.
  107. When all the tests pass, the system should meet all the requirements.