@aj-shadow/actorjs 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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,79 @@
1
+ ## 0.0.0-aj-beta.13 (March 17, 2026)
2
+
3
+ * Major refactoring
4
+
5
+
6
+ ## 0.0.0-aj-beta.12 (October 17, 2024)
7
+
8
+ * Settings - updated.
9
+ * bugfix - z-abs-funclayer-database-server, building with release.
10
+
11
+
12
+ ## 0.0.0-aj-beta.11 (October 15, 2024)
13
+
14
+ * Staging - updated.
15
+ * Versioning - updated.
16
+
17
+
18
+ ## 0.0.0-aj-beta.10 (October 10, 2024)
19
+
20
+ * bugfix - view images in documentation.
21
+
22
+
23
+ ## 0.0.0-aj-beta.9 (October 7, 2024)
24
+
25
+ * Refactoring preparing version 1.0.0
26
+
27
+
28
+ ## 0.0.0-aj-beta.8 (December 01, 2022)
29
+
30
+ * bugfix
31
+ * puppeteer
32
+
33
+
34
+ ## 0.0.0-aj-beta.7 (November 14, 2022)
35
+
36
+ * bugfix
37
+ * React 18
38
+ * Nodejs 18
39
+
40
+
41
+ ## 0.0.0-aj-beta.6 (November 07, 2022)
42
+
43
+ ### ActorJs
44
+
45
+ * bugfix
46
+ * puppeteer
47
+
48
+
49
+ ## 0.0.0-aj-beta.5 (November 01, 2022)
50
+
51
+ ### ActorJs
52
+
53
+ * bugfix
54
+
55
+
56
+ ## 0.0.0-aj-beta.4 (September 15, 2022)
57
+
58
+ ### ActorJs
59
+
60
+ * bugfix
61
+
62
+
63
+ ## 0.0.0-aj-beta.3 (September 14, 2022)
64
+
65
+ ### ActorJs
66
+
67
+ * Removed dependencies.
68
+ * Updated Debugger.
69
+ * Updated Sequence Diagram.
70
+ * Added workshop.
71
+ * Other improvements
72
+
73
+
74
+ ## 0.0.0-aj-beta.2 (May 9, 2022)
75
+
76
+ ### ActorJs
77
+
78
+ * Removed dependencies.
79
+
package/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # ActorJs
2
+ ActorJs is a tool for end-to-end testing that you run in a browser.
3
+
4
+ ### Trigger, mock, and intercept anything.
5
+ ActorJs simulates all processes and services surrounding a System Under Test, allowing you to isolate a System Under Test in a very efficient way, no matter how many surrounding systems or protocols the System Under Test needs to use. You create Actors (very small simulators) that use stacks for communication.
6
+
7
+ ## Prerequisites
8
+ [Nodejs](https://nodejs.org/en/) – 20.x.x or later
9
+ [Git](https://git-scm.com/) – 2.26.0 or later
10
+
11
+ ## Install ActorJs
12
+
13
+ ```bash
14
+ npm install @actorjs/actorjs
15
+ ```
16
+
17
+ ## Update ActorJs
18
+ ```bash
19
+ npm update
20
+ ```
21
+
22
+ ## Build ActorJs Server
23
+ ```bash
24
+ aj release
25
+ ```
26
+
27
+ If you make changes to files, but ActorJs has not been started, or if you pull updates from your local repos, you must build the server again using **aj release**. Otherwise, just use **aj** to start ActorJs.
28
+
29
+ **Linux & Mac**: To use the command **aj**, an alias is needed for the *actorjs.sh* file in the installation folder. During installation, aliases are added to *.bashrc* (Linux and Mac) and *.zshrc* (Mac). If you use another shell, you have to add the alias yourself. The first time you install ActorJs, you need to restart the terminal or **source** the file containing the alias, for instance:
30
+ ```
31
+ source ~/.bashrc
32
+ ```
33
+
34
+ ## Start ActorJs Client
35
+ Open a browser with the url http://localhost:9005
36
+
37
+ ## Documentation
38
+ * [https://actorjs.com/documentation](https://actorjs.com/documentation)
39
+
40
+ ## Further reading in the ActorJs tool
41
+ The ActorJs documentation can be found in the tool. To access it, click the following links when the tool is running.
42
+ * [Documentation](http://localhost:9005/documentation)
43
+ * [Education](http://localhost:9005/education)
44
+
45
+ ## Example code
46
+
47
+ ### HTTP - server
48
+ ```js
49
+ *run() {
50
+ this.httpConnection.send(new HttpMsgGetRequest(this.requistUri));
51
+
52
+ const response = this.httpConnection.receive();
53
+ VERIFY_VALUE(HttpApi.StatusCode.OK, response.statusCode, ' HTTP response line status code:');
54
+ VERIFY_CONTENT_OPTIONAL('content-name', response.getHeaderNumber(HttpApi.Header.CONTENT_LENGTH), response.getBody());
55
+ }
56
+ ```
57
+
58
+ ### Websocket - client
59
+ ```js
60
+ *run() {
61
+ this.httpConnection.send(new HttpGetUpgradeRequest(this.requistUri, this.wsProtocol));
62
+
63
+ const response = this.httpConnection.receive();
64
+ this.websocketConnection = this.switchProtocol('websocket', this.httpConnection);
65
+
66
+ this.websocketConnection.send(new WebsocketStackApi.TextFrame(this.wsText, this.wsMask));
67
+ this.websocketConnection.send(new WebsocketStackApi.CloseFrame());
68
+ }
69
+ ```
70
+
71
+ ### Puppeteer - client
72
+ ```js
73
+ *run() {
74
+ const page = this.puppeteerConnection.page;
75
+ yield page.click('.w-button');
76
+ }
77
+ ```
78
+
79
+ ### Socket - server
80
+ ```js
81
+ *run() {
82
+ this.socketConnection.accept();
83
+ const request = this.socketConnection.receiveLine();
84
+ VERIFY_VALUE('Hello World!', request)
85
+ }
86
+ ```
@@ -0,0 +1,3 @@
1
+ Jens Hagnell
2
+ Anders Oskarsson
3
+ Peggy Oskarsson