@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,215 @@
1
+ # **Client Stack API**
2
+ [[API-STATUS=STABLE, ]]
3
+ [[DOC-STATUS=PARTLY, ]]
4
+
5
+ [[NOTE={"guid":"a7d58e7a-42f3-4dba-be60-eda935ba02af"}]]
6
+ [[ANCHOR={"id":"f9e275c5-83e0-4b0c-9a2e-d1055630de0b","visible":true}]]
7
+ ## **Description**
8
+
9
+ By definition, a client is an [[REF=, ABS_Actor]] that connects to another part called a server. When the [[REF=, ABS_Actor]] is connected, it will get a [[REF=, ABS_Stack_Client_Connection]] for sending and receiving data. A [[REF=, ABS_Stack_Client_Connection]] implements the [[REF=, ABS_Stack]] part of a protocol and contains an Encoder and a Decoder. The [[REF=, ABS_Stack_Client_Connection]] does not handle any of the timing in the [[REF=, ABS_Stack]]. This timing must be handled by the [[REF=, ABS_Actor]] itself. The transport layer is separated from the [[REF=, ABS_Stack]] in the [[REF=, ABS_Stack_Client_Connection]], which makes it possible to use all implemented transports on [[REF=, ABS_Stack]]s.
10
+
11
+ The following Actor types have client capability:
12
+ + **[[REF=, ABS_Actor_Originating]]**
13
+ + **[[REF=, ABS_Actor_Terminating]]**
14
+ + **[[REF=, ABS_Actor_Proxy]]**
15
+
16
+ In the [[REF=, ABS_Actor_State_Execution]] ***initClient** and ***run**, an [[REF=, ABS_Actor]] can create a [[REF=, ABS_Stack_Client_Connection]].
17
+
18
+ The implementation of the Client Stack API starts in [[REF=, CODE_Stack_Client]].
19
+
20
+ [[NOTE={"guid":"8eae0a2c-64ff-4ec5-bd3d-4b4f207f9a0d"}]]
21
+ [[ANCHOR={"id":"client-stack-methods","visible":true}]]
22
+ ## **API Methods**
23
+ * **[*createConnection](#client-stack-api-create-connection)**
24
+ * **[switchProtocol](#client-stack-api-switch-protocol)** `ToDo`
25
+
26
+ ***
27
+
28
+ [[NOTE={"guid":"766e7e0e-92c6-4159-bd40-e1b78427f92e"}]]
29
+ [[ANCHOR={"id":"client-stack-api-create-connection","visible":true}]]
30
+ ### ***createConnection**
31
+
32
+ ``` js
33
+ this.createConnection(stackName, options)
34
+ ```
35
+
36
+ #### **Method Description**
37
+ Connects to a server and returns a [[REF=, ABS_Stack_Client_Connection]].
38
+
39
+ [[NOTE={"guid":"c9866d80-523a-4503-9b11-d6e8562e8f6f"}]]
40
+ [[ANCHOR={"id":"60403e89-5133-42ed-9855-14c74b9f8376","visible":true}]]
41
+ ```table
42
+ Config(classHeading: )
43
+
44
+ |Parameters |
45
+ |Name |Type |Default |Description |
46
+ |stackName |[[REF=,MDN_string]] | |Name of the Client Stack. |
47
+ |options |[[REF=,MDN_object]] | |Object with options |
48
+ |\- dstIndex |[[REF=,MDN_number]] |0 |Index of the dst column from the Actor table. If the dst column is a [[REF=,MDN_string]], the name of the destination address, the value must be 0. If the dst column is an Array [[REF=,MDN_strings]], the value must be an existing index in the Array. |
49
+ |\- srcIndex |[[REF=,MDN_number]] |0 |Index of the src column from the Actor table. If the src column is a [[REF=,MDN_string]], the name of the source address, the value must be 0. If the src column is an Array [[REF=,MDN_strings]], the value must be an existing index in the Array. |
50
+ |\- networkType |[[REF=,MDN_number]] |[determined by the Stack]|0: TCP, 1: UDP. Number defining the network Type. Implementations of stacks separate the data sent and the transport layer to be used. The stack determines the default value. See the help description for the stack whose name is used in the first parameter stackName.|
51
+ |\- reuse |[[REF=,MDN_boolean]]|false |`ToDo:` |
52
+ |\- share |[[REF=,MDN_boolean]]|false |`ToDo:` |
53
+ |\- connectionOptions|[[REF=,MDN_object]] | |connectionOptions is a connection-specific object. See the help description for the stack you used to find out which methods are supported. |
54
+ ```
55
+
56
+ [[NOTE={"guid":"b366cd91-ac45-4a3d-a020-b5a5e0b9f396"}]]
57
+ [[ANCHOR={"id":"776aa71e-6458-4e4a-8ee0-da3d6c93705f","visible":true}]]
58
+ ```table
59
+ Config(classHeading: )
60
+
61
+ |Returns |
62
+ |Type |Description |
63
+ |[[REF=,MDN_object]]|The returned value is an object that inherits from ***StackApi.ClientConnection***. See the help description for the stack you used to find out which methods are supported.|
64
+ ```
65
+
66
+ [[NOTE={"guid":"4cc6ae06-00e9-4f7e-8797-43e54d55948f"}]]
67
+ [[ANCHOR={"id":"a00383af-e971-46fd-83f8-f5f027b72571","visible":true}]]
68
+ ```table
69
+ Config(classHeading: )
70
+
71
+ |Async |
72
+ |type |Description |
73
+ |yield|Naming convention generated. If regexp ***/this.(.\*)Connection/*** is fulfilled|
74
+ ```
75
+
76
+ [[NOTE={"guid":"22dd27b5-d983-48be-8844-ec0627f2da2e"}]]
77
+ [[ANCHOR={"id":"2a4ab3aa-8d7b-4126-9d0b-004c12d04bd5","visible":true}]]
78
+ #### **Example using createConnection - 1**
79
+ Normal usage of the Client Stack API
80
+
81
+ ```tc
82
+ |Actor |
83
+ |name |node|type|phase|execution|src|dst |srv |testData|verification|
84
+ |SocketExample1Orig| |orig|exec | | |testSrv1| | | |
85
+ |SocketExample1Term| |term|exec | | | |testSrv1| | |
86
+ | | | | | | | | | | |
87
+ ```
88
+
89
+ [[NOTE={"guid":"04205ae3-720f-474a-aaa2-bd49105d2c69"}]]
90
+ [[ANCHOR={"id":"0159bdb7-bad2-4178-88ff-4745fbde02ed","visible":true}]]
91
+ ```javascript
92
+
93
+ class SocketExample1Orig extends ActorApi.ActorOriginating {
94
+ constructor() {
95
+ super();
96
+ this.socketConnection = this.create();
97
+ }
98
+
99
+ *initClient() {
100
+ this.createConnection('socket', this.socketConnection);
101
+ }
102
+
103
+ *exit() {
104
+ this.closeConnection(this.socketConnection);
105
+ }
106
+ }
107
+
108
+ ```
109
+
110
+ [[NOTE={"guid":"824d1e6e-0161-4a49-81a9-1da67700a5df"}]]
111
+ [[ANCHOR={"id":"88a1e36a-175a-4655-bf73-32af2bec82ac","visible":true}]]
112
+ #### **Example using createConnection - 2**
113
+ Changing the networkType
114
+
115
+ ```tc
116
+ |Actor |
117
+ |name |node|type|phase|execution|src |dst |srv |testData|verification|
118
+ |SocketExample2Orig| |orig|exec | |testSrc1|testSrv1| | | |
119
+ |SocketExample2Term| |term|exec | | | |testSrv1| | |
120
+ | | | | | | | | | | |
121
+
122
+ |TestDataTestCase |
123
+ |key |value|description|
124
+ |transport|udp | |
125
+ | | | |
126
+ ```
127
+
128
+ [[NOTE={"guid":"7eebabe3-75e7-49aa-baac-4eaaa0b6b70e"}]]
129
+ [[ANCHOR={"id":"7a2ebc6c-2a52-4840-a236-62d419d42f3c","visible":true}]]
130
+ ```javascript
131
+
132
+ class SocketExample2Orig extends ActorApi.ActorOriginating {
133
+ constructor() {
134
+ super();
135
+ this.socketConnection = this.create();
136
+ this.networkType = 0;
137
+ }
138
+
139
+ *data() {
140
+ this.networkType = this.getTestDataNumber('transport', 'tcp', {
141
+ tcp: NetworkType.TCP,
142
+ udp: NetworkType.UDP
143
+ });
144
+ }
145
+
146
+ *initClient() {
147
+ this.createConnection('socket', this.socketConnection, {
148
+ networkType: this.networkType
149
+ });
150
+ }
151
+
152
+ *exit() {
153
+ this.closeConnection(this.socketConnection);
154
+ }
155
+ }
156
+
157
+ ```
158
+
159
+ [[NOTE={"guid":"1b672332-b5a5-448f-8835-a8d77c838235"}]]
160
+ [[ANCHOR={"id":"a5208edd-41b2-4d58-9d95-732d1dcfd9eb","visible":true}]]
161
+ #### **Example using createConnection - 3**
162
+ Creating two connections
163
+ ```tc
164
+ |Actor |
165
+ |name |node|type|phase|execution|src |dst |srv |testData|verification|
166
+ |SocketExample3Orig| |orig|exec | |["testSrc1", "testSrc2"]|["testSrv1", "testSrv2"]| | | |
167
+ |SocketExample3Term| |term|exec | | | |["testSrv1", "testSrv2"]| | |
168
+ | | | | | | | | | | |
169
+ ```
170
+
171
+ [[NOTE={"guid":"a65aacd9-8a1c-4646-8c23-ccceb3de828e"}]]
172
+ [[ANCHOR={"id":"791f70c8-580c-4022-beef-a6d2e2de0a52","visible":true}]]
173
+ ```javascript
174
+
175
+ class SocketExample3Orig extends ActorApi.ActorOriginating {
176
+ constructor() {
177
+ super();
178
+ this.socketConnection1 = this.create();
179
+ this.socketConnection2 = this.create();
180
+ }
181
+
182
+ *initClient() {
183
+ this.createConnection('socket', this.socketConnection1);
184
+ this.createConnection('socket', this.socketConnection2, {
185
+ dstIndex: 1,
186
+ srcIndex: 1
187
+ });
188
+ }
189
+
190
+ *exit() {
191
+ this.closeConnection(this.socketConnection1);
192
+ this.closeConnection(this.socketConnection2);
193
+ }
194
+ }
195
+
196
+ ```
197
+
198
+ [[NOTE={"guid":"2cf17a9c-885d-4716-8d9a-260f7cd617b5"}]]
199
+ [[ANCHOR={"id":"38e73cd6-d584-408e-8b06-1c0fe3944e0a","visible":true}]]
200
+ #### **Test Cases using createConnection**
201
+ + [DocActorApiClientStackCreateConnectionSingle](/../test-cases/Actor/Doc/DocActorApiClientStackCreateConnectionSingle)
202
+ + [DocActorApiClientStackCreateConnectionSingleUdp](/../test-cases/Actor/Doc/DocActorApiClientStackCreateConnectionSingleUdp)
203
+ + [DocActorApiClientStackCreateConnectionDouble](/../test-cases/Actor/Doc/DocActorApiClientStackCreateConnectionDouble)
204
+
205
+ ***
206
+
207
+ [[NOTE={"guid":"9e5096e8-7880-4d69-afd8-388ea1aa95d9"}]]
208
+ [[ANCHOR={"id":"client-stack-api-switch-protocol","visible":true}]]
209
+ ### **switchProtocol** `ToDo`
210
+
211
+ ``` js
212
+ this.switchProtocol(stackName, currentConnection)
213
+ ```
214
+
215
+ #### **Method Description**
@@ -0,0 +1,106 @@
1
+ # **Content API**
2
+ [[API-STATUS=STABLE, ]]
3
+ [[DOC-STATUS=FULLY, ]]
4
+
5
+ [[NOTE={"guid":"35cb5300-6085-4708-b79a-bb1fd467599e"}]]
6
+ [[ANCHOR={"id":"1f2aa3ed-64ea-44cb-bf5b-9d049963834a","visible":true}]]
7
+ ## **Description**
8
+
9
+ An [[REF=, ABS_Actor]] can read [[REF=, ABS_Content]] in the [[REF=Execution State, ABS_Actor_State_Execution]] ***data**. Content is used by the [[REF=, ABS_Actor]] usually to send and receive over a protocol.
10
+
11
+ Content API implementation starts in [[REF=, CODE_Content]].
12
+
13
+ [[NOTE={"guid":"8b7f326a-373b-4c9f-85da-c182f315b92e"}]]
14
+ [[ANCHOR={"id":"content-api-methods","visible":true}]]
15
+ ## **API Methods**
16
+ * **[*getContent](#content-api-getcontent)**
17
+ * **[*getContentByName](#content-api-getcontentbyname)**
18
+
19
+ ***
20
+
21
+ [[ANCHOR={"id":"content-api-getcontent","visible":true}]]
22
+
23
+ ### ***getContent**
24
+ ```
25
+ this.getContent(name[, hint])
26
+ ```
27
+
28
+ [[NOTE={"guid":"f77ec2f9-cacb-489c-92b4-f290e67a1733"}]]
29
+ [[ANCHOR={"id":"31542910-66d2-4bfb-9189-3bf6a6f5b92d","visible":true}]]#### **Method Description**
30
+ Returning the requested content. The name is used to get the content name from Test Data.
31
+
32
+ [[NOTE={"guid":"30a6554f-d85f-49b7-9a4d-f89848fe1560"}]]
33
+ [[ANCHOR={"id":"57d7232a-f5de-4ba9-8943-e5c00021ab04","visible":true}]]
34
+ ```table
35
+ Config(classHeading: )
36
+
37
+ |Parameters |
38
+ |Name|Type |Description |
39
+ |name|[[REF=,MDN_string]]|The name of the [[REF=,ABS_Test_Data]] key containing the [[REF=,ABS_Content]] name. |
40
+ |hint|[[REF=,MDN_string]]|Name of the [[REF=,ABS_Content]] type to be able to find the [[REF=,ABS_Content]] faster. **Supported types**: `image`|
41
+ ```
42
+
43
+ [[NOTE={"guid":"e6f12767-0ac6-4a64-91e4-8879d4773ea4"}]]
44
+ [[ANCHOR={"id":"eb0175be-b5a6-4ef8-bd08-4b7db4b093d3","visible":true}]]
45
+ #### **Example**
46
+ ```tc
47
+ |TestDataTestCase |
48
+ |key |value |description|
49
+ |image_name|flag_sweden| |
50
+ | | | |
51
+ ```
52
+
53
+ ```javascript
54
+
55
+ *data() {
56
+ const image = this.getContent('image_name', 'image'); // image will be => the image 'flag_sweden'
57
+ }
58
+
59
+ ```
60
+
61
+ [[NOTE={"guid":"c26d65ba-2565-4a7d-bbd0-f3902c2b93d5"}]]
62
+ [[ANCHOR={"id":"34cd7670-b79e-4ebc-9690-8f3b9da94ce1","visible":true}]]
63
+ #### **Test Cases using getContent**
64
+ + [ContentImageJpeg](/test-cases/Actor/Content/ContentImageJpeg)
65
+ + [DemoMobileBrowsingImageJpg](/test-cases/Actor/Demo/DemoMobileBrowsingImageJpg)
66
+
67
+ ***
68
+
69
+ [[NOTE={"guid":"5024dc24-4da6-4ba7-a369-a708e32c9a9d"}]]
70
+ [[ANCHOR={"id":"content-api-getcontentbyname","visible":true}]]
71
+ ### ***getContentByName**
72
+ ```
73
+ this.getContentByName(name[, hint])
74
+ ```
75
+
76
+ [[NOTE={"guid":"5bffa8cd-a689-46ed-9b25-391f0f003154"}]]
77
+ [[ANCHOR={"id":"d96ed33f-73ad-45a6-8a5d-c095be634155","visible":true}]]
78
+ #### **Method Description**
79
+ Returning the requested content. The name is the content name.
80
+
81
+ [[NOTE={"guid":"9ce623d0-fec5-4298-9e87-a9f9d2b03494"}]]
82
+ [[ANCHOR={"id":"5067d8b0-3808-4ab1-8729-4620853fefe7","visible":true}]]
83
+ ```table
84
+ Config(classHeading: )
85
+
86
+ |Parameters |
87
+ |Name|Type |Description |
88
+ |name|[[REF=,MDN_string]]|The name of the [[REF=,ABS_Content]]. |
89
+ |hint|[[REF=,MDN_string]]|Name of the [[REF=,ABS_Content]] type to be able to find the [[REF=,ABS_Content]] faster. **Supported types**: `image`|
90
+ ```
91
+
92
+ [[NOTE={"guid":"321ffec2-247b-4e5d-beec-0b0eabba8491"}]]
93
+ [[ANCHOR={"id":"08f5741a-d66b-4dad-ab25-a449173ff7e1","visible":true}]]
94
+ #### **Example**
95
+ ```javascript
96
+
97
+ *data() {
98
+ const image = this.getContentByName('flag_sweden', 'image'); // image will be => the image 'flag_sweden'
99
+ }
100
+
101
+ ```
102
+
103
+ [[NOTE={"guid":"a3d22751-13d8-41b7-a824-9e7054214b31"}]]
104
+ [[ANCHOR={"id":"1e8272be-a14a-4f69-b8b0-2e4c208858d0","visible":true}]]
105
+ #### **Test Cases using getContentByName**
106
+ + [ContentByNameImageJpeg](/test-cases/Actor/Content/ContentByNameImageJpeg)