@intuitionrobotics/testelot 0.45.0 → 0.45.3
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/core/Action.d.ts +4 -2
- package/core/Action.js +31 -16
- package/core/Action.js.map +1 -1
- package/core/Action_Container.d.ts +3 -0
- package/core/Action_Container.js +20 -0
- package/core/Action_Container.js.map +1 -1
- package/core/Action_Custom.d.ts +3 -0
- package/core/Action_Custom.js +20 -0
- package/core/Action_Custom.js.map +1 -1
- package/core/Action_Http.js +26 -7
- package/core/Action_Http.js.map +1 -1
- package/core/Action_Log.d.ts +4 -1
- package/core/Action_Log.js +20 -0
- package/core/Action_Log.js.map +1 -1
- package/core/Action_Sleep.d.ts +3 -0
- package/core/Action_Sleep.js +22 -2
- package/core/Action_Sleep.js.map +1 -1
- package/core/Action_ThrowException.d.ts +3 -0
- package/core/Action_ThrowException.js +22 -2
- package/core/Action_ThrowException.js.map +1 -1
- package/core/ContainerContext.d.ts +3 -0
- package/core/ContainerContext.js +20 -0
- package/core/ContainerContext.js.map +1 -1
- package/core/Reporter.d.ts +1 -1
- package/core/Reporter.js +30 -17
- package/core/Reporter.js.map +1 -1
- package/core/Scenario.d.ts +3 -0
- package/core/Scenario.js +20 -0
- package/core/Scenario.js.map +1 -1
- package/core/TestException.d.ts +4 -1
- package/core/TestException.js +22 -2
- package/core/TestException.js.map +1 -1
- package/core/_base_apis.d.ts +1 -1
- package/core/_base_apis.js +20 -4
- package/core/_base_apis.js.map +1 -1
- package/index.js +17 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/test-app/AppTester.d.ts +1 -1
- package/test-app/AppTester.js +3 -4
- package/test-app/AppTester.js.map +1 -1
package/core/Action.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Created by IR on 3/18/17.
|
|
3
|
+
*/
|
|
4
|
+
import { Logger, Constructor } from "@intuitionrobotics/ts-common";
|
|
3
5
|
import { ContextKey } from "./ContainerContext";
|
|
4
6
|
import { Reporter } from "./Reporter";
|
|
5
7
|
export declare enum Status {
|
package/core/Action.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,12 +27,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.Action = exports.Status = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
18
|
-
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
30
|
+
/**
|
|
31
|
+
* Created by IR on 3/18/17.
|
|
32
|
+
*/
|
|
33
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
19
34
|
const TestException_1 = require("./TestException");
|
|
20
35
|
var Status;
|
|
21
36
|
(function (Status) {
|
|
@@ -25,10 +40,10 @@ var Status;
|
|
|
25
40
|
Status["Success"] = "Success";
|
|
26
41
|
Status["Error"] = "Error";
|
|
27
42
|
})(Status = exports.Status || (exports.Status = {}));
|
|
28
|
-
class Action extends
|
|
43
|
+
class Action extends ts_common_1.Logger {
|
|
29
44
|
constructor(actionType, tag) {
|
|
30
45
|
super(tag || "Testelot");
|
|
31
|
-
this.uuid =
|
|
46
|
+
this.uuid = ts_common_1.generateUUID();
|
|
32
47
|
this.label = "Unnamed Action";
|
|
33
48
|
this.policy = 1 /* SkipOnError */;
|
|
34
49
|
this.postExecutionDelay = 0;
|
|
@@ -37,13 +52,13 @@ class Action extends Logger_1.Logger {
|
|
|
37
52
|
}
|
|
38
53
|
static resolveTestsToRun() {
|
|
39
54
|
const strings = process.argv.filter((arg) => arg.includes("--test="));
|
|
40
|
-
console.log(`raw: ${
|
|
55
|
+
console.log(`raw: ${ts_common_1.__stringify(strings)}`);
|
|
41
56
|
this.testsToRun = strings.map(arg => arg.replace("--test=", ""));
|
|
42
|
-
console.log(`Tests to run: ${
|
|
57
|
+
console.log(`Tests to run: ${ts_common_1.__stringify(this.testsToRun)}`);
|
|
43
58
|
}
|
|
44
59
|
expectToFail(_exceptionType, assertFailCondition) {
|
|
45
60
|
this.shouldFailCondition = (e) => {
|
|
46
|
-
const err =
|
|
61
|
+
const err = ts_common_1.isErrorOfType(e, _exceptionType);
|
|
47
62
|
if (!err)
|
|
48
63
|
throw new TestException_1.TestException(`Test should have failed with an: ${_exceptionType.name}`);
|
|
49
64
|
return !assertFailCondition ? true : assertFailCondition(err);
|
|
@@ -107,7 +122,7 @@ class Action extends Logger_1.Logger {
|
|
|
107
122
|
_execute() {
|
|
108
123
|
var _a, _b;
|
|
109
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
-
this._started =
|
|
125
|
+
this._started = ts_common_1.currentTimeMillies();
|
|
111
126
|
let label;
|
|
112
127
|
let err;
|
|
113
128
|
let retValue = undefined;
|
|
@@ -126,7 +141,7 @@ class Action extends Logger_1.Logger {
|
|
|
126
141
|
yield this.execute();
|
|
127
142
|
label && this.reporter.logVerbose(`skipped: ${label}`);
|
|
128
143
|
this.reporter.onActionEnded(this);
|
|
129
|
-
this._ended =
|
|
144
|
+
this._ended = ts_common_1.currentTimeMillies();
|
|
130
145
|
return;
|
|
131
146
|
}
|
|
132
147
|
if (this.isContainer())
|
|
@@ -138,7 +153,7 @@ class Action extends Logger_1.Logger {
|
|
|
138
153
|
}
|
|
139
154
|
this.reporter.onActionStarted(this);
|
|
140
155
|
this.setStatus(Status.Running);
|
|
141
|
-
retValue = yield this.execute((param ||
|
|
156
|
+
retValue = yield this.execute((param || ts_common_1.Void));
|
|
142
157
|
}
|
|
143
158
|
catch (e) {
|
|
144
159
|
err = ((_a = this.shouldFailCondition) === null || _a === void 0 ? void 0 : _a.call(this, e)) ? undefined : e;
|
|
@@ -164,8 +179,8 @@ class Action extends Logger_1.Logger {
|
|
|
164
179
|
}
|
|
165
180
|
}
|
|
166
181
|
if (this.postExecutionDelay > 0)
|
|
167
|
-
yield
|
|
168
|
-
this._ended =
|
|
182
|
+
yield ts_common_1.timeout(this.postExecutionDelay);
|
|
183
|
+
this._ended = ts_common_1.currentTimeMillies();
|
|
169
184
|
});
|
|
170
185
|
}
|
|
171
186
|
setStatus(status) {
|
package/core/Action.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../src/main/core/Action.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../src/main/core/Action.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,4DASsC;AAGtC,mDAA8C;AAE9C,IAAY,MAMX;AAND,WAAY,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,CAAC,MAAM;YACf,OAAO;QAER,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IAED,KAAK;QACJ,EAAE;IACH,CAAC;;AAvNF,wBAwNC;AAtNe,iBAAU,GAAa,EAAE,CAAC"}
|
package/core/Action_Container.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,6 +27,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.Action_Container = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* Created by IR on 3/18/17.
|
|
32
|
+
*/
|
|
13
33
|
const Action_1 = require("./Action");
|
|
14
34
|
const ContainerContext_1 = require("./ContainerContext");
|
|
15
35
|
class Action_Container extends Action_1.Action {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action_Container.js","sourceRoot":"","sources":["../../src/main/core/Action_Container.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Action_Container.js","sourceRoot":"","sources":["../../src/main/core/Action_Container.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,qCAIkB;AAElB,yDAG4B;AAE5B,MAAsB,gBACrB,SAAQ,eAAM;IAOd,YAAsB,IAAc,EAAE,GAAY;QACjD,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QANR,YAAO,GAAiB,IAAI,+BAAY,EAAE,CAAC;QAEpC,YAAO,GAAkB,EAAE,CAAC;QACrC,YAAO,GAAY,KAAK,CAAC;IAIjC,CAAC;IAED,WAAW;QACV,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,GAAG,CAAC,GAAG,KAAoB;QACjC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,QAAQ,CAAC,OAAgB;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,GAAG,CAAY,GAA0B;QAC/C,IAAI,IAAI,CAAC,OAAO;YACf,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAEvB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACpC,IAAI,KAAK;YACR,OAAO,KAAK,CAAC;QAEd,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;IAES,MAAM,CAAY,GAA0B;QACrD,IAAI,IAAI,CAAC,OAAO;YACf,OAAO,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAE1B,MAAM,KAAK,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AM,EAAE;oBACtB;wBACC,SAAS;oBAEV;wBACC,IAAI,CAAC,cAAc,qBAAyB,CAAC;wBAC7C,IAAI,CAAC,SAAS,CAAC,eAAM,CAAC,KAAK,CAAC,CAAC;oBAE9B;wBACC,IAAI,CAAC,SAAS,CAAC,eAAM,CAAC,OAAO,CAAC,CAAC;wBAC/B,MAAM;iBACP;aACD;QACF,CAAC;KAAA;IAEM,OAAO;QACb,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC;IAClD,CAAC;CACD;AAjGD,4CAiGC"}
|
package/core/Action_Custom.d.ts
CHANGED
package/core/Action_Custom.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,6 +27,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.Action_Custom = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* Created by IR on 3/18/17.
|
|
32
|
+
*/
|
|
13
33
|
const Action_1 = require("./Action");
|
|
14
34
|
class Action_Custom extends Action_1.Action {
|
|
15
35
|
constructor(action) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action_Custom.js","sourceRoot":"","sources":["../../src/main/core/Action_Custom.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Action_Custom.js","sourceRoot":"","sources":["../../src/main/core/Action_Custom.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,qCAAgC;AAEhC,MAAa,aACZ,SAAQ,eAA+B;IAGvC,YAAsB,MAA0E;QAC/F,KAAK,CAAC,aAAa,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAEe,OAAO,CAAC,KAAiB;;YACxC,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACvC,CAAC;KAAA;CACD;AAZD,sCAYC"}
|
package/core/Action_Http.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,10 +27,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.Action_Http = exports.HttpMethod = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* Created by IR on 3/18/17.
|
|
32
|
+
*/
|
|
33
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
13
34
|
const Action_1 = require("./Action");
|
|
14
35
|
const fetch = require("node-fetch");
|
|
15
|
-
const tools_1 = require("@intuitionrobotics/ts-common/utils/tools");
|
|
16
|
-
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
17
36
|
var HttpMethod;
|
|
18
37
|
(function (HttpMethod) {
|
|
19
38
|
HttpMethod["ALL"] = "all";
|
|
@@ -130,17 +149,17 @@ class Action_Http extends Action_1.Action {
|
|
|
130
149
|
// @ts-ignore
|
|
131
150
|
let match;
|
|
132
151
|
switch (contentType) {
|
|
133
|
-
case (match =
|
|
152
|
+
case (match = ts_common_1.regexpCase(contentType, ".*application/json.*")).input:
|
|
134
153
|
return yield response.json();
|
|
135
|
-
case (match =
|
|
154
|
+
case (match = ts_common_1.regexpCase(contentType, ".*application/x-www-form-urlencoded.*")).input:
|
|
136
155
|
return decodeURI((yield response.text()));
|
|
137
|
-
case (match =
|
|
156
|
+
case (match = ts_common_1.regexpCase(contentType, "^text\\/.*")).input:
|
|
138
157
|
return yield response.text();
|
|
139
158
|
default:
|
|
140
159
|
if (Action_Http.global_resolveResponseBody)
|
|
141
160
|
return Action_Http.global_resolveResponseBody(this, response);
|
|
142
161
|
}
|
|
143
|
-
throw new
|
|
162
|
+
throw new ts_common_1.ImplementationMissingException(`unhandled response with content-type: ${contentType}`);
|
|
144
163
|
});
|
|
145
164
|
}
|
|
146
165
|
executeHttpRequest(requestBody) {
|
|
@@ -157,7 +176,7 @@ class Action_Http extends Action_1.Action {
|
|
|
157
176
|
}
|
|
158
177
|
this.logError(`Got Response code: ${status}`);
|
|
159
178
|
this.logError(`Got Response body: ${_responseBody}`);
|
|
160
|
-
throw new
|
|
179
|
+
throw new ts_common_1.Exception(`wrong status code from server. Expected: ${expectedStatus} received: ${status}`);
|
|
161
180
|
}
|
|
162
181
|
// we don't want to undefine what was already defined just because we failed...
|
|
163
182
|
if (status !== 200 && this.writeKey)
|
package/core/Action_Http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action_Http.js","sourceRoot":"","sources":["../../src/main/core/Action_Http.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Action_Http.js","sourceRoot":"","sources":["../../src/main/core/Action_Http.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,4DAIsC;AACtC,qCAAgC;AAChC,oCAAmC;AAEnC,IAAY,UASX;AATD,WAAY,UAAU;IACrB,yBAAe,CAAA;IACf,2BAAgB,CAAA;IAChB,yBAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,+BAAkB,CAAA;IAClB,yBAAe,CAAA;IACf,iCAAmB,CAAA;IACnB,2BAAgB,CAAA;AACjB,CAAC,EATW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QASrB;AAED,MAAa,WACZ,SAAQ,eAAM;IAed,YAAsB,MAAkB;QACvC,KAAK,CAAC,WAAW,CAAC,CAAC;QAdH,YAAO,GAAkE,EAAE,CAAC;QAGrF,WAAM,GAAQ,EAAE,CAAC;QAKjB,mBAAc,GAAW,G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AAC,4CAA4C,cAAc,iBAAiB,MAAM,EAAE,CAAC,CAAC;aACzG;YAED,+EAA+E;YAC/E,IAAI,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,QAAQ;gBAClC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAEzB,IAAI,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YAC5D,IAAI,IAAI,CAAC,iBAAiB;gBACzB,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;YAErD,IAAI,YAAY,EAAE;gBACjB,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC;gBACjD,IAAI,CAAC,UAAU,CAAC,OAAO,YAAY,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;gBACzG,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;aAC7C;YAED,OAAO,YAAY,CAAC;QACrB,CAAC;KAAA;CACD;AAxLD,kCAwLC"}
|
package/core/Action_Log.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by IR on 3/18/17.
|
|
3
|
+
*/
|
|
1
4
|
import { Action } from "./Action";
|
|
2
|
-
import { LogLevel } from "@intuitionrobotics/ts-common
|
|
5
|
+
import { LogLevel } from "@intuitionrobotics/ts-common";
|
|
3
6
|
export declare class Action_Log extends Action {
|
|
4
7
|
private readonly logMessage;
|
|
5
8
|
private readonly level;
|
package/core/Action_Log.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,6 +27,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.Action_Log = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* Created by IR on 3/18/17.
|
|
32
|
+
*/
|
|
13
33
|
const Action_1 = require("./Action");
|
|
14
34
|
class Action_Log extends Action_1.Action {
|
|
15
35
|
constructor(logMessage, level) {
|
package/core/Action_Log.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action_Log.js","sourceRoot":"","sources":["../../src/main/core/Action_Log.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Action_Log.js","sourceRoot":"","sources":["../../src/main/core/Action_Log.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,qCAAgC;AAIhC,MAAa,UACZ,SAAQ,eAAM;IAId,YAAsB,UAAkB,EAAE,KAAe;QACxD,KAAK,CAAC,UAAU,CAAC,CAAC;QAClB,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;IAEe,OAAO;;YACtB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;QAChD,CAAC;KAAA;CACD;AAfD,gCAeC"}
|
package/core/Action_Sleep.d.ts
CHANGED
package/core/Action_Sleep.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,8 +27,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.Action_Sleep = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* Created by IR on 3/18/17.
|
|
32
|
+
*/
|
|
13
33
|
const Action_1 = require("./Action");
|
|
14
|
-
const
|
|
34
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
15
35
|
class Action_Sleep extends Action_1.Action {
|
|
16
36
|
constructor(sleepMs) {
|
|
17
37
|
super(Action_Sleep);
|
|
@@ -20,7 +40,7 @@ class Action_Sleep extends Action_1.Action {
|
|
|
20
40
|
}
|
|
21
41
|
execute() {
|
|
22
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return
|
|
43
|
+
return ts_common_1.timeout(this.sleepMs);
|
|
24
44
|
});
|
|
25
45
|
}
|
|
26
46
|
}
|
package/core/Action_Sleep.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action_Sleep.js","sourceRoot":"","sources":["../../src/main/core/Action_Sleep.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Action_Sleep.js","sourceRoot":"","sources":["../../src/main/core/Action_Sleep.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,qCAAgC;AAChC,4DAAqD;AAGrD,MAAa,YACZ,SAAQ,eAAM;IAGd,YAAsB,OAAe;QACpC,KAAK,CAAC,YAAY,CAAC,CAAC;QACpB,IAAI,CAAC,QAAQ,CAAC,gBAAgB,OAAO,KAAK,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IAEe,OAAO;;YACtB,OAAO,mBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC;KAAA;CACD;AAbD,oCAaC"}
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,8 +27,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.Action_ThrowException = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* Created by IR on 3/18/17.
|
|
32
|
+
*/
|
|
13
33
|
const Action_1 = require("./Action");
|
|
14
|
-
const
|
|
34
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
15
35
|
class Action_ThrowException extends Action_1.Action {
|
|
16
36
|
constructor(message, tag) {
|
|
17
37
|
super(Action_ThrowException, tag);
|
|
@@ -19,7 +39,7 @@ class Action_ThrowException extends Action_1.Action {
|
|
|
19
39
|
}
|
|
20
40
|
execute() {
|
|
21
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
throw new
|
|
42
|
+
throw new ts_common_1.Exception(this.message);
|
|
23
43
|
});
|
|
24
44
|
}
|
|
25
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Action_ThrowException.js","sourceRoot":"","sources":["../../src/main/core/Action_ThrowException.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Action_ThrowException.js","sourceRoot":"","sources":["../../src/main/core/Action_ThrowException.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,qCAAgC;AAChC,4DAAuD;AAGvD,MAAa,qBACZ,SAAQ,eAAM;IAGd,YAAsB,OAAe,EAAE,GAAY;QAClD,KAAK,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IAEe,OAAO;;YACtB,MAAM,IAAI,qBAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC;KAAA;CACD;AAZD,sDAYC"}
|
package/core/ContainerContext.js
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
20
|
exports.TypedHashMap = exports.ContextKey = void 0;
|
|
21
|
+
/**
|
|
22
|
+
* Created by IR on 3/18/17.
|
|
23
|
+
*/
|
|
4
24
|
class ContextKey {
|
|
5
25
|
constructor(key, defaultValue) {
|
|
6
26
|
this.key = key;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContainerContext.js","sourceRoot":"","sources":["../../src/main/core/ContainerContext.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ContainerContext.js","sourceRoot":"","sources":["../../src/main/core/ContainerContext.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH;;GAEG;AAEH,MAAa,UAAU;IAItB,YAAY,GAAW,EAAE,YAAgB;QACxC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IAClC,CAAC;CACD;AARD,gCAQC;AAED,MAAa,YAAY;IAAzB;QAES,QAAG,GAAqB,IAAI,GAAG,EAAe,CAAC;IAiBxD,CAAC;IAfA,MAAM,CAAC,GAAoB;QAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,GAAG,CAAY,GAA0B;QACxC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAc,CAAC;IAC3C,CAAC;IAED,GAAG,CAAY,GAA0B,EAAE,KAAgB;QAC1D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAEA,KAAK;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CACD;AAnBD,oCAmBC"}
|
package/core/Reporter.d.ts
CHANGED
package/core/Reporter.js
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
20
|
exports.ActionReport = exports.Reporter = void 0;
|
|
4
21
|
const Action_1 = require("./Action");
|
|
5
|
-
const
|
|
6
|
-
const utils_1 = require("@intuitionrobotics/ts-common/core/logger/utils");
|
|
7
|
-
const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
|
|
8
|
-
const LogClient_Terminal_1 = require("@intuitionrobotics/ts-common/core/logger/LogClient_Terminal");
|
|
9
|
-
const LogClient_1 = require("@intuitionrobotics/ts-common/core/logger/LogClient");
|
|
22
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
10
23
|
class ReportSummary {
|
|
11
24
|
constructor() {
|
|
12
25
|
this.Running = 0;
|
|
@@ -15,13 +28,13 @@ class ReportSummary {
|
|
|
15
28
|
this.Error = 0;
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
|
-
class Reporter extends
|
|
31
|
+
class Reporter extends ts_common_1.Logger {
|
|
19
32
|
constructor() {
|
|
20
33
|
super("Testelot");
|
|
21
34
|
this.reports = {};
|
|
22
35
|
this.summary = new ReportSummary();
|
|
23
36
|
this.reporter = new ReporterLogClient(this);
|
|
24
|
-
|
|
37
|
+
ts_common_1.BeLogged.addClient(this.reporter);
|
|
25
38
|
}
|
|
26
39
|
init() {
|
|
27
40
|
}
|
|
@@ -73,26 +86,26 @@ function pad(value, length) {
|
|
|
73
86
|
}
|
|
74
87
|
return s;
|
|
75
88
|
}
|
|
76
|
-
class ReporterLogClient extends
|
|
89
|
+
class ReporterLogClient extends ts_common_1.LogClient {
|
|
77
90
|
constructor(report) {
|
|
78
91
|
super();
|
|
79
92
|
this.indent = "";
|
|
80
93
|
this.composer = (tag, level) => {
|
|
81
|
-
const successPart = `\x1b[32m${pad(this.report.summary.Success, 3)}${
|
|
82
|
-
const skippedPart = `\x1b[90m\x1b[1m${pad(this.report.summary.Skipped, 3)}${
|
|
83
|
-
const errorPart = `\x1b[31m${pad(this.report.summary.Error, 3)}${
|
|
94
|
+
const successPart = `\x1b[32m${pad(this.report.summary.Success, 3)}${ts_common_1.NoColor}`;
|
|
95
|
+
const skippedPart = `\x1b[90m\x1b[1m${pad(this.report.summary.Skipped, 3)}${ts_common_1.NoColor}`;
|
|
96
|
+
const errorPart = `\x1b[31m${pad(this.report.summary.Error, 3)}${ts_common_1.NoColor}`;
|
|
84
97
|
const status = `${errorPart}/${skippedPart}/${successPart}`;
|
|
85
|
-
const defaultPrefix =
|
|
86
|
-
const color =
|
|
87
|
-
return ` ${defaultPrefix} ${
|
|
98
|
+
const defaultPrefix = ts_common_1.DefaultLogPrefixComposer("Testelot", level);
|
|
99
|
+
const color = ts_common_1.LogClient_Terminal.getColor(level);
|
|
100
|
+
return ` ${defaultPrefix} ${ts_common_1.NoColor}[${status}]:${color} ${this.indent}`;
|
|
88
101
|
};
|
|
89
102
|
this.report = report;
|
|
90
103
|
this.setComposer(this.composer);
|
|
91
104
|
}
|
|
92
105
|
logMessage(level, bold, prefix, toLog) {
|
|
93
|
-
const color =
|
|
94
|
-
const paramsAsStrings =
|
|
95
|
-
paramsAsStrings.forEach(str => console.log(
|
|
106
|
+
const color = ts_common_1.LogClient_Terminal.getColor(level, bold);
|
|
107
|
+
const paramsAsStrings = ts_common_1._logger_convertLogParamsToStrings(toLog);
|
|
108
|
+
paramsAsStrings.forEach(str => console.log(ts_common_1._logger_indentNewLineBy(color + prefix, str), ts_common_1.NoColor));
|
|
96
109
|
}
|
|
97
110
|
onContainerStarted() {
|
|
98
111
|
this.indent += ReporterLogClient.indent;
|
package/core/Reporter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reporter.js","sourceRoot":"","sources":["../../src/main/core/Reporter.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Reporter.js","sourceRoot":"","sources":["../../src/main/core/Reporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,qCAGkB;AAElB,4DAYsC;AAEtC,MAAM,aAAa;IAAnB;QACC,YAAO,GAAW,CAAC,CAAC;QACpB,YAAO,GAAW,CAAC,CAAC;QACpB,YAAO,GAAW,CAAC,CAAC;QACpB,UAAK,GAAW,CAAC,CAAC;IACnB,CAAC;CAAA;AAED,MAAa,QACZ,SAAQ,kBAAM;IASd;QACC,KAAK,CAAC,UAAU,CAAC,CAAC;QARF,YAAO,GAAoC,EAAE,CAAC;QAC/C,YAAO,GAAkB,IAAI,aAAa,EAAE,CAAC;QAIrD,aAAQ,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAI9C,oBAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;IAED,IAAI;IACJ,CAAC;IAED,UAAU,CAAC,UAAkB;QAC5B,IAAI,IAAI,CAAC,MAAM;YACd,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IAED,eAAe,CAAC,MAAmB;QAClC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;QACnE,4BAA4B;QAC5B,IAAI,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAC;IACpC,CAAC;IAED,aAAa,CAAC,MAAmB;QAChC,QAAQ,MAA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iB,CAAC,MAAM,CAAC;IACzC,CAAC;IAED,gBAAgB;QACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC7F,OAAO;IACR,CAAC;;AAlCc,wBAAM,GAAW,IAAI,CAAC"}
|
package/core/Scenario.d.ts
CHANGED
package/core/Scenario.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,6 +27,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports.Scenario = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* Created by IR on 3/18/17.
|
|
32
|
+
*/
|
|
13
33
|
const Action_Container_1 = require("./Action_Container");
|
|
14
34
|
class Scenario extends Action_Container_1.Action_Container {
|
|
15
35
|
constructor() {
|
package/core/Scenario.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scenario.js","sourceRoot":"","sources":["../../src/main/core/Scenario.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Scenario.js","sourceRoot":"","sources":["../../src/main/core/Scenario.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH;;GAEG;AACH,yDAAoD;AAEpD,MAAa,QACZ,SAAQ,mCAAgB;IAExB;QACC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAGV,QAAG,GAAG,GAAS,EAAE;YACvB,aAAa;YACb,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;QACvB,CAAC,CAAA,CAAC;IALF,CAAC;CAMD;AAXD,4BAWC"}
|
package/core/TestException.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Created by IR on 3/18/17.
|
|
3
|
+
*/
|
|
4
|
+
import { CustomException } from "@intuitionrobotics/ts-common";
|
|
2
5
|
export declare class TestException extends CustomException {
|
|
3
6
|
constructor(message: string);
|
|
4
7
|
}
|
package/core/TestException.js
CHANGED
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
20
|
exports.TestException = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Created by IR on 3/18/17.
|
|
23
|
+
*/
|
|
24
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
25
|
+
class TestException extends ts_common_1.CustomException {
|
|
6
26
|
constructor(message) {
|
|
7
27
|
super(TestException, message);
|
|
8
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestException.js","sourceRoot":"","sources":["../../src/main/core/TestException.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TestException.js","sourceRoot":"","sources":["../../src/main/core/TestException.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH;;GAEG;AACH,4DAA6D;AAG7D,MAAa,aACZ,SAAQ,2BAAe;IAEvB,YAAY,OAAe;QAC1B,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACD;AAND,sCAMC"}
|
package/core/_base_apis.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LogLevel } from "@intuitionrobotics/ts-common
|
|
1
|
+
import { LogLevel } from "@intuitionrobotics/ts-common";
|
|
2
2
|
import { Action_Custom, Action_Http, Action_Log, Action_Sleep, Action_ThrowException, ContextKey, HttpMethod, Scenario } from "../index";
|
|
3
3
|
import { Reporter } from "./Reporter";
|
|
4
4
|
export declare function __log(logMessage: string, level?: LogLevel): Action_Log;
|
package/core/_base_apis.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
20
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
21
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,11 +27,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
27
|
};
|
|
11
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
29
|
exports._executeScenario = exports.enableTerminalLogReWrite = exports.__throwException = exports.__scenario = exports.__compareKeys = exports.__custom = exports.__http = exports.__sleep = exports.__log = void 0;
|
|
13
|
-
const
|
|
14
|
-
const BeLogged_1 = require("@intuitionrobotics/ts-common/core/logger/BeLogged");
|
|
30
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
15
31
|
const index_1 = require("../index");
|
|
16
32
|
const objectHash = require("object-hash");
|
|
17
|
-
function __log(logMessage, level =
|
|
33
|
+
function __log(logMessage, level = ts_common_1.LogLevel.Verbose) {
|
|
18
34
|
// @ts-ignore
|
|
19
35
|
return new index_1.Action_Log(logMessage, level);
|
|
20
36
|
}
|
|
@@ -57,7 +73,7 @@ function __throwException(message) {
|
|
|
57
73
|
}
|
|
58
74
|
exports.__throwException = __throwException;
|
|
59
75
|
function enableTerminalLogReWrite() {
|
|
60
|
-
|
|
76
|
+
ts_common_1.BeLogged.rewriteConsole = (lineCount => {
|
|
61
77
|
let rewriteCommand = "";
|
|
62
78
|
for (let i = 0; i < lineCount; i++) {
|
|
63
79
|
rewriteCommand += "tput cuu1 tput el;";
|
package/core/_base_apis.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_base_apis.js","sourceRoot":"","sources":["../../src/main/core/_base_apis.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"_base_apis.js","sourceRoot":"","sources":["../../src/main/core/_base_apis.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,4DAGsC;AAEtC,oCAUkB;AAGlB,0CAA0C;AAE1C,SAAgB,KAAK,CAAC,UAAkB,EAAE,QAAkB,oBAAQ,CAAC,OAAO;IAC3E,aAAa;IACb,OAAO,IAAI,kBAAU,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC;AAHD,sBAGC;AAED,SAAgB,OAAO,CAAC,OAAe;IACtC,aAAa;IACb,OAAO,IAAI,oBAAY,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC;AAHD,0BAGC;AAED,SAAgB,MAAM,CAAyB,MAAkB;IAChE,aAAa;IACb,OAAO,IAAI,mBAAW,CAAI,MAAM,CAAC,CAAC;AACnC,CAAC;AAHD,wBAGC;AAED,SAAgB,QAAQ,CAA2C,MAAwD;IAC1H,aAAa;IACb,OAAO,IAAI,qBAAa,CAAO,MAAM,CAAC,CAAC;AACxC,CAAC;AAHD,4BAGC;AAED,SAAgB,aAAa,CAAsB,IAAmB,EAAE,IAAmB;IAC1F,OAAO,QAAQ,CAAU,CAAO,MAAqB,EAAE,EAAE;QACxD,IAAI,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,KAAK,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SACD,KAAK,CAAC,MAAM,CAAC,EAAE;QACf,QAAQ,CAAC,QAAQ,CAAC,0CAA0C,CAAC,CAAC;QAC9D,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AAEL,CAAC;AAVD,4CAUC"}
|
package/index.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Testelot is a typescript scenario composing framework
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2020 Intuition Robotics
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
2
19
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
20
|
if (k2 === undefined) k2 = k;
|
|
4
21
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;AAEH,uDAAqC;AACrC,gDAA8B;AAC9B,0DAAwC;AACxC,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,sDAAoC;AACpC,+DAA6C;AAC7C,0DAAwC;AACxC,kDAAgC;AAChC,kDAAgC;AAChC,oDAAkC;AAClC,uDAAqC"}
|
package/package.json
CHANGED
package/test-app/AppTester.d.ts
CHANGED
package/test-app/AppTester.js
CHANGED
|
@@ -10,16 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AppTester = void 0;
|
|
13
|
-
const
|
|
14
|
-
const module_manager_1 = require("@intuitionrobotics/ts-common/core/module-manager");
|
|
13
|
+
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
15
14
|
const __1 = require("..");
|
|
16
|
-
class AppTester extends
|
|
15
|
+
class AppTester extends ts_common_1.ModuleManager {
|
|
17
16
|
constructor() {
|
|
18
17
|
super();
|
|
19
18
|
this.reporter = new __1.Reporter();
|
|
20
19
|
this.runTestsImpl = () => __awaiter(this, void 0, void 0, function* () {
|
|
21
20
|
if (!this.scenario)
|
|
22
|
-
throw new
|
|
21
|
+
throw new ts_common_1.ImplementationMissingException("No test specified!!");
|
|
23
22
|
this.prepare();
|
|
24
23
|
this.init();
|
|
25
24
|
this.reporter.init();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppTester.js","sourceRoot":"","sources":["../../src/main/test-app/AppTester.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"AppTester.js","sourceRoot":"","sources":["../../src/main/test-app/AppTester.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4DAGsC;AACtC,0BAKY;AAEZ,MAAa,SACZ,SAAQ,yBAAa;IAKrB;QACC,KAAK,EAAE,CAAC;QAHD,aAAQ,GAAG,IAAI,YAAQ,EAAE,CAAC;QAqClC,iBAAY,GAAG,GAAS,EAAE;YACzB,IAAI,CAAC,IAAI,CAAC,QAAQ;gBACjB,MAAM,IAAI,0CAA8B,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