You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 26, 2024. It is now read-only.
* remove stale config example
* update docker-compose to relect new configuration using flags
* update readme to reflect execution mode changes and remove gitlab-ci badge which is not visible to everyone
* documentation updates for running replicant
* make explicit commment about runnning for test development
This will deploy the replicant server and 2 chrome-headless nodes for web tests, persisting data under /data.
54
+
This will deploy the replicant server and 2 replicant executor nodes for web tests.
34
55
35
-
### Web application testing (local development)
56
+
### Web application testing
36
57
37
58
Web application testing support is based on the FQL (Ferret Query Language), [documentation](https://github.com/MontFerret/ferret).
38
59
@@ -98,21 +119,24 @@ script: |
98
119
}
99
120
```
100
121
101
-
### API testing (local development)
122
+
### API testing
102
123
103
124
##### Using the javascript driver
104
125
The following API is exposed by the javascript driver in order to perform HTTP calls and logging:
105
126
*`replicant.Log(string)` log messages from the javascript test on the replicant server log.
106
-
*`replicant.NewResponse()` create a new response object to be returned as a result of the test, which should be modified accordingly to reflect the test result. The response must be returned as a serialized JSON object by calling its bounded method `Response.JSON`, E.g. `return response.JSON()`.
107
127
108
-
Response type attributes:
128
+
129
+
*`replicant.NewResult()` create a new response object to be returned as a result of the test, which should be modified accordingly to reflect the test result. The response must be returned as a serialized JSON object by calling its bounded method `Response.JSON`, E.g. `return response.JSON()`.
130
+
131
+
Result type attributes:
109
132
```js
110
133
{
111
134
Data:"",
112
135
Message:"",
113
136
Failed:false,
114
137
}
115
138
```
139
+
116
140
*`replicant.http.NewRequest()` creates a new HTTP request object for performing HTTP calls.
0 commit comments