@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,94 @@
1
+ # **4) Mock with ICAP**
2
+
3
+ ---
4
+ ## ***Use the Image AI Service***
5
+
6
+ ---
7
+ #### **Purpose**
8
+ Learn how to ***mock*** the [[REF=, STACK_ICAP]] stack. ***Mock*** with a [[REF=, ABS_Terminating_Actor]].
9
+ Learn how to use multiple ***mocks***.
10
+ Learn how to use ***[[REF=, ABS_Test_Data]]*** with the [[REF=, API_Actor_Test_Data]].
11
+
12
+ ---
13
+ #### **Task**
14
+ 1) Mock ***ImageService*** and reply with ***Kate***.
15
+ 1) Mock ***AIService*** and reply with requested transformation.
16
+ 2) Load the ***ActorDemo*** site and click the **"Goto:** Image AI**"** button.
17
+ 3) Click the ***"mask"*** button and verify that the image has changed.
18
+
19
+ ---
20
+ #### **Analyze**
21
+ ```node
22
+ Config(nodeWidth: 70, nodeHeight: 35, nodeWidthBetween: 45, nodeHeightBetween: 25, widthBias: 30, heightBias: 30, border: true, backgroundColor: default)
23
+
24
+ Nodes[Browser(; ; White), ActorDemo(; ; Honeydew), UserService(; ; White)]
25
+ Nodes[, , AIService(; ; White)]
26
+
27
+
28
+ Browser => ActorDemo[http]: http
29
+ ActorDemo => UserService[http]: http
30
+ ActorDemo => AIService[icap]: icap
31
+ ```
32
+
33
+ The ***Image AI*** page uses the backend nodes ***ImageService*** and ***AIService***.
34
+ * [[REF=, STACK_HTTP]] is the protocol between the ***Browser*** and ***ActorDemo*** so we will use the [[REF=, STACK_PUPPETEER]] stack to test this page.
35
+ * [[REF=, STACK_HTTP]] is the protocol between the ***ActorDemo*** and ***ImageService*** so we will use the [[REF=, STACK_HTTP]] stack to ***mock*** the ***ImageService***, described in [2) Mock with HTTP
36
+ ](/workshop/mock-with-http)
37
+ * [[REF=, STACK_ICAP]] is the protocol between the ***ActorDemo*** and ***AIService*** so we will use the [[REF=, STACK_ICAP]] stack to ***mock*** the ***AIService***
38
+
39
+ * The ***AIService*** has one **REST API** method.
40
+ 1) **AiGetImages**:
41
+ 1.1) **protocol**: IACP
42
+ 1.2) **Method**: RESPMOD
43
+ 1.3) **url**: api/v1/image/ais/[**name**]/[**transformations**]
44
+     1.3.1) **name**: *The name of the AI instance*
45
+     1.3.2) **transformations**: *A comma-separated list with the names of the AI transformations*
46
+ 1.4) **body**: *The original [[REF=, STACK_HTTP]] request and its response*
47
+ 1.4) **returns**: *An [[REF=, STACK_HTTP]] response with the modified Image*
48
+
49
+ ```seq
50
+ Config(nodeWidth: 280, nodeMessageHeight: 17, nodeEventHeight: 10, nodeCommentHeight: 26, widthBias: 60, heightBias: 30, lineNumbers: false, border: true, backgroundColor: #EAFEEA)
51
+
52
+ Nodes[Browser, ActorDemo, ImageService, AIService]
53
+ ActorDemo -o ImageService[http]:
54
+ ActorDemo -o AIService[icap]:
55
+ Browser browser [puppeteer]: srcActorDemo
56
+ Browser page [puppeteer]: page1
57
+ Browser -o ActorDemo[http]:
58
+ Browser => ActorDemo[http]: GET http://localhost:9045/start
59
+ ActorDemo => Browser[http]: 200 OK
60
+ Browser /**/ ActorDemo[http]: Loading site (js, css, images, REST API, ... .)
61
+ Browser click [puppeteer]: id = #from_start_to_image_ai
62
+ Browser => ActorDemo[http]: POST http://actordemo:9045/abs-data/AiGetImages
63
+ ActorDemo => ImageService[http]: GET api/v1/image/get-images
64
+ ImageService => ActorDemo[http]: 200 OK
65
+ ActorDemo => Browser[http]: 200 OK
66
+ Browser => ActorDemo[http]: POST http://actordemo:9045/abs-data/AiGetImage
67
+ ActorDemo => ImageService[http]: GET api/v1/image/get-image/Kate
68
+ ImageService => ActorDemo[http]: 200 OK
69
+ ActorDemo => Browser[http]: 200 OK
70
+ Browser click [puppeteer]: id = #button_Kate_mask
71
+ Browser => ActorDemo[http]: POST http://actordemo:9045/abs-data/AiGetImage
72
+ ActorDemo => ImageService[http]: GET api/v1/image/get-image/Kate
73
+ ImageService => ActorDemo[http]: 200 OK
74
+ ActorDemo => AIService[icap]: RESPMOD api/v1/image/ais/Kate/mask
75
+ AIService => ActorDemo[icap]: 200 OK
76
+ ActorDemo => Browser[http]: 200 OK
77
+ AIService -x ActorDemo[icap]:
78
+ ImageService -x ActorDemo[http]:
79
+ Browser -x ActorDemo[http]:
80
+ ```
81
+
82
+ ---
83
+ #### **Conclusion**
84
+ 1) Create an [[REF=, ABS_Originating_Actor]] with the [[REF=, STACK_PUPPETEER]] stack.
85
+ 1.1 **Click** the button with ***selector***: #from_start_to_image_ai
86
+ 2) Create a [[REF=, ABS_Terminating_Actor]] with the [[REF=, STACK_HTTP]] stack.
87
+ 2.1 Answer the [[REF=, STACK_HTTP]] REST API ***request*** AiGetImages. Answer with [{name:'Kate',mime:'images/jpeg',ais:['Rio', 'feathers', 'mask']}].
88
+ 2.2 Answer the [[REF=, STACK_HTTP]] REST API ***request*** AiGetImage/Kate ***two times***. Answer with the image requested.
89
+ 3) Create a [[REF=, ABS_Terminating_Actor]] with the [[REF=, STACK_ICAP]] stack.
90
+ 3.1 Answer the [[REF=, STACK_ICAP]] REST API ***request*** image/ais/Kate/mask. Answer with the transformed image.
91
+
92
+ ---
93
+ #### **Solution**
94
+ + Test Case: [UseImageAI](/../test-cases/ActorDemo/ImageIA/UseImageAI)
@@ -0,0 +1,18 @@
1
+ # **Prerequisites - ActorJs**
2
+
3
+ ### **Create folders**
4
+
5
+ To install ActorJs, we start by creating the folders we need:
6
+
7
+ 1) **Run** the ***Node.js command prompt*** in Windows and use a ***terminal*** in Linux and Mac.
8
+ `Do not use other environments for the workshop since they are not verified to work.`
9
+
10
+ 2) Choose a location and **create** a folder where your ActorJs files will be stored. A good name would be ***"ActorJs"***.
11
+
12
+ 3) **Create** a sub-folder named ***"workshop"*** in the ***"ActorJs"*** folder.
13
+
14
+ 4) **Create** a sub-folder named ***"actorjs"*** in the ***"workshop"*** folder.
15
+ ***
16
+
17
+ ### **Download ActorJs**
18
+ See the instructions at [[REF=, NPM_ACTORJS]] and install ActorJs in the ***"actorjs"*** folder.
@@ -0,0 +1,15 @@
1
+ # **Prerequisites - ActorDemo**
2
+
3
+ ### **Create folders**
4
+
5
+ To install ActorDemo, we start by creating the folders we need:
6
+ 1) **Run** the ***Node.js command prompt*** in Windows and use a ***terminal*** in Linux and Mac.
7
+ `Do not use other environments for the workshop since they are not verified to work.`
8
+
9
+
10
+ 4) **Create** a sub-folder named ***"actordemo"*** in the newly created ***"workshop"*** folder.
11
+
12
+ ***
13
+
14
+ ### **Download ActorDemo**
15
+ See the instructions at [[REF=, NPM_ACTORDEMO]] and install ActorDemo in the ***"actordemo"*** folder.
@@ -0,0 +1,93 @@
1
+ # **4) Trigger with HTTP**
2
+
3
+ ---
4
+ ## ***Change the configuration of ActorDemo with its REST API***
5
+
6
+ ---
7
+ #### **Purpose**
8
+ Learn how to ***trigger*** and test ***REST API*** with the [[REF=, STACK_HTTP]] stack. ***Trigger*** with a [[REF=, ABS_Condition_Actor]].
9
+ Learn how to use different ***Test Case phases***.
10
+ Learn how to use ***[[REF=, ABS_Verification_Data]]*** to verify with the [[REF=, API_Actor_Verification_Data]].
11
+
12
+ ---
13
+ #### **Task**
14
+ 1) In the ***precondition phase*** change the configuration ***authorization*** to ***true*** with ***ActorDemos*** REST API.
15
+ 2) Load the ***ActorDemo*** site and verify that the **"Goto:** Login**"** button is enabled and **"Goto:** Image AI**"** button is disabled.
16
+ 3) In the ***postcondition phase*** change the configuration ***authorization*** to ***false*** with ***ActorDemos*** REST API.
17
+
18
+ ---
19
+ #### **Analyze**
20
+ ```node
21
+ Config(nodeWidth: 70, nodeHeight: 35, nodeWidthBetween: 45, nodeHeightBetween: 0, widthBias: 30, heightBias: 30, border: true, backgroundColor: default)
22
+
23
+ Nodes[Browser(; ; White)]
24
+ Nodes[, ActorDemo(; ; Honeydew)]
25
+ Nodes[Admin(; ; White)]
26
+
27
+
28
+ Browser => ActorDemo[http]: http
29
+ Admin => ActorDemo[http]: http
30
+ ```
31
+
32
+ The ***start*** page does not use any backend nodes.
33
+ * [[REF=, STACK_HTTP]] is the protocol between the ***Browser*** and ***ActorDemo*** so we will use the [[REF=, STACK_PUPPETEER]] stack to test this page.
34
+ * [[REF=, STACK_HTTP]] is the protocol between ***Admin*** and ***ActorDemo*** so we will use the [[REF=, STACK_HTTP]] stack to update the config of ***ActorDemo***.
35
+ * The ***ActorDemo*** has one **REST API** method.
36
+ 1) **Config**:
37
+ 1.1) **protocol**: HTTP
38
+ 1.2) **Method**: PATCH
39
+ 1.3) **url**: abs-api/config/[**name**]
40
+     1.3.1) **name**: *The name of the Configuration*
41
+ 1.4) **body**: *The new config value*
42
+ 1.4) **returns**: 204 No Content
43
+
44
+ ```seq
45
+ Title: Precondition Phase
46
+ Config(nodeWidth: 320, nodeMessageHeight: 17, nodeEventHeight: 10, nodeCommentHeight: 12, widthBias: 50, heightBias: 30, lineNumbers: false, border: true, backgroundColor: #E7F5FB)
47
+
48
+ Nodes[Admin, ActorDemo]
49
+ Admin -o ActorDemo[http]:
50
+ Admin => ActorDemo[http]: PATCH http://actordemo:9045/abs-api/config
51
+ ActorDemo => Admin[http]: 204 No Content
52
+ Admin -x ActorDemo[http]:
53
+ ```
54
+
55
+ ```seq
56
+ Title: Execution Phase
57
+ Config(nodeWidth: 320, nodeMessageHeight: 17, nodeEventHeight: 10, nodeCommentHeight: 26, widthBias: 50, heightBias: 30, lineNumbers: false, border: true, backgroundColor: #EAFEEA)
58
+
59
+ Nodes[Browser, ActorDemo]
60
+ Browser browser [puppeteer]: srcActorDemo
61
+ Browser page [puppeteer]: page1
62
+ Browser -o ActorDemo[http]:
63
+ Browser => ActorDemo[http]: GET http://localhost:9045/start
64
+ ActorDemo => Browser[http]: 200 OK
65
+ Browser /**/ ActorDemo[http]: Loading site (js, css, images, REST API, ... .)
66
+ Browser == [puppeteer]: button #from_start_to_login is enabled
67
+ Browser == [puppeteer]: button #from_start_to_image_ai is enabled
68
+ Browser -x ActorDemo[http]:
69
+ ```
70
+
71
+ ```seq
72
+ Title: Postcondition Phase
73
+ Config(nodeWidth: 320, nodeMessageHeight: 17, nodeEventHeight: 10, nodeCommentHeight: 12, widthBias: 50, heightBias: 30, lineNumbers: false, border: true, backgroundColor: #FFFFE6)
74
+
75
+ Nodes[Admin, ActorDemo]
76
+ Admin -o ActorDemo[http]:
77
+ Admin => ActorDemo[http]: PATCH http://actordemo:9045/abs-api/config
78
+ ActorDemo => Admin[http]: 204 No Content
79
+ Admin -x ActorDemo[http]:
80
+ ```
81
+
82
+ ---
83
+ #### **Conclusion**
84
+ 1) Create an [[REF=, ABS_Condition_Actor]] with the [[REF=, STACK_HTTP]] stack.
85
+ 1.1 In precondition set the ***authorization*** config to ***true***.
86
+ 1.2 In postcondition reset the ***authorization*** config to ***false***.
87
+ 2) Create an [[REF=, ABS_Originating_Actor]] with the [[REF=, STACK_PUPPETEER]] stack.
88
+ 1.1 Verify that the button with ***selector***: #from_start_to_login is ***enabled***.
89
+ 1.1 Verify that the button with ***selector***: #from_start_to_image_ai is ***disabled***.
90
+
91
+ ---
92
+ #### **Solution**
93
+ + Test Case: [StartAuthorizationOn](/../test-cases/ActorDemo/Start/StartAuthorizationOn)
@@ -0,0 +1,49 @@
1
+ # **1) Trigger with Puppeteer**
2
+
3
+ ---
4
+ ## ***Goto the start page***
5
+
6
+ ---
7
+ #### **Purpose**
8
+ Learn how to ***trigger*** and ***GUI test*** with the [[REF=, STACK_PUPPETEER]] stack. ***Trigger*** with an [[REF=, ABS_Originating_Actor]].
9
+
10
+ ---
11
+ #### **Task**
12
+ 1) Load the ***ActorDemo*** site and click the ***"hat"*** button and verify that the image has changed.
13
+
14
+ ---
15
+ #### **Analyze**
16
+
17
+ ```node
18
+ Config(nodeWidth: 80, nodeHeight: 50, nodeWidthBetween: 75, nodeHeightBetween: 25, widthBias: 30, heightBias: 30, border: true, backgroundColor: default)
19
+
20
+ Nodes[Browser(; ; White), ActorDemo(; ; Honeydew)]
21
+
22
+
23
+ Browser => ActorDemo[http]: http
24
+ ```
25
+ The ***start*** page does not use any backend nodes.
26
+ * [[REF=, STACK_HTTP]] is the protocol between the ***Browser*** and ***ActorDemo*** so we will use the [[REF=, STACK_PUPPETEER]] stack to test this page.
27
+
28
+ ```seq
29
+ Config(nodeWidth: 260, nodeMessageHeight: 17, nodeEventHeight: 10, nodeCommentHeight: 26, widthBias: 60, heightBias: 30, lineNumbers: false, border: true, backgroundColor: #EAFEEA)
30
+
31
+ Nodes[Browser, ActorDemo]
32
+ Browser browser [puppeteer]: srcActorDemo
33
+ Browser page [puppeteer]: page1
34
+ Browser -o ActorDemo[http]:
35
+ Browser => ActorDemo[http]: GET http://localhost:9045/start
36
+ ActorDemo => Browser[http]: 200 OK
37
+ Browser /**/ ActorDemo[http]: Loading site (js, css, images, REST API, ... .)
38
+ Browser click [puppeteer]: id = #button_bob_hat
39
+ Browser -x ActorDemo[http]:
40
+ ```
41
+
42
+ ---
43
+ #### **Conclusion**
44
+ 1) Create an [[REF=, ABS_Originating_Actor]] with the [[REF=, STACK_PUPPETEER]] stack.
45
+ 1.1) **Click** the button with ***selector***: #button_bob_hat
46
+
47
+ ---
48
+ #### **Solution**
49
+ + Test Case: [StartChangeImage](/../test-cases/ActorDemo/Start/StartChangeImage)
@@ -0,0 +1,86 @@
1
+ [
2
+ {
3
+ "heading": "Introduction",
4
+ "refs": [
5
+ {
6
+ "name": "ActorJs",
7
+ "link": "introduction-actorjs"
8
+ },
9
+ {
10
+ "name": "Actor",
11
+ "link": "introduction-actor"
12
+ },
13
+ {
14
+ "name": "Stack",
15
+ "link": "introduction-stack"
16
+ },
17
+ {
18
+ "name": "System Under Test",
19
+ "link": "introduction-system-under-test"
20
+ },
21
+ {
22
+ "name": "Test Case",
23
+ "link": "introduction-test-case"
24
+ },
25
+ {
26
+ "name": "Test Suite",
27
+ "link": "introduction-test-suite"
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ "heading": "Prerequisites",
33
+ "refs": [
34
+ {
35
+ "name": "ActorJs",
36
+ "link": "prerequisites-actorJs"
37
+ },
38
+ {
39
+ "name": "ActorDemo",
40
+ "link": "prerequisites-actordemo"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "heading": "ActorDemo",
46
+ "refs": [
47
+ {
48
+ "name": "ActorDemo site",
49
+ "link": "actordemo-site"
50
+ },
51
+ {
52
+ "name": "The Architecture",
53
+ "link": "actordemo-the-architecture"
54
+ },
55
+ {
56
+ "name": "- Start page",
57
+ "link": "actordemo-start"
58
+ },
59
+ {
60
+ "name": "- Image AI page",
61
+ "link": "actordemo-image-ai"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "heading": "Tasks",
67
+ "refs": [
68
+ {
69
+ "name": "1) Trigger with Puppeteer",
70
+ "link": "trigger-with-puppeter"
71
+ },
72
+ {
73
+ "name": "2) Mock with HTTP",
74
+ "link": "mock-with-http"
75
+ },
76
+ {
77
+ "name": "3) Mock with ICAP",
78
+ "link": "mock-with-icap"
79
+ },
80
+ {
81
+ "name": "4) Trigger with HTTP",
82
+ "link": "trigger-with-http"
83
+ }
84
+ ]
85
+ }
86
+ ]
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@aj-shadow/actorjs-documentation-text",
3
+ "version": "0.0.0-aj-beta.221",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "@aj-shadow/actorjs-documentation-text",
9
+ "version": "0.0.0-aj-beta.221",
10
+ "license": "SEE LICENSE IN LICENSE.txt"
11
+ }
12
+ }
13
+ }
package/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@aj-shadow/actorjs-documentation-text",
3
+ "version": "0.0.0-aj-beta.221",
4
+ "release-step": "delivery",
5
+ "description": "Library used by @actorjs/actorjs",
6
+ "author": "ActorJs",
7
+ "license": "SEE LICENSE IN LICENSE.txt",
8
+ "repository": "https://gitlab.com/actorjs-shadow-delivery-public/actorjs-documentation-text.git",
9
+ "dependencies": {}
10
+ }