@intuitionrobotics/testelot 0.45.3 → 0.46.0
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 +2 -4
- package/core/Action.js +16 -31
- package/core/Action.js.map +1 -1
- package/core/Action_Container.d.ts +0 -3
- package/core/Action_Container.js +0 -20
- package/core/Action_Container.js.map +1 -1
- package/core/Action_Custom.d.ts +0 -3
- package/core/Action_Custom.js +0 -20
- package/core/Action_Custom.js.map +1 -1
- package/core/Action_Http.js +7 -26
- package/core/Action_Http.js.map +1 -1
- package/core/Action_Log.d.ts +1 -4
- package/core/Action_Log.js +0 -20
- package/core/Action_Log.js.map +1 -1
- package/core/Action_Sleep.d.ts +0 -3
- package/core/Action_Sleep.js +2 -22
- package/core/Action_Sleep.js.map +1 -1
- package/core/Action_ThrowException.d.ts +0 -3
- package/core/Action_ThrowException.js +2 -22
- package/core/Action_ThrowException.js.map +1 -1
- package/core/ContainerContext.d.ts +0 -3
- package/core/ContainerContext.js +0 -20
- package/core/ContainerContext.js.map +1 -1
- package/core/Reporter.d.ts +1 -1
- package/core/Reporter.js +17 -30
- package/core/Reporter.js.map +1 -1
- package/core/Scenario.d.ts +0 -3
- package/core/Scenario.js +0 -20
- package/core/Scenario.js.map +1 -1
- package/core/TestException.d.ts +1 -4
- package/core/TestException.js +2 -22
- package/core/TestException.js.map +1 -1
- package/core/_base_apis.d.ts +1 -1
- package/core/_base_apis.js +4 -20
- package/core/_base_apis.js.map +1 -1
- package/index.js +0 -17
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/test-app/AppTester.d.ts +1 -1
- package/test-app/AppTester.js +4 -3
- package/test-app/AppTester.js.map +1 -1
package/core/Action.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import { Logger, Constructor } from "@intuitionrobotics/ts-common";
|
|
1
|
+
import { Logger } from "@intuitionrobotics/ts-common/core/logger/Logger";
|
|
2
|
+
import { Constructor } from "@intuitionrobotics/ts-common/utils/types";
|
|
5
3
|
import { ContextKey } from "./ContainerContext";
|
|
6
4
|
import { Reporter } from "./Reporter";
|
|
7
5
|
export declare enum Status {
|
package/core/Action.js
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,10 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.Action = exports.Status = void 0;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const
|
|
13
|
+
const Logger_1 = require("@intuitionrobotics/ts-common/core/logger/Logger");
|
|
14
|
+
const random_tools_1 = require("@intuitionrobotics/ts-common/utils/random-tools");
|
|
15
|
+
const tools_1 = require("@intuitionrobotics/ts-common/utils/tools");
|
|
16
|
+
const types_1 = require("@intuitionrobotics/ts-common/utils/types");
|
|
17
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
18
|
+
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
34
19
|
const TestException_1 = require("./TestException");
|
|
35
20
|
var Status;
|
|
36
21
|
(function (Status) {
|
|
@@ -40,10 +25,10 @@ var Status;
|
|
|
40
25
|
Status["Success"] = "Success";
|
|
41
26
|
Status["Error"] = "Error";
|
|
42
27
|
})(Status = exports.Status || (exports.Status = {}));
|
|
43
|
-
class Action extends
|
|
28
|
+
class Action extends Logger_1.Logger {
|
|
44
29
|
constructor(actionType, tag) {
|
|
45
30
|
super(tag || "Testelot");
|
|
46
|
-
this.uuid =
|
|
31
|
+
this.uuid = random_tools_1.generateUUID();
|
|
47
32
|
this.label = "Unnamed Action";
|
|
48
33
|
this.policy = 1 /* SkipOnError */;
|
|
49
34
|
this.postExecutionDelay = 0;
|
|
@@ -52,13 +37,13 @@ class Action extends ts_common_1.Logger {
|
|
|
52
37
|
}
|
|
53
38
|
static resolveTestsToRun() {
|
|
54
39
|
const strings = process.argv.filter((arg) => arg.includes("--test="));
|
|
55
|
-
console.log(`raw: ${
|
|
40
|
+
console.log(`raw: ${tools_1.__stringify(strings)}`);
|
|
56
41
|
this.testsToRun = strings.map(arg => arg.replace("--test=", ""));
|
|
57
|
-
console.log(`Tests to run: ${
|
|
42
|
+
console.log(`Tests to run: ${tools_1.__stringify(this.testsToRun)}`);
|
|
58
43
|
}
|
|
59
44
|
expectToFail(_exceptionType, assertFailCondition) {
|
|
60
45
|
this.shouldFailCondition = (e) => {
|
|
61
|
-
const err =
|
|
46
|
+
const err = exceptions_1.isErrorOfType(e, _exceptionType);
|
|
62
47
|
if (!err)
|
|
63
48
|
throw new TestException_1.TestException(`Test should have failed with an: ${_exceptionType.name}`);
|
|
64
49
|
return !assertFailCondition ? true : assertFailCondition(err);
|
|
@@ -122,7 +107,7 @@ class Action extends ts_common_1.Logger {
|
|
|
122
107
|
_execute() {
|
|
123
108
|
var _a, _b;
|
|
124
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
-
this._started =
|
|
110
|
+
this._started = date_time_tools_1.currentTimeMillies();
|
|
126
111
|
let label;
|
|
127
112
|
let err;
|
|
128
113
|
let retValue = undefined;
|
|
@@ -141,7 +126,7 @@ class Action extends ts_common_1.Logger {
|
|
|
141
126
|
yield this.execute();
|
|
142
127
|
label && this.reporter.logVerbose(`skipped: ${label}`);
|
|
143
128
|
this.reporter.onActionEnded(this);
|
|
144
|
-
this._ended =
|
|
129
|
+
this._ended = date_time_tools_1.currentTimeMillies();
|
|
145
130
|
return;
|
|
146
131
|
}
|
|
147
132
|
if (this.isContainer())
|
|
@@ -153,7 +138,7 @@ class Action extends ts_common_1.Logger {
|
|
|
153
138
|
}
|
|
154
139
|
this.reporter.onActionStarted(this);
|
|
155
140
|
this.setStatus(Status.Running);
|
|
156
|
-
retValue = yield this.execute((param ||
|
|
141
|
+
retValue = yield this.execute((param || types_1.Void));
|
|
157
142
|
}
|
|
158
143
|
catch (e) {
|
|
159
144
|
err = ((_a = this.shouldFailCondition) === null || _a === void 0 ? void 0 : _a.call(this, e)) ? undefined : e;
|
|
@@ -179,8 +164,8 @@ class Action extends ts_common_1.Logger {
|
|
|
179
164
|
}
|
|
180
165
|
}
|
|
181
166
|
if (this.postExecutionDelay > 0)
|
|
182
|
-
yield
|
|
183
|
-
this._ended =
|
|
167
|
+
yield date_time_tools_1.timeout(this.postExecutionDelay);
|
|
168
|
+
this._ended = date_time_tools_1.currentTimeMillies();
|
|
184
169
|
});
|
|
185
170
|
}
|
|
186
171
|
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":["../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I,CAAC,MAAM;YACf,OAAO,KAAK,CAAC;QAEd,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAEM,GAAG,CAAY,GAA0B,EAAE,KAAgB;QACjE,IAAI,CAAC,IAAI,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,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,9 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.Action_Container = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* Created by IR on 3/18/17.
|
|
32
|
-
*/
|
|
33
13
|
const Action_1 = require("./Action");
|
|
34
14
|
const ContainerContext_1 = require("./ContainerContext");
|
|
35
15
|
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,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,M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CAAC;gBACrC,IAAI,MAAM,CAAC,MAAM,KAAK,eAAM,CAAC,KAAK;oBACjC,SAAS;gBAEV,8CAA8C;gBAC9C,QAAQ,MAAM,CAAC,MAAM,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,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,9 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.Action_Custom = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* Created by IR on 3/18/17.
|
|
32
|
-
*/
|
|
33
13
|
const Action_1 = require("./Action");
|
|
34
14
|
class Action_Custom extends Action_1.Action {
|
|
35
15
|
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,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,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,12 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
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");
|
|
34
13
|
const Action_1 = require("./Action");
|
|
35
14
|
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");
|
|
36
17
|
var HttpMethod;
|
|
37
18
|
(function (HttpMethod) {
|
|
38
19
|
HttpMethod["ALL"] = "all";
|
|
@@ -149,17 +130,17 @@ class Action_Http extends Action_1.Action {
|
|
|
149
130
|
// @ts-ignore
|
|
150
131
|
let match;
|
|
151
132
|
switch (contentType) {
|
|
152
|
-
case (match =
|
|
133
|
+
case (match = tools_1.regexpCase(contentType, ".*application/json.*")).input:
|
|
153
134
|
return yield response.json();
|
|
154
|
-
case (match =
|
|
135
|
+
case (match = tools_1.regexpCase(contentType, ".*application/x-www-form-urlencoded.*")).input:
|
|
155
136
|
return decodeURI((yield response.text()));
|
|
156
|
-
case (match =
|
|
137
|
+
case (match = tools_1.regexpCase(contentType, "^text\\/.*")).input:
|
|
157
138
|
return yield response.text();
|
|
158
139
|
default:
|
|
159
140
|
if (Action_Http.global_resolveResponseBody)
|
|
160
141
|
return Action_Http.global_resolveResponseBody(this, response);
|
|
161
142
|
}
|
|
162
|
-
throw new
|
|
143
|
+
throw new exceptions_1.ImplementationMissingException(`unhandled response with content-type: ${contentType}`);
|
|
163
144
|
});
|
|
164
145
|
}
|
|
165
146
|
executeHttpRequest(requestBody) {
|
|
@@ -176,7 +157,7 @@ class Action_Http extends Action_1.Action {
|
|
|
176
157
|
}
|
|
177
158
|
this.logError(`Got Response code: ${status}`);
|
|
178
159
|
this.logError(`Got Response body: ${_responseBody}`);
|
|
179
|
-
throw new
|
|
160
|
+
throw new exceptions_1.Exception(`wrong status code from server. Expected: ${expectedStatus} received: ${status}`);
|
|
180
161
|
}
|
|
181
162
|
// we don't want to undefine what was already defined just because we failed...
|
|
182
163
|
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,qCAAgC;AAChC,oCAAmC;AACnC,oEAAoE;AACpE,6EAAuG;AAEvG,IAAY,UASX;AATD,WAAY,UAAU;IAClB,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,yBAAW,CAAA;IACX,iCAAmB,CAAA;IACnB,2BAAa,CAAA;AACjB,CAAC,EATW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QASrB;AAED,MAAa,WACT,SAAQ,eAAM;IAed,YAAsB,MAAkB;QACpC,KAAK,CAAC,WAAW,CAAC,CAAC;QAdN,YAAO,GAAkE,EAAE,CAAC;QAGrF,WAAM,GAAQ,EAAE,CAAC;QAKjB,mBAAc,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AAI,sBAAS,CAAC,4CAA4C,cAAc,iBAAiB,MAAM,EAAE,CAAC,CAAC;aAC5G;YAED,+EAA+E;YAC/E,IAAI,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,QAAQ;gBAC/B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAE5B,IAAI,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YAC5D,IAAI,IAAI,CAAC,iBAAiB;gBACtB,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;YAExD,IAAI,YAAY,EAAE;gBACd,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;aAChD;YAED,OAAO,YAAY,CAAC;QACxB,CAAC;KAAA;CACJ;AAxLD,kCAwLC"}
|
package/core/Action_Log.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by IR on 3/18/17.
|
|
3
|
-
*/
|
|
4
1
|
import { Action } from "./Action";
|
|
5
|
-
import { LogLevel } from "@intuitionrobotics/ts-common";
|
|
2
|
+
import { LogLevel } from "@intuitionrobotics/ts-common/core/logger/types";
|
|
6
3
|
export declare class Action_Log extends Action {
|
|
7
4
|
private readonly logMessage;
|
|
8
5
|
private readonly level;
|
package/core/Action_Log.js
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,9 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.Action_Log = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* Created by IR on 3/18/17.
|
|
32
|
-
*/
|
|
33
13
|
const Action_1 = require("./Action");
|
|
34
14
|
class Action_Log extends Action_1.Action {
|
|
35
15
|
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,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,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,11 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.Action_Sleep = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* Created by IR on 3/18/17.
|
|
32
|
-
*/
|
|
33
13
|
const Action_1 = require("./Action");
|
|
34
|
-
const
|
|
14
|
+
const date_time_tools_1 = require("@intuitionrobotics/ts-common/utils/date-time-tools");
|
|
35
15
|
class Action_Sleep extends Action_1.Action {
|
|
36
16
|
constructor(sleepMs) {
|
|
37
17
|
super(Action_Sleep);
|
|
@@ -40,7 +20,7 @@ class Action_Sleep extends Action_1.Action {
|
|
|
40
20
|
}
|
|
41
21
|
execute() {
|
|
42
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
-
return
|
|
23
|
+
return date_time_tools_1.timeout(this.sleepMs);
|
|
44
24
|
});
|
|
45
25
|
}
|
|
46
26
|
}
|
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,qCAAgC;AAChC,wFAA2E;AAG3E,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,yBAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC;KAAA;CACD;AAbD,oCAaC"}
|
|
@@ -1,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,11 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.Action_ThrowException = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* Created by IR on 3/18/17.
|
|
32
|
-
*/
|
|
33
13
|
const Action_1 = require("./Action");
|
|
34
|
-
const
|
|
14
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
35
15
|
class Action_ThrowException extends Action_1.Action {
|
|
36
16
|
constructor(message, tag) {
|
|
37
17
|
super(Action_ThrowException, tag);
|
|
@@ -39,7 +19,7 @@ class Action_ThrowException extends Action_1.Action {
|
|
|
39
19
|
}
|
|
40
20
|
execute() {
|
|
41
21
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
throw new
|
|
22
|
+
throw new exceptions_1.Exception(this.message);
|
|
43
23
|
});
|
|
44
24
|
}
|
|
45
25
|
}
|
|
@@ -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,qCAAgC;AAChC,6EAAuE;AAGvE,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,sBAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC;KAAA;CACD;AAZD,sDAYC"}
|
package/core/ContainerContext.js
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
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
|
-
*/
|
|
19
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
3
|
exports.TypedHashMap = exports.ContextKey = void 0;
|
|
21
|
-
/**
|
|
22
|
-
* Created by IR on 3/18/17.
|
|
23
|
-
*/
|
|
24
4
|
class ContextKey {
|
|
25
5
|
constructor(key, defaultValue) {
|
|
26
6
|
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":";;;AACA,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,25 +1,12 @@
|
|
|
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
|
-
*/
|
|
19
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
3
|
exports.ActionReport = exports.Reporter = void 0;
|
|
21
4
|
const Action_1 = require("./Action");
|
|
22
|
-
const
|
|
5
|
+
const BeLogged_1 = require("@intuitionrobotics/ts-common/core/logger/BeLogged");
|
|
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");
|
|
23
10
|
class ReportSummary {
|
|
24
11
|
constructor() {
|
|
25
12
|
this.Running = 0;
|
|
@@ -28,13 +15,13 @@ class ReportSummary {
|
|
|
28
15
|
this.Error = 0;
|
|
29
16
|
}
|
|
30
17
|
}
|
|
31
|
-
class Reporter extends
|
|
18
|
+
class Reporter extends Logger_1.Logger {
|
|
32
19
|
constructor() {
|
|
33
20
|
super("Testelot");
|
|
34
21
|
this.reports = {};
|
|
35
22
|
this.summary = new ReportSummary();
|
|
36
23
|
this.reporter = new ReporterLogClient(this);
|
|
37
|
-
|
|
24
|
+
BeLogged_1.BeLogged.addClient(this.reporter);
|
|
38
25
|
}
|
|
39
26
|
init() {
|
|
40
27
|
}
|
|
@@ -86,26 +73,26 @@ function pad(value, length) {
|
|
|
86
73
|
}
|
|
87
74
|
return s;
|
|
88
75
|
}
|
|
89
|
-
class ReporterLogClient extends
|
|
76
|
+
class ReporterLogClient extends LogClient_1.LogClient {
|
|
90
77
|
constructor(report) {
|
|
91
78
|
super();
|
|
92
79
|
this.indent = "";
|
|
93
80
|
this.composer = (tag, level) => {
|
|
94
|
-
const successPart = `\x1b[32m${pad(this.report.summary.Success, 3)}${
|
|
95
|
-
const skippedPart = `\x1b[90m\x1b[1m${pad(this.report.summary.Skipped, 3)}${
|
|
96
|
-
const errorPart = `\x1b[31m${pad(this.report.summary.Error, 3)}${
|
|
81
|
+
const successPart = `\x1b[32m${pad(this.report.summary.Success, 3)}${LogClient_Terminal_1.NoColor}`;
|
|
82
|
+
const skippedPart = `\x1b[90m\x1b[1m${pad(this.report.summary.Skipped, 3)}${LogClient_Terminal_1.NoColor}`;
|
|
83
|
+
const errorPart = `\x1b[31m${pad(this.report.summary.Error, 3)}${LogClient_Terminal_1.NoColor}`;
|
|
97
84
|
const status = `${errorPart}/${skippedPart}/${successPart}`;
|
|
98
|
-
const defaultPrefix =
|
|
99
|
-
const color =
|
|
100
|
-
return ` ${defaultPrefix} ${
|
|
85
|
+
const defaultPrefix = LogClient_1.DefaultLogPrefixComposer("Testelot", level);
|
|
86
|
+
const color = LogClient_Terminal_1.LogClient_Terminal.getColor(level);
|
|
87
|
+
return ` ${defaultPrefix} ${LogClient_Terminal_1.NoColor}[${status}]:${color} ${this.indent}`;
|
|
101
88
|
};
|
|
102
89
|
this.report = report;
|
|
103
90
|
this.setComposer(this.composer);
|
|
104
91
|
}
|
|
105
92
|
logMessage(level, bold, prefix, toLog) {
|
|
106
|
-
const color =
|
|
107
|
-
const paramsAsStrings =
|
|
108
|
-
paramsAsStrings.forEach(str => console.log(
|
|
93
|
+
const color = LogClient_Terminal_1.LogClient_Terminal.getColor(level, bold);
|
|
94
|
+
const paramsAsStrings = utils_1._logger_convertLogParamsToStrings(toLog);
|
|
95
|
+
paramsAsStrings.forEach(str => console.log(utils_1._logger_indentNewLineBy(color + prefix, str), LogClient_Terminal_1.NoColor));
|
|
109
96
|
}
|
|
110
97
|
onContainerStarted() {
|
|
111
98
|
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,qCAAwC;AAIxC,gFAA2E;AAC3E,0EAGwD;AAExD,4EAAuE;AACvE,oGAAyG;AACzG,kFAAuG;AAEvG,MAAM,aAAa;IAAnB;QACI,YAAO,GAAW,CAAC,CAAC;QACpB,YAAO,GAAW,CAAC,CAAC;QACpB,YAAO,GAAW,CAAC,CAAC;QACpB,UAAK,GAAW,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,MAAa,QACT,SAAQ,eAAM;IASd;QACI,KAAK,CAAC,UAAU,CAAC,CAAC;QARL,YAAO,GAAoC,EAAE,CAAC;QAC/C,YAAO,GAAkB,IAAI,aAAa,EAAE,CAAC;QAIrD,aAAQ,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAI3C,mBAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IAED,IAAI;IACJ,CAAC;IAED,UAAU,CAAC,UAAkB;QACzB,IAAI,IAAI,CAAC,MAAM;YACX,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;IAED,eAAe,CAAC,MAAmB;QAC/B,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;IACvC,CAAC;IAED,aAAa,CAAC,MAAmB;QAC7B,QAAQ,MAAM,CAAC,MAAM,EAAE;YACnB,KAAK,eAAM,CAAC,KAAK,CAAC;YAClB,KAAK,eAAM,CAAC,OAAO;gBAC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M,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC7F,OAAO;IACX,CAAC;;AAlCc,wBAAM,GAAW,IAAI,CAAC"}
|
package/core/Scenario.d.ts
CHANGED
package/core/Scenario.js
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,9 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports.Scenario = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* Created by IR on 3/18/17.
|
|
32
|
-
*/
|
|
33
13
|
const Action_Container_1 = require("./Action_Container");
|
|
34
14
|
class Scenario extends Action_Container_1.Action_Container {
|
|
35
15
|
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,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,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Created by IR on 3/18/17.
|
|
3
|
-
*/
|
|
4
|
-
import { CustomException } from "@intuitionrobotics/ts-common";
|
|
1
|
+
import { CustomException } from "@intuitionrobotics/ts-common/core/exceptions";
|
|
5
2
|
export declare class TestException extends CustomException {
|
|
6
3
|
constructor(message: string);
|
|
7
4
|
}
|
package/core/TestException.js
CHANGED
|
@@ -1,28 +1,8 @@
|
|
|
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
|
-
*/
|
|
19
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
3
|
exports.TestException = void 0;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*/
|
|
24
|
-
const ts_common_1 = require("@intuitionrobotics/ts-common");
|
|
25
|
-
class TestException extends ts_common_1.CustomException {
|
|
4
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
5
|
+
class TestException extends exceptions_1.CustomException {
|
|
26
6
|
constructor(message) {
|
|
27
7
|
super(TestException, message);
|
|
28
8
|
}
|
|
@@ -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,6EAA6E;AAG7E,MAAa,aACZ,SAAQ,4BAAe;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/core/logger/types";
|
|
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,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
20
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
21
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,10 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
10
|
};
|
|
28
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
12
|
exports._executeScenario = exports.enableTerminalLogReWrite = exports.__throwException = exports.__scenario = exports.__compareKeys = exports.__custom = exports.__http = exports.__sleep = exports.__log = void 0;
|
|
30
|
-
const
|
|
13
|
+
const types_1 = require("@intuitionrobotics/ts-common/core/logger/types");
|
|
14
|
+
const BeLogged_1 = require("@intuitionrobotics/ts-common/core/logger/BeLogged");
|
|
31
15
|
const index_1 = require("../index");
|
|
32
16
|
const objectHash = require("object-hash");
|
|
33
|
-
function __log(logMessage, level =
|
|
17
|
+
function __log(logMessage, level = types_1.LogLevel.Verbose) {
|
|
34
18
|
// @ts-ignore
|
|
35
19
|
return new index_1.Action_Log(logMessage, level);
|
|
36
20
|
}
|
|
@@ -73,7 +57,7 @@ function __throwException(message) {
|
|
|
73
57
|
}
|
|
74
58
|
exports.__throwException = __throwException;
|
|
75
59
|
function enableTerminalLogReWrite() {
|
|
76
|
-
|
|
60
|
+
BeLogged_1.BeLogged.rewriteConsole = (lineCount => {
|
|
77
61
|
let rewriteCommand = "";
|
|
78
62
|
for (let i = 0; i < lineCount; i++) {
|
|
79
63
|
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":";;;;;;;;;;;;AACA,0EAAwE;AACxE,gFAA2E;AAC3E,oCAUkB;AAGlB,0CAA0C;AAE1C,SAAgB,KAAK,CAAC,UAAkB,EAAE,QAAkB,gBAAQ,CAAC,OAAO;IACxE,aAAa;IACb,OAAO,IAAI,kBAAU,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAHD,sBAGC;AAED,SAAgB,OAAO,CAAC,OAAe;IACnC,aAAa;IACb,OAAO,IAAI,oBAAY,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AAHD,0BAGC;AAED,SAAgB,MAAM,CAAyB,MAAkB;IAC7D,aAAa;IACb,OAAO,IAAI,mBAAW,CAAI,MAAM,CAAC,CAAC;AACtC,CAAC;AAHD,wBAGC;AAED,SAAgB,QAAQ,CAA2C,MAAwD;IACvH,aAAa;IACb,OAAO,IAAI,qBAAa,CAAO,MAAM,CAAC,CAAC;AAC3C,CAAC;AAHD,4BAGC;AAED,SAAgB,aAAa,CAAsB,IAAmB,EAAE,IAAmB;IACvF,OAAO,QAAQ,CAAU,CAAO,MAAqB,EAAE,EAAE;QACrD,IAAI,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,KAAK,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC7D,MAAM,IAAI,qBAAa,CAAC,gCAAgC,IAAI,CAAC,GAAG,UAAU,IAAI,CAAC,GAAG,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C;IAC9B,CAAC,CAAC,CAAC;AAEX,CAAC;AAVD,4CAUC"}
|
package/index.js
CHANGED
|
@@ -1,21 +1,4 @@
|
|
|
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
|
-
*/
|
|
19
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
20
3
|
if (k2 === undefined) k2 = k;
|
|
21
4
|
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":";;;;;;;;;;;;AACA,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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuitionrobotics/testelot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.00",
|
|
4
4
|
"description": "Nu-Art Sir Testelot",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"IR",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"build": "tsc"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@intuitionrobotics/ts-common": "~0.
|
|
32
|
+
"@intuitionrobotics/ts-common": "~0.46.0",
|
|
33
33
|
"node-fetch": "^2.3.0",
|
|
34
34
|
"object-hash": "^1.3.1"
|
|
35
35
|
},
|
package/test-app/AppTester.d.ts
CHANGED
package/test-app/AppTester.js
CHANGED
|
@@ -10,15 +10,16 @@ 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
|
|
13
|
+
const exceptions_1 = require("@intuitionrobotics/ts-common/core/exceptions");
|
|
14
|
+
const module_manager_1 = require("@intuitionrobotics/ts-common/core/module-manager");
|
|
14
15
|
const __1 = require("..");
|
|
15
|
-
class AppTester extends
|
|
16
|
+
class AppTester extends module_manager_1.ModuleManager {
|
|
16
17
|
constructor() {
|
|
17
18
|
super();
|
|
18
19
|
this.reporter = new __1.Reporter();
|
|
19
20
|
this.runTestsImpl = () => __awaiter(this, void 0, void 0, function* () {
|
|
20
21
|
if (!this.scenario)
|
|
21
|
-
throw new
|
|
22
|
+
throw new exceptions_1.ImplementationMissingException("No test specified!!");
|
|
22
23
|
this.prepare();
|
|
23
24
|
this.init();
|
|
24
25
|
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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