@aj-shadow/actorjs-documentation-text 0.0.0-aj-beta.221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/.gitattributes +26 -0
  2. package/Documentation/Document-global-Be-100-more-efficient.txt +31 -0
  3. package/Documentation/Document-global-actorjs-trigger-mock-and-intercept-anything.txt +21 -0
  4. package/Documentation/Document-global-advanced-visualization.txt +28 -0
  5. package/Documentation/Document-global-debugging.txt +4 -0
  6. package/Documentation/Document-global-divide-and-reuse.txt +37 -0
  7. package/Documentation/Document-global-general-separation.txt +2 -0
  8. package/Documentation/Document-global-markup-anchor.txt +6 -0
  9. package/Documentation/Document-global-markup-api-status.txt +39 -0
  10. package/Documentation/Document-global-markup-chart-line.txt +18 -0
  11. package/Documentation/Document-global-markup-documentation-status.txt +39 -0
  12. package/Documentation/Document-global-markup-documentation.txt +72 -0
  13. package/Documentation/Document-global-markup-embed.txt +6 -0
  14. package/Documentation/Document-global-markup-flowchart.txt +88 -0
  15. package/Documentation/Document-global-markup-html.txt +122 -0
  16. package/Documentation/Document-global-markup-ie.txt +18 -0
  17. package/Documentation/Document-global-markup-image.txt +55 -0
  18. package/Documentation/Document-global-markup-lab.txt +63 -0
  19. package/Documentation/Document-global-markup-markup.txt +21 -0
  20. package/Documentation/Document-global-markup-navigation.txt +25 -0
  21. package/Documentation/Document-global-markup-node-diagram.txt +163 -0
  22. package/Documentation/Document-global-markup-note.txt +6 -0
  23. package/Documentation/Document-global-markup-ref.txt +6 -0
  24. package/Documentation/Document-global-markup-sequence-diagram.txt +215 -0
  25. package/Documentation/Document-global-markup-state-machine.txt +121 -0
  26. package/Documentation/Document-global-markup-table.txt +34 -0
  27. package/Documentation/Document-global-navigation-pane.txt +3 -0
  28. package/Documentation/Document-global-navigation.txt +2 -0
  29. package/Documentation/Document-global-specialized-javascript-editors.txt +2 -0
  30. package/Documentation/Document-global-stacks-connection.txt +2 -0
  31. package/Documentation/Document-global-stacks-server.txt +2 -0
  32. package/Documentation/Document-global-test-environment-overview.txt +15 -0
  33. package/Documentation/Document-global-the-architecture.txt +51 -0
  34. package/Documentation/Document-global-the-development-environment.txt +5 -0
  35. package/Documentation/Document-global-the-test-environment.txt +15 -0
  36. package/Documentation/Document-global-think-ahead.txt +35 -0
  37. package/Documentation/Document-global-thinking-in-actors-unlimited.txt +1 -0
  38. package/Documentation/Document-global-what-is-a-stack.txt +2 -0
  39. package/Documentation/Document-global-why-actorjs.txt +52 -0
  40. package/Documentation/Document-global-why-actors-unlimited.txt +182 -0
  41. package/Documentation/Document-global-x-test-case-tool.txt +2 -0
  42. package/Documentation/Navigation-Documentation-actorjs-global.txt +372 -0
  43. package/Documentation/Navigation-Documentation-actorsite-global.txt +363 -0
  44. package/Documentation/abstractions/Document-global-addressing.txt +81 -0
  45. package/Documentation/abstractions/Document-global-configuration-floor.txt +2 -0
  46. package/Documentation/abstractions/Document-global-content.txt +3 -0
  47. package/Documentation/abstractions/Document-global-functions-test.txt +4 -0
  48. package/Documentation/abstractions/Document-global-functions-unde-test.txt +2 -0
  49. package/Documentation/abstractions/Document-global-load-test.txt +3 -0
  50. package/Documentation/abstractions/Document-global-repo.txt +79 -0
  51. package/Documentation/abstractions/Document-global-shared-data.txt +5 -0
  52. package/Documentation/abstractions/Document-global-system-to-test.txt +2 -0
  53. package/Documentation/abstractions/Document-global-system-under-test.txt +3 -0
  54. package/Documentation/abstractions/Document-global-test-data.txt +251 -0
  55. package/Documentation/abstractions/Document-global-test-suite.txt +37 -0
  56. package/Documentation/abstractions/Document-global-verification-data.txt +103 -0
  57. package/Documentation/abstractions/actor/Document-global-actor-condition.txt +74 -0
  58. package/Documentation/abstractions/actor/Document-global-actor-local.txt +44 -0
  59. package/Documentation/abstractions/actor/Document-global-actor-originating.txt +100 -0
  60. package/Documentation/abstractions/actor/Document-global-actor-proxy.txt +119 -0
  61. package/Documentation/abstractions/actor/Document-global-actor-terminating.txt +101 -0
  62. package/Documentation/abstractions/actor/Document-global-actor.txt +90 -0
  63. package/Documentation/abstractions/actor/Document-global-execution-states.txt +21 -0
  64. package/Documentation/abstractions/actorpart/Document-global-actorpart.txt +2 -0
  65. package/Documentation/abstractions/stack/Document-global-client-connection.txt +3 -0
  66. package/Documentation/abstractions/stack/Document-global-connection.txt +3 -0
  67. package/Documentation/abstractions/stack/Document-global-decoder.txt +3 -0
  68. package/Documentation/abstractions/stack/Document-global-encoder.txt +3 -0
  69. package/Documentation/abstractions/stack/Document-global-message.txt +4 -0
  70. package/Documentation/abstractions/stack/Document-global-server-connection.txt +3 -0
  71. package/Documentation/abstractions/stack/Document-global-stack.txt +12 -0
  72. package/Documentation/abstractions/stack/Document-global-worker.txt +3 -0
  73. package/Documentation/abstractions/test-case/Document-global-phases.txt +30 -0
  74. package/Documentation/abstractions/test-case/Document-global-test-case-result.txt +23 -0
  75. package/Documentation/abstractions/test-case/Document-global-test-case.txt +199 -0
  76. package/Documentation/actor-api/Document-global-actor-part.txt +7 -0
  77. package/Documentation/actor-api/Document-global-actor.txt +375 -0
  78. package/Documentation/actor-api/Document-global-async.txt +176 -0
  79. package/Documentation/actor-api/Document-global-client-stack.txt +215 -0
  80. package/Documentation/actor-api/Document-global-content.txt +106 -0
  81. package/Documentation/actor-api/Document-global-logger.txt +426 -0
  82. package/Documentation/actor-api/Document-global-process.txt +7 -0
  83. package/Documentation/actor-api/Document-global-server-stack.txt +213 -0
  84. package/Documentation/actor-api/Document-global-shared-data.txt +259 -0
  85. package/Documentation/actor-api/Document-global-test-data.txt +816 -0
  86. package/Documentation/actor-api/Document-global-timer.txt +70 -0
  87. package/Documentation/actor-api/Document-global-verification-data.txt +624 -0
  88. package/Documentation/connection-worker-api/Document-global-logger.txt +3 -0
  89. package/Documentation/documentation-references.json +199 -0
  90. package/Documentation/embedded/Document-global-test-case-result.txt +10 -0
  91. package/Documentation/howto/Document-global-create-actor.txt +1 -0
  92. package/Documentation/howto/Document-global-create-stack.txt +1 -0
  93. package/Documentation/howto/Document-global-create-test-case.txt +1 -0
  94. package/Documentation/howto/Document-global-create-test-suite.txt +1 -0
  95. package/Documentation/howto/Document-global-define-addresses.txt +1 -0
  96. package/Documentation/howto/Document-global-define-fut.txt +1 -0
  97. package/Documentation/howto/Document-global-define-sut.txt +16 -0
  98. package/Documentation/howto/Document-global-full-workflow.txt +143 -0
  99. package/Documentation/howto/Document-global-normal-workflow.txt +58 -0
  100. package/Documentation/howto/Document-global-prerequisites.txt +8 -0
  101. package/Documentation/howto/prerequisites/Document-global-install-actorjs.txt +64 -0
  102. package/Documentation/howto/prerequisites/Document-global-install-git.txt +26 -0
  103. package/Documentation/howto/prerequisites/Document-global-install-nodejs.txt +19 -0
  104. package/Documentation/markup/Document-global-markup-test-case.txt +6 -0
  105. package/Documentation/markup/Document-global-markup-test-suite.txt +13 -0
  106. package/Documentation/markup/embed/Document-global-inner_markup_tc.txt +164 -0
  107. package/Documentation/nodejs-api/Document-global-fs.txt +7 -0
  108. package/Documentation/stack-api/Document-global-ascii-dictionary.txt +108 -0
  109. package/Documentation/stack-api/Document-global-binary-log.txt +91 -0
  110. package/Documentation/stack-api/Document-global-bit-byte.txt +80 -0
  111. package/Documentation/stack-api/Document-global-content-base.txt +169 -0
  112. package/Documentation/stack-api/Document-global-ip-log.txt +101 -0
  113. package/Documentation/stack-api/Document-global-log-inner.txt +152 -0
  114. package/Documentation/stack-api/Document-global-log-part-error.txt +12 -0
  115. package/Documentation/stack-api/Document-global-log-part-ref.txt +80 -0
  116. package/Documentation/stack-api/Document-global-log-part-text.txt +81 -0
  117. package/Documentation/tools/Document-global-actors.txt +196 -0
  118. package/Documentation/tools/Document-global-addressing.txt +38 -0
  119. package/Documentation/tools/Document-global-content.txt +1 -0
  120. package/Documentation/tools/Document-global-global-test-data.txt +197 -0
  121. package/Documentation/tools/Document-global-stacks.txt +1 -0
  122. package/Documentation/tools/Document-global-test-case-analyze.txt +3 -0
  123. package/Documentation/tools/Document-global-test-case-debug.txt +16 -0
  124. package/Documentation/tools/Document-global-test-case-definition.txt +37 -0
  125. package/Documentation/tools/Document-global-test-case-execution.txt +28 -0
  126. package/Documentation/tools/Document-global-test-case-log.txt +95 -0
  127. package/Documentation/tools/Document-global-test-case-sequence-diagram.txt +17 -0
  128. package/Documentation/tools/Document-global-test-case-specification.txt +3 -0
  129. package/Documentation/tools/Document-global-test-cases.txt +11 -0
  130. package/Documentation/tools/Document-global-tool-test-suite.txt +202 -0
  131. package/Education/Document-global-add-your-first-addresses.txt +75 -0
  132. package/Education/Document-global-define-your-first-sut.txt +18 -0
  133. package/Education/Document-global-make-your-first-actors.txt +35 -0
  134. package/Education/Document-global-make-your-first-test-case.txt +43 -0
  135. package/Education/Document-global-make-your-first-test-suite.txt +29 -0
  136. package/Education/Document-global-share-your-work.txt +35 -0
  137. package/Education/Navigation-Education-actorjs-global.txt +31 -0
  138. package/LICENSE.txt +96 -0
  139. package/README.md +5 -0
  140. package/Workshop/Document-global-actordemo-image-ai.txt +5 -0
  141. package/Workshop/Document-global-actordemo-login.txt +10 -0
  142. package/Workshop/Document-global-actordemo-site.txt +3 -0
  143. package/Workshop/Document-global-actordemo-start.txt +5 -0
  144. package/Workshop/Document-global-actordemo-the-architecture.txt +27 -0
  145. package/Workshop/Document-global-introduction-actor.txt +84 -0
  146. package/Workshop/Document-global-introduction-actorjs.txt +42 -0
  147. package/Workshop/Document-global-introduction-stack.txt +25 -0
  148. package/Workshop/Document-global-introduction-system-under-test.txt +102 -0
  149. package/Workshop/Document-global-introduction-test-case.txt +50 -0
  150. package/Workshop/Document-global-introduction-test-suite.txt +31 -0
  151. package/Workshop/Document-global-login-with-puppeter.txt +45 -0
  152. package/Workshop/Document-global-mock-with-http.txt +83 -0
  153. package/Workshop/Document-global-mock-with-icap.txt +94 -0
  154. package/Workshop/Document-global-prerequisites-actorJs.txt +18 -0
  155. package/Workshop/Document-global-prerequisites-actordemo.txt +15 -0
  156. package/Workshop/Document-global-trigger-with-http.txt +93 -0
  157. package/Workshop/Document-global-trigger-with-puppeter.txt +49 -0
  158. package/Workshop/Navigation-Workshop-actorjs-global.txt +86 -0
  159. package/npm-shrinkwrap.json +13 -0
  160. package/package.json +10 -0
@@ -0,0 +1,624 @@
1
+ # **Verification Data API**
2
+ [[API-STATUS=STABLE, ]]
3
+ [[DOC-STATUS=PARTLY, ]]
4
+
5
+ ## **Description**
6
+
7
+ An [[REF=Actor, ABS_Actor]] can read, generate and format [[REF=, ABS_Verification_Data]]. Verifications can be done in all states, but it is typically done in the [[REF=, ABS_Actor_State_Execution]] ***run**.
8
+
9
+ The implementation of the [[REF=, ABS_Verification_Data]] API starts in [[REF=, CODE_Verification_Value]], [[REF=, CODE_Verification_Mandatory]] or [[REF=, CODE_Verification_Optional]].
10
+ [[ANCHOR={"id":"3092475c-5b5d-4680-a59f-c4c9c3055817","visible":true}]]
11
+
12
+ ## **API Methods**
13
+ + **[VERIFY_VALUE](#VERIFY_VALUE)**
14
+ + **[VERIFY_CONTENT_VALUE](#VERIFY_CONTENT_VALUE)** `ToDo`
15
+ + **[VERIFY_OPTIONAL](#VERIFY_OPTIONAL)**
16
+ + **[*VERIFY_CONTENT_OPTIONAL](#*VERIFY_CONTENT_OPTIONAL)** `ToDo`
17
+ + **[VERIFY_MANDATORY](#VERIFY_MANDATORY)**
18
+ + **[*VERIFY_CONTENT_MANDATORY](#*VERIFY_CONTENT_MANDATORY)** `ToDo`
19
+
20
+ ***
21
+ [[ANCHOR={"id":"VERIFY_VALUE","visible":true}]]
22
+ ### **VERIFY_VALUE**
23
+ ```
24
+ VERIFY_VALUE(expectedValue, actualValue[, description[, operation]])
25
+ ```
26
+ Verifies an actual value against a hard-coded expected value.
27
+
28
+ #### **Method Description**
29
+ ```table
30
+ Config(classHeading: )
31
+
32
+ |Parameters |
33
+ |Name |Type |Description |
34
+ |expectedValue|[[REF=,MDN_string]]&#160;&#124;&#160;[[REF=,MDN_strings]]&#160;&#124;&#160;[[REF=,MDN_arraystrings]]<br>[[REF=,MDN_number]]&#160;&#124;&#160;[[REF=,MDN_numbers]]&#160;&#124;&#160;[[REF=,MDN_arraynumbers]]<br>[[REF=,MDN_boolean]]&#160;&#124;&#160;[[REF=,MDN_booleans]]&#160;&#124;&#160;[[REF=,MDN_arraybooleans]]|Value against which actual value is verified. |
35
+ |actualValue |[[REF=,MDN_string]]&#160;&#124;&#160;[[REF=,MDN_strings]]&#160;&#124;&#160;[[REF=,MDN_arraystrings]]<br>[[REF=,MDN_number]]&#160;&#124;&#160;[[REF=,MDN_numbers]]&#160;&#124;&#160;[[REF=,MDN_arraynumbers]]<br>[[REF=,MDN_boolean]]&#160;&#124;&#160;[[REF=,MDN_booleans]]&#160;&#124;&#160;[[REF=,MDN_arraybooleans]]|Value verified against expected value. |
36
+ |description |[[REF=,MDN_string]] |Optional description of the verification. |
37
+ |operation |[[REF=,MDN_Operator]] |A relational or an equality operator (default: '===') used when comparing expected value to actual value. For non-primitive types, comparison is done element by element.|
38
+ ```
39
+ The verification will throw an exception if it fails.
40
+
41
+ #### **Example using VERIFY_VALUE with primitive types**
42
+ ```tc
43
+
44
+ ```
45
+
46
+ ```javascript
47
+
48
+
49
+
50
+
51
+
52
+ *run() { // A
53
+ VERIFY_VALUE('Hello', 'Hello'); // Success
54
+ VERIFY_VALUE('Hi', 'Hello'); // Failure
55
+ }
56
+
57
+ *run() { // B
58
+ VERIFY_VALUE(32, 32); // Success
59
+ VERIFY_VALUE(31, 32); // Failure
60
+ }
61
+
62
+ *run() { // C
63
+ VERIFY_VALUE(true, true); // Success
64
+ VERIFY_VALUE(2 > 1, true); // Success
65
+ VERIFY_VALUE(false, true); // Failure
66
+ }
67
+
68
+ *run() { // D
69
+ VERIFY_VALUE('1', 1, '', '=='); // Success
70
+ VERIFY_VALUE(0, 1, '', '<'); // Success
71
+ VERIFY_VALUE(2, 1, '', '<'); // Failure
72
+ }
73
+
74
+ ```
75
+
76
+ #### **Test Cases using VERIFY_VALUE with primitive types**
77
+ + [DocActorApiVerifyValueASuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueASuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
78
+ + [DocActorApiVerifyValueAFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueAFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
79
+ + [DocActorApiVerifyValueBSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueBSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
80
+ + [DocActorApiVerifyValueBFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueBFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
81
+ + [DocActorApiVerifyValueCSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueCSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
82
+ + [DocActorApiVerifyValueCFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueCFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
83
+ + [DocActorApiVerifyValueDSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueDSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
84
+ + [DocActorApiVerifyValueDFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueDFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
85
+ <br>
86
+
87
+ #### **Example using VERIFY_VALUE with arrays**
88
+ ```tc
89
+
90
+ ```
91
+
92
+ ```javascript
93
+
94
+
95
+
96
+
97
+
98
+
99
+ *run() { // J
100
+ VERIFY_VALUE(['Hello', 'Hi'], ['Hello', 'Hi']); // Success
101
+ VERIFY_VALUE(['Hi', 'Hello'], ['Hello', 'Hi']); // Failure
102
+ }
103
+
104
+ *run() { // K
105
+ VERIFY_VALUE([31.1, 32.2], [31.1, 32.2]); // Success
106
+ VERIFY_VALUE([31.1, 32.0], [31.1, 32.2]); // Failure
107
+ }
108
+
109
+ *run() { // L
110
+ VERIFY_VALUE([true, false], [true, false]); // Success
111
+ VERIFY_VALUE([2 > 1, 2 > 3], [true, false]); // Success
112
+ VERIFY_VALUE([2 > 1, 3 > 2], [true, false]); // Failure
113
+ }
114
+
115
+ *run() { // M
116
+ VERIFY_VALUE(['1.1', '2.2'], [1.1, 2.2], '', '=='); // Success
117
+ VERIFY_VALUE([1.0, 2.1], [1.1, 2.2], '', '<'); // Success
118
+ VERIFY_VALUE([1.1, 2.1], [1.1, 2.2], '', '<'); // Failure
119
+ }
120
+
121
+ ```
122
+
123
+ #### **Test Cases using VERIFY_VALUE with arrays**
124
+ + [DocActorApiVerifyValueJSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueJSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
125
+ + [DocActorApiVerifyValueJFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueJFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
126
+ + [DocActorApiVerifyValueKSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueKSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
127
+ + [DocActorApiVerifyValueKFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueKFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
128
+ + [DocActorApiVerifyValueLSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueLSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
129
+ + [DocActorApiVerifyValueLFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueLFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
130
+ + [DocActorApiVerifyValueMSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueMSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
131
+ + [DocActorApiVerifyValueMFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueMFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
132
+ <br>
133
+
134
+ #### **Example using VERIFY_VALUE with arrays of arrays**
135
+ ```tc
136
+
137
+ ```
138
+
139
+ ```javascript
140
+
141
+
142
+
143
+
144
+
145
+
146
+ *run() { // S
147
+ VERIFY_VALUE([['Hello', 'Hi'], ['Bye', 'Later']], [['Hello', 'Hi'], ['Bye', 'Later']]); // Success
148
+ VERIFY_VALUE([['Hi', 'Hi'], ['Bye', 'Later']], [['Hello', 'Hi'], ['Bye', 'Later']]); // Failure
149
+ }
150
+
151
+ *run() { // T
152
+ VERIFY_VALUE([[1, 2], [3, 4]], [[1, 2], [3, 4]]); // Success
153
+ VERIFY_VALUE([[3, 4], [1, 2]], [[1, 2], [3, 4]]); // Failure
154
+ }
155
+
156
+ *run() { // U
157
+ VERIFY_VALUE([[false, false], [false, false]], [[false, false], [false, false]]); // Success
158
+ VERIFY_VALUE([[3 < 2, 2 < 1], [3 == 2, 2 == 1]], [[false, false], [false, false]]); // Success
159
+ VERIFY_VALUE([[3 > 2, 2 > 1], [3 != 2, '1' == 1]], [[false, false], [false, false]]); // Failure
160
+ }
161
+
162
+ *run() { // V
163
+ VERIFY_VALUE([['1.1', '2.2'], ['3.3', '4.4']], [[1.1, 2.2], [3.3, 4.4]], '', '=='); // Success
164
+ VERIFY_VALUE([['1.0', '2.1'], ['3.2', '4.3']], [[1.1, 2.2], [3.3, 4.4]], '', '<'); // Success
165
+ VERIFY_VALUE([[1.2, 2.3], [3.4, 4.4]], [[1.1, 2.2], [3.3, 4.4]], '', '>'); // Failure
166
+ }
167
+
168
+ ```
169
+
170
+ #### **Test Cases using VERIFY_VALUE with arrays of arrays**
171
+ + [DocActorApiVerifyValueSSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueSSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
172
+ + [DocActorApiVerifyValueSFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueSFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
173
+ + [DocActorApiVerifyValueTSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueTSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
174
+ + [DocActorApiVerifyValueTFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueTFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
175
+ + [DocActorApiVerifyValueUSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueUSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
176
+ + [DocActorApiVerifyValueUFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueUFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
177
+ + [DocActorApiVerifyValueVSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyValueVSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
178
+ + [DocActorApiVerifyValueVFailure](/../test-cases/Actor/Doc/DocActorApiVerifyValueVFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
179
+
180
+ ***
181
+ [[ANCHOR={"id":"VERIFY_OPTIONAL","visible":true}]]
182
+ ### **VERIFY_OPTIONAL**
183
+ ```
184
+ VERIFY_OPTIONAL(expectedKey, actualValue[, index1[, index2]])
185
+ ```
186
+ Verifies an actual value against an expected value. If no expected value is found, no actual verification is done, but the verification is deemed successful.
187
+
188
+ #### **Method Description**
189
+ ```table
190
+ Config(classHeading: )
191
+
192
+ |Parameters |
193
+ |Name |Type |Description |
194
+ |expectedKey|[[REF=,MDN_string]] |String used in a [[REF=, ABS_Test_Data_Table_Lookup]] to find ***expected value***. |
195
+ |actualValue|[[REF=,MDN_string]]&#160;&#124;&#160;[[REF=,MDN_strings]]&#160;&#124;&#160;[[REF=,MDN_arraystrings]]<br>[[REF=,MDN_number]]&#160;&#124;&#160;[[REF=,MDN_numbers]]&#160;&#124;&#160;[[REF=,MDN_arraynumbers]]<br>[[REF=,MDN_boolean]]&#160;&#124;&#160;[[REF=,MDN_booleans]]&#160;&#124;&#160;[[REF=,MDN_arraybooleans]]|Value verified against ***expected value*** (or a subset thereof). |
196
+ |index1 |[[REF=,MDN_number]] |Points to an element (a primitive type or an array) in ***expected value*** to verify actual value against.|
197
+ |index2 |[[REF=,MDN_number]] |Points to an element in an array given by ***index1*** to verify actual value against. |
198
+ ```
199
+ The verification will throw an exception if it fails.
200
+
201
+ #### **Example using VERIFY_OPTIONAL with primitive types**
202
+ ```tc
203
+ |VerificationTestCase |
204
+ |key |value|operation|type |description|
205
+ |demoKey1|Hello| | | |
206
+ |demoKey2|Hi | | | |
207
+ |demoKey3|33.3 |== |number | |
208
+ |demoKey4|22.2 |> |number | |
209
+ |demoKey5|44.4 | |number | |
210
+ |demoKey6|44.4 |== | | |
211
+ |demoKey7|false| |boolean| |
212
+ |demoKey8|true | |boolean| |
213
+ | | | | | |
214
+ ```
215
+
216
+ ```javascript
217
+
218
+
219
+
220
+
221
+
222
+
223
+ *run() { // A
224
+ VERIFY_OPTIONAL('demoKey1', 'Hello'); // Success
225
+ VERIFY_OPTIONAL('demoKeyX', 'Hello'); // Success
226
+ VERIFY_OPTIONAL('demoKey2', 'Hello'); // Failure
227
+ }
228
+
229
+ *run() { // B
230
+ VERIFY_OPTIONAL('demoKey3', '33.3'); // Success
231
+ VERIFY_OPTIONAL('demoKeyX', '33.3'); // Success
232
+ VERIFY_OPTIONAL('demoKey4', '33.3'); // Failure
233
+ }
234
+
235
+ *run() { // C
236
+ VERIFY_OPTIONAL('demoKey5', 44.4); // Success
237
+ VERIFY_OPTIONAL('demoKey6', 44.4); // Success
238
+ VERIFY_OPTIONAL('demoKeyX', 44.4); // Success
239
+ VERIFY_OPTIONAL('demoKey3', 44.4); // Failure
240
+ }
241
+
242
+ *run() { // D
243
+ VERIFY_OPTIONAL('demoKey7', false); // Success
244
+ VERIFY_OPTIONAL('demoKeyX', false); // Success
245
+ VERIFY_OPTIONAL('demoKey8', false); // Failure
246
+ }
247
+
248
+ ```
249
+
250
+ #### **Test Cases using VERIFY_OPTIONAL with primitive types**
251
+ + [DocActorApiVerifyOptionalASuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalASuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
252
+ + [DocActorApiVerifyOptionalAFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalAFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
253
+ + [DocActorApiVerifyOptionalBSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalBSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
254
+ + [DocActorApiVerifyOptionalBFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalBFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
255
+ + [DocActorApiVerifyOptionalCSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalCSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
256
+ + [DocActorApiVerifyOptionalCFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalCFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
257
+ + [DocActorApiVerifyOptionalDSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalDSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
258
+ + [DocActorApiVerifyOptionalDFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalDFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
259
+ <br>
260
+
261
+ #### **Example using VERIFY_OPTIONAL with arrays**
262
+ ```tc
263
+ |VerificationTestCase |
264
+ |key |value |operation|type |description|
265
+ |demoKey1 |["Hello", "Hi"]| |[string] | |
266
+ |demoKey2[]|Hello | | | |
267
+ |demoKey2[]|Hi | | | |
268
+ |demoKey3 |[1, 2] | |[number] | |
269
+ |demoKey4[]|1 | |number | |
270
+ |demoKey4[]|2 | |number | |
271
+ |demoKey5 |[3, 4] |> |[number] | |
272
+ |demoKey6 |[3, 4] |< |[number] | |
273
+ |demoKey7 |[true, false] | |[boolean]| |
274
+ |demoKey8[]|true | |boolean | |
275
+ |demoKey8[]|false | |boolean | |
276
+ | | | | | |
277
+ ```
278
+
279
+ ```javascript
280
+
281
+
282
+
283
+
284
+
285
+
286
+ *run() { // J
287
+ VERIFY_OPTIONAL('demoKey1', ['Hello', 'Hi']); // Success
288
+ VERIFY_OPTIONAL('demoKey2', ['Hello', 'Hi']); // Success
289
+ VERIFY_OPTIONAL('demoKeyX', ['Hello', 'Hi']); // Success
290
+ VERIFY_OPTIONAL('demoKey1', ['Hi', 'Hello']); // Failure
291
+ }
292
+
293
+ *run() { // K
294
+ VERIFY_OPTIONAL('demoKey3', [1, 2]); // Success
295
+ VERIFY_OPTIONAL('demoKey4', [1, 2]); // Success
296
+ VERIFY_OPTIONAL('demoKey5', [1, 2]); // Success
297
+ VERIFY_OPTIONAL('demoKeyX', [1, 2]); // Success
298
+ VERIFY_OPTIONAL('demoKey6', [1, 2]); // Failure
299
+ }
300
+
301
+ *run() { // L
302
+ VERIFY_OPTIONAL('demoKey7', [true, false]); // Success
303
+ VERIFY_OPTIONAL('demoKey8', [true, false]); // Success
304
+ VERIFY_OPTIONAL('demoKeyX', [true, false]); // Success
305
+ VERIFY_OPTIONAL('demoKey8', [true, true]); // Failure
306
+ }
307
+
308
+ *run() { // M
309
+ VERIFY_OPTIONAL('demoKey1', 'Hello', 0); // Success
310
+ VERIFY_OPTIONAL('demoKey2', 'Hi', 1); // Success
311
+ VERIFY_OPTIONAL('demoKey3', 1, 0); // Success
312
+ VERIFY_OPTIONAL('demoKey5', 2, 1); // Success
313
+ VERIFY_OPTIONAL('demoKey7', true, 0); // Success
314
+ VERIFY_OPTIONAL('demoKey8', true, 1); // Failure
315
+ }
316
+
317
+ ```
318
+
319
+ #### **Test Cases using VERIFY_OPTIONAL with arrays**
320
+ + [DocActorApiVerifyOptionalJSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalJSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
321
+ + [DocActorApiVerifyOptionalJFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalJFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
322
+ + [DocActorApiVerifyOptionalKSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalKSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
323
+ + [DocActorApiVerifyOptionalKFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalKFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
324
+ + [DocActorApiVerifyOptionalLSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalLSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
325
+ + [DocActorApiVerifyOptionalLFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalLFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
326
+ + [DocActorApiVerifyOptionalMSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalMSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
327
+ + [DocActorApiVerifyOptionalMFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalMFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
328
+ <br>
329
+ #### **Example using VERIFY_OPTIONAL with arrays of arrays**
330
+ ```tc
331
+ |VerificationTestCase |
332
+ |key |value |operation|type |description|
333
+ |demoKey1 |[["Hello", "Hi"], ["Bye", "Later"]]| |[[string]] | |
334
+ |demoKey2[]|["Hello", "Hi"] | |[string] | |
335
+ |demoKey2[]|["Bye", "Later"] | |[string] | |
336
+ |demoKey3 |[[1, 2], [5, 6]] | |[[number]] | |
337
+ |demoKey4[]|[1, 2] | |[number] | |
338
+ |demoKey4[]|[5, 6] | |[number] | |
339
+ |demoKey5 |[[3, 4], [7, 8]] |> |[[number]] | |
340
+ |demoKey6[]|[3, 4] |< |[number] | |
341
+ |demoKey6[]|[7, 8] |> |[number] | |
342
+ |demoKey7 |[[true, true], [false, false]] | |[[boolean]]| |
343
+ |demoKey8[]|[true, true] | |[boolean] | |
344
+ |demoKey8[]|[false, false] | |[boolean] | |
345
+ | | | | | |
346
+ ```
347
+
348
+ ```javascript
349
+
350
+
351
+
352
+
353
+
354
+
355
+ *run() { // S
356
+ VERIFY_OPTIONAL('demoKey1', [['Hello', 'Hi'], ['Bye', 'Later']]); // Success
357
+ VERIFY_OPTIONAL('demoKey2', [['Hello', 'Hi'], ['Bye', 'Later']]); // Success
358
+ VERIFY_OPTIONAL('demoKeyX', [['Hello', 'Hi'], ['Bye', 'Later']]); // Success
359
+ VERIFY_OPTIONAL('demoKey1', [['Hello', 'Hi'], ['Later', 'Bye']]); // Failure
360
+ }
361
+
362
+ *run() { // T
363
+ VERIFY_OPTIONAL('demoKey3', [[1, 2], [5, 6]]); // Success
364
+ VERIFY_OPTIONAL('demoKey4', [[1, 2], [5, 6]]); // Success
365
+ VERIFY_OPTIONAL('demoKey5', [[1, 2], [5, 6]]); // Success
366
+ VERIFY_OPTIONAL('demoKey6', [[5, 6], [1, 2]]); // Success
367
+ VERIFY_OPTIONAL('demoKeyX', [[1, 2], [5, 6]]); // Success
368
+ VERIFY_OPTIONAL('demoKey4', [[1, 2], [4, 6]]); // Failure
369
+ }
370
+
371
+ *run() { // U
372
+ VERIFY_OPTIONAL('demoKey7', [[true, true], [false, false]]); // Success
373
+ VERIFY_OPTIONAL('demoKey8', [[true, true], [false, false]]); // Success
374
+ VERIFY_OPTIONAL('demoKeyX', [[true, true], [false, false]]); // Success
375
+ VERIFY_OPTIONAL('demoKey7', [[true, false], [true, false]]); // Failure
376
+ }
377
+
378
+ *run() { // V
379
+ VERIFY_OPTIONAL('demoKey1', ['Hello', 'Hi'], 0); // Success
380
+ VERIFY_OPTIONAL('demoKey2', 'Bye', 1, 0); // Success
381
+ VERIFY_OPTIONAL('demoKey3', [1, 2], 0); // Success
382
+ VERIFY_OPTIONAL('demoKey4', 6, 1, 1); // Success
383
+ VERIFY_OPTIONAL('demoKey7', [true, true], 0); // Success
384
+ VERIFY_OPTIONAL('demoKey8', true, 0, 1); // Success
385
+ VERIFY_OPTIONAL('demoKey1', 'Later', 2, 2); // Failure
386
+ }
387
+
388
+ ```
389
+
390
+ #### **Test Cases using VERIFY_OPTIONAL with arrays of arrays**
391
+ + [DocActorApiVerifyOptionalSSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalSSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
392
+ + [DocActorApiVerifyOptionalSFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalSFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
393
+ + [DocActorApiVerifyOptionalTSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalTSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
394
+ + [DocActorApiVerifyOptionalTFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalTFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
395
+ + [DocActorApiVerifyOptionalUSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalUSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
396
+ + [DocActorApiVerifyOptionalUFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalUFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
397
+ + [DocActorApiVerifyOptionalVSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalVSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
398
+ + [DocActorApiVerifyOptionalVFailure](/../test-cases/Actor/Doc/DocActorApiVerifyOptionalVFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
399
+ <br>
400
+ ***
401
+ [[ANCHOR={"id":"VERIFY_MANDATORY","visible":true}]]
402
+ ### **VERIFY_MANDATORY**
403
+ ```
404
+ VERIFY_MANDATORY(expectedKey, actualValue[, index1[, index2]])
405
+ ```
406
+ Verifies an actual value against an expected value. If no expected value is found, the verification is deemed to fail.
407
+
408
+ #### **Method Description**
409
+ ```table
410
+ Config(classHeading: )
411
+
412
+ |Parameters |
413
+ |Name |Type |Description |
414
+ |expectedKey|[[REF=,MDN_string]] |String used in a [[REF=, ABS_Test_Data_Table_Lookup]] to find ***expected value***. |
415
+ |actualValue|[[REF=,MDN_string]]&#160;&#124;&#160;[[REF=,MDN_strings]]&#160;&#124;&#160;[[REF=,MDN_arraystrings]]<br>[[REF=,MDN_number]]&#160;&#124;&#160;[[REF=,MDN_numbers]]&#160;&#124;&#160;[[REF=,MDN_arraynumbers]]<br>[[REF=,MDN_boolean]]&#160;&#124;&#160;[[REF=,MDN_booleans]]&#160;&#124;&#160;[[REF=,MDN_arraybooleans]]|Value verified against ***expected value*** (or a subset thereof). |
416
+ |index1 |[[REF=,MDN_number]] |Points to an element (a primitive type or an array) in ***expected value*** to verify actual value against.|
417
+ |index2 |[[REF=,MDN_number]] |Points to an element in an array given by ***index1*** to verify actual value against. |
418
+ ```
419
+ The verification will throw an exception if it fails.
420
+
421
+ #### **Example using VERIFY_MANDATORY with primitive types**
422
+ ```tc
423
+ |VerificationTestCase |
424
+ |key |value|operation|type |description|
425
+ |demoKey1|Hello| | | |
426
+ |demoKey2|Hi | | | |
427
+ |demoKey3|33.3 |== |number | |
428
+ |demoKey4|22.2 |> |number | |
429
+ |demoKey5|44.4 | |number | |
430
+ |demoKey6|44.4 |== | | |
431
+ |demoKey7|false| |boolean| |
432
+ |demoKey8|true | |boolean| |
433
+ | | | | | |
434
+ ```
435
+
436
+ ```javascript
437
+
438
+
439
+
440
+
441
+
442
+
443
+ *run() { // A
444
+ VERIFY_MANDATORY('demoKey1', 'Hello'); // Success
445
+ VERIFY_MANDATORY('demoKey2', 'Hello'); // Failure
446
+ }
447
+
448
+ *run() { // B
449
+ VERIFY_MANDATORY('demoKey3', '33.3'); // Success
450
+ VERIFY_MANDATORY('demoKey4', '33.3'); // Failure
451
+ }
452
+
453
+ *run() { // C
454
+ VERIFY_MANDATORY('demoKey5', 44.4); // Success
455
+ VERIFY_MANDATORY('demoKey6', 44.4); // Success
456
+ VERIFY_MANDATORY('demoKeyX', 44.4); // Failure
457
+ }
458
+
459
+ *run() { // D
460
+ VERIFY_MANDATORY('demoKey7', false); // Success
461
+ VERIFY_MANDATORY('demoKey8', false); // Failure
462
+ }
463
+
464
+ ```
465
+
466
+ #### **Test Cases using VERIFY_MANDATORY with primitive types**
467
+ + [DocActorApiVerifyMandatoryASuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryASuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
468
+ + [DocActorApiVerifyMandatoryAFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryAFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
469
+ + [DocActorApiVerifyMandatoryBSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryBSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
470
+ + [DocActorApiVerifyMandatoryBFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryBFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
471
+ + [DocActorApiVerifyMandatoryCSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryCSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
472
+ + [DocActorApiVerifyMandatoryCFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryCFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
473
+ + [DocActorApiVerifyMandatoryDSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryDSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
474
+ + [DocActorApiVerifyMandatoryDFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryDFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
475
+ <br>
476
+
477
+ #### **Example using VERIFY_MANDATORY with arrays**
478
+ ```tc
479
+ |VerificationTestCase |
480
+ |key |value |operation|type |description|
481
+ |demoKey1 |["Hello", "Hi"]| |[string] | |
482
+ |demoKey2[]|Hello | | | |
483
+ |demoKey2[]|Hi | | | |
484
+ |demoKey3 |[1, 2] | |[number] | |
485
+ |demoKey4[]|1 | |number | |
486
+ |demoKey4[]|2 | |number | |
487
+ |demoKey5 |[3, 4] |> |[number] | |
488
+ |demoKey6 |[3, 4] |< |[number] | |
489
+ |demoKey7 |[true, false] | |[boolean]| |
490
+ |demoKey8[]|true | |boolean | |
491
+ |demoKey8[]|false | |boolean | |
492
+ | | | | | |
493
+ ```
494
+
495
+ ```javascript
496
+
497
+
498
+
499
+
500
+
501
+
502
+ *run() { // J
503
+ VERIFY_MANDATORY('demoKey1', ['Hello', 'Hi']); // Success
504
+ VERIFY_MANDATORY('demoKey2', ['Hello', 'Hi']); // Success
505
+ VERIFY_MANDATORY('demoKeyX', ['Hello', 'Hi']); // Failure
506
+ }
507
+
508
+ *run() { // K
509
+ VERIFY_MANDATORY('demoKey3', [1, 2]); // Success
510
+ VERIFY_MANDATORY('demoKey4', [1, 2]); // Success
511
+ VERIFY_MANDATORY('demoKey5', [1, 2]); // Success
512
+ VERIFY_MANDATORY('demoKey6', [1, 2]); // Failure
513
+ }
514
+
515
+ *run() { // L
516
+ VERIFY_MANDATORY('demoKey7', [true, false]); // Success
517
+ VERIFY_MANDATORY('demoKey8', [true, false]); // Success
518
+ VERIFY_MANDATORY('demoKey8', [true, true]); // Failure
519
+ }
520
+
521
+ *run() { // M
522
+ VERIFY_MANDATORY('demoKey1', 'Hi', 1); // Success
523
+ VERIFY_MANDATORY('demoKey2', 'Hello', 0); // Success
524
+ VERIFY_MANDATORY('demoKey3', 2, 1); // Success
525
+ VERIFY_MANDATORY('demoKey4', 1, 0); // Success
526
+ VERIFY_MANDATORY('demoKey8', false, 1); // Success
527
+ VERIFY_MANDATORY('demoKey8', false, 0); // Failure
528
+
529
+ }
530
+
531
+ ```
532
+
533
+ #### **Test Cases using VERIFY_MANDATORY with arrays**
534
+ + [DocActorApiVerifyMandatoryJSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryJSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
535
+ + [DocActorApiVerifyMandatoryJFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryJFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
536
+ + [DocActorApiVerifyMandatoryKSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryKSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
537
+ + [DocActorApiVerifyMandatoryKFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryKFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
538
+ + [DocActorApiVerifyMandatoryLSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryLSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
539
+ + [DocActorApiVerifyMandatoryLFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryLFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
540
+ + [DocActorApiVerifyMandatoryMSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryMSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
541
+ + [DocActorApiVerifyMandatoryMFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryMFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
542
+ <br>
543
+ #### **Example using VERIFY_MANDATORY with arrays of arrays**
544
+ ```tc
545
+ |VerificationTestCase |
546
+ |key |value |operation|type |description|
547
+ |demoKey1 |[["Hello", "Hi"], ["Bye", "Later"]]| |[[string]] | |
548
+ |demoKey2[]|["Hello", "Hi"] | |[string] | |
549
+ |demoKey2[]|["Bye", "Later"] | |[string] | |
550
+ |demoKey3 |[[1, 2], [5, 6]] | |[[number]] | |
551
+ |demoKey4[]|[1, 2] | |[number] | |
552
+ |demoKey4[]|[5, 6] | |[number] | |
553
+ |demoKey5 |[[3, 4], [7, 8]] |> |[[number]] | |
554
+ |demoKey6[]|[3, 4] |< |[number] | |
555
+ |demoKey6[]|[7, 8] |> |[number] | |
556
+ |demoKey7 |[[true, true], [false, false]] | |[[boolean]]| |
557
+ |demoKey8[]|[true, true] | |[boolean] | |
558
+ |demoKey8[]|[false, false] | |[boolean] | |
559
+ | | | | | |
560
+ ```
561
+
562
+ ```javascript
563
+
564
+
565
+
566
+
567
+
568
+
569
+ *run() { // S
570
+ VERIFY_MANDATORY('demoKey1', [['Hello', 'Hi'], ['Bye', 'Later']]); // Success
571
+ VERIFY_MANDATORY('demoKey2', [['Hello', 'Hi'], ['Bye', 'Later']]); // Success
572
+ VERIFY_MANDATORY('demoKeyX', [['Hello', 'Hi'], ['Bye', 'Later']]); // Failure
573
+ }
574
+
575
+ *run() { // T
576
+ VERIFY_MANDATORY('demoKey3', [[1, 2], [5, 6]]); // Success
577
+ VERIFY_MANDATORY('demoKey4', [[1, 2], [5, 6]]); // Success
578
+ VERIFY_MANDATORY('demoKey5', [[1, 2], [5, 6]]); // Success
579
+ VERIFY_MANDATORY('demoKey6', [[5, 6], [1, 2]]); // Success
580
+ VERIFY_MANDATORY('demoKey6', [[1, 2], [5, 6]]); // Failure
581
+ }
582
+
583
+ *run() { // U
584
+ VERIFY_MANDATORY('demoKey7', [[true, true], [false, false]]); // Success
585
+ VERIFY_MANDATORY('demoKey8', [[true, true], [false, false]]); // Success
586
+ VERIFY_MANDATORY('demoKey8', [[true, false], [true, false]]); // Failure
587
+ }
588
+
589
+ *run() { // V
590
+ VERIFY_MANDATORY('demoKey1', 'Later', 1, 1); // Success
591
+ VERIFY_MANDATORY('demoKey2', ['Hello', 'Hi'], 0); // Success
592
+ VERIFY_MANDATORY('demoKey3', 1, 0, 0); // Success
593
+ VERIFY_MANDATORY('demoKey4', [5, 6], 1); // Success
594
+ VERIFY_MANDATORY('demoKey7', false, 1, 1); // Success
595
+ VERIFY_MANDATORY('demoKey8', [false, false], 1); // Success
596
+ VERIFY_MANDATORY('demoKey2', 'Later', 2, 2); // Failure
597
+ }
598
+
599
+ ```
600
+
601
+ #### **Test Cases using VERIFY_MANDATORY with arrays of arrays**
602
+ + [DocActorApiVerifyMandatorySSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatorySSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
603
+ + [DocActorApiVerifyMandatorySFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatorySFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
604
+ + [DocActorApiVerifyMandatoryTSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryTSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
605
+ + [DocActorApiVerifyMandatoryTFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryTFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
606
+ + [DocActorApiVerifyMandatoryUSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryUSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
607
+ + [DocActorApiVerifyMandatoryUFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryUFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
608
+ + [DocActorApiVerifyMandatoryVSuccess](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryVSuccess) &nbsp;&nbsp;&nbsp; [[IE=// Success]]
609
+ + [DocActorApiVerifyMandatoryVFailure](/../test-cases/Actor/Doc/DocActorApiVerifyMandatoryVFailure) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[IE=// Failure]]
610
+ <br>
611
+ <br>
612
+ <br>
613
+ <br>
614
+ <br>
615
+ <br>
616
+ <br>
617
+ <br>
618
+ <br>
619
+ <br>
620
+ <br>
621
+ <br>
622
+ <br>
623
+ <br>
624
+
@@ -0,0 +1,3 @@
1
+ # **CONNECTION WORKER API - LOGGER**
2
+ [[API-STATUS=EXPERIMENTAL, ]]
3
+ [[DOC-STATUS=NOT-YET, ]]