@opentap/runner-client 2.38.1 → 2.39.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/dist/cjs/DTOs.d.ts +84 -133
- package/dist/cjs/DTOs.js +257 -442
- package/dist/cjs/SessionClient.d.ts +10 -1
- package/dist/cjs/SessionClient.js +63 -30
- package/dist/mjs/DTOs.d.ts +84 -133
- package/dist/mjs/DTOs.js +169 -346
- package/dist/mjs/SessionClient.d.ts +10 -1
- package/dist/mjs/SessionClient.js +56 -26
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { BreakPoints, CommonContext, CommonSettings, DataGridControl, IMetricsConfiguration, Image, Interaction, ListItemType, LogList, MetricsConfiguration, OnTestPlanRun, OnTestStepRun, Parameter, RepositoryPackageDefinition, RepositoryPackageReference, Resource, Result, RunStatus, SessionEvent, Setting, TestPlan, TestStepType, TestStepValidationError, WatchDog } from './DTOs';
|
|
1
|
+
import { BreakPoints, CommonContext, CommonSettings, DataGridControl, IMetricsConfiguration, Image, Interaction, ListItemType, LogList, MetricsConfiguration, OnTestPlanRun, OnTestStepRun, Parameter, RepositoryPackageDefinition, RepositoryPackageReference, Resource, Result, RunStatus, SessionEvent, SessionEventName, Setting, TestPlan, TestStepType, TestStepValidationError, WatchDog } from './DTOs';
|
|
2
2
|
import { ConnectionOptions, NatsError, Subscription, SubscriptionOptions } from 'nats.ws';
|
|
3
3
|
import { BaseClient } from './BaseClient';
|
|
4
4
|
export declare class SessionClient extends BaseClient {
|
|
5
5
|
private _sessionId;
|
|
6
6
|
private subscriptions;
|
|
7
|
+
private static readonly sessionEventFactories;
|
|
7
8
|
get sessionId(): string | undefined;
|
|
8
9
|
constructor(baseSubject: string, options: ConnectionOptions);
|
|
9
10
|
/**
|
|
@@ -18,6 +19,14 @@ export declare class SessionClient extends BaseClient {
|
|
|
18
19
|
* @returns Subscription object
|
|
19
20
|
*/
|
|
20
21
|
connectSessionLogs(sessionLogsHandler: (logList: LogList | undefined, err: NatsError | Error | null) => void, options?: SubscriptionOptions): Subscription;
|
|
22
|
+
/**
|
|
23
|
+
* Connect to a specific session event
|
|
24
|
+
* @param eventName The name of the session event to connect to
|
|
25
|
+
* @param eventHandler Function to be called when session event or error is received
|
|
26
|
+
* @param options (optional) Subscription options
|
|
27
|
+
* @returns Subscription object
|
|
28
|
+
*/
|
|
29
|
+
connectSessionEvent(eventName: SessionEventName, eventHandler: (sessionEvent: SessionEvent | undefined, err: NatsError | Error | null) => void, options?: SubscriptionOptions): Subscription;
|
|
21
30
|
/**
|
|
22
31
|
* @param eventHandler Function to be called when session event or error is received
|
|
23
32
|
* @param options (optional) Subscription options
|
|
@@ -25,11 +25,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
25
25
|
};
|
|
26
26
|
return __assign.apply(this, arguments);
|
|
27
27
|
};
|
|
28
|
+
var _a;
|
|
28
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
30
|
exports.SessionClient = void 0;
|
|
30
31
|
var DTOs_1 = require("./DTOs");
|
|
31
|
-
var nats_ws_1 = require("nats.ws");
|
|
32
32
|
var BaseClient_1 = require("./BaseClient");
|
|
33
|
+
var encoders_1 = require("./encoders");
|
|
33
34
|
var SessionClient = /** @class */ (function (_super) {
|
|
34
35
|
__extends(SessionClient, _super);
|
|
35
36
|
function SessionClient(baseSubject, options) {
|
|
@@ -69,8 +70,7 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
69
70
|
return;
|
|
70
71
|
}
|
|
71
72
|
try {
|
|
72
|
-
var
|
|
73
|
-
var logListJson = jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
|
|
73
|
+
var logListJson = encoders_1.jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
|
|
74
74
|
var logList = DTOs_1.LogList.fromJS(logListJson);
|
|
75
75
|
sessionLogsHandler(logList, error);
|
|
76
76
|
}
|
|
@@ -79,29 +79,49 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
79
79
|
}
|
|
80
80
|
} }));
|
|
81
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Connect to a specific session event
|
|
84
|
+
* @param eventName The name of the session event to connect to
|
|
85
|
+
* @param eventHandler Function to be called when session event or error is received
|
|
86
|
+
* @param options (optional) Subscription options
|
|
87
|
+
* @returns Subscription object
|
|
88
|
+
*/
|
|
89
|
+
SessionClient.prototype.connectSessionEvent = function (eventName, eventHandler, options) {
|
|
90
|
+
var _this = this;
|
|
91
|
+
var factory = SessionClient.sessionEventFactories[eventName];
|
|
92
|
+
return this.subscribe("Events.".concat(eventName), __assign(__assign({}, options), { callback: function (error, encodedMessage) {
|
|
93
|
+
var _a;
|
|
94
|
+
if (error) {
|
|
95
|
+
eventHandler(undefined, error);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
try {
|
|
99
|
+
if (((_a = encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
100
|
+
var payload = encoders_1.jsonCodec.decode(encodedMessage.data);
|
|
101
|
+
var sessionEvent = factory(payload);
|
|
102
|
+
sessionEvent.sessionId = _this._sessionId;
|
|
103
|
+
eventHandler(sessionEvent, null);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
catch (err) {
|
|
107
|
+
eventHandler(undefined, err);
|
|
108
|
+
}
|
|
109
|
+
} }));
|
|
110
|
+
};
|
|
82
111
|
/**
|
|
83
112
|
* @param eventHandler Function to be called when session event or error is received
|
|
84
113
|
* @param options (optional) Subscription options
|
|
85
114
|
* @returns Subscription object
|
|
86
115
|
*/
|
|
87
116
|
SessionClient.prototype.connectSessionEvents = function (eventHandler, options) {
|
|
88
|
-
var
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
var sessionEvent = DTOs_1.SessionEvent.fromJS(sessionEventJs);
|
|
97
|
-
eventHandler(sessionEvent, error);
|
|
98
|
-
}
|
|
99
|
-
catch (error) {
|
|
100
|
-
eventHandler(undefined, error);
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
this.subscriptions.push(this.subscribe('Events', __assign(__assign({}, options), { callback: callback })));
|
|
104
|
-
this.subscriptions.push(this.subscribe('Events.*', __assign(__assign({}, options), { callback: callback })));
|
|
117
|
+
var _this = this;
|
|
118
|
+
this.unsubscribeSessionEvents();
|
|
119
|
+
this.subscriptions = [];
|
|
120
|
+
// Subscribe to all session events using the new connectSessionEvent method
|
|
121
|
+
Object.keys(SessionClient.sessionEventFactories).forEach(function (eventName) {
|
|
122
|
+
var subscription = _this.connectSessionEvent(eventName, eventHandler, options);
|
|
123
|
+
_this.subscriptions.push(subscription);
|
|
124
|
+
});
|
|
105
125
|
};
|
|
106
126
|
/**
|
|
107
127
|
* Connect to listen to the TestPlanRun events for the given test plan run ID.
|
|
@@ -118,8 +138,7 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
118
138
|
return;
|
|
119
139
|
}
|
|
120
140
|
try {
|
|
121
|
-
var
|
|
122
|
-
var onTestPlanRunJs = jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
|
|
141
|
+
var onTestPlanRunJs = encoders_1.jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
|
|
123
142
|
var onTestPlanRun = DTOs_1.OnTestPlanRun.fromJS(onTestPlanRunJs);
|
|
124
143
|
var planRunId = (_a = encodedMessage.subject.match(/\.PlanRun\.(.+)$/)) === null || _a === void 0 ? void 0 : _a[1];
|
|
125
144
|
handler(planRunId, onTestPlanRun, error);
|
|
@@ -150,8 +169,7 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
150
169
|
return;
|
|
151
170
|
}
|
|
152
171
|
try {
|
|
153
|
-
var
|
|
154
|
-
var logListJson = jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
|
|
172
|
+
var logListJson = encoders_1.jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
|
|
155
173
|
var logList = DTOs_1.LogList.fromJS(logListJson);
|
|
156
174
|
handler(logList, error);
|
|
157
175
|
}
|
|
@@ -176,8 +194,7 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
176
194
|
return;
|
|
177
195
|
}
|
|
178
196
|
try {
|
|
179
|
-
var
|
|
180
|
-
var onTestStepRunJs = jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
|
|
197
|
+
var onTestStepRunJs = encoders_1.jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
|
|
181
198
|
var onTestStepRun = DTOs_1.OnTestStepRun.fromJS(onTestStepRunJs);
|
|
182
199
|
var _b = (_a = encodedMessage.subject.match(/\.PlanRun\.(.+)\.StepRun\.(.+)$/)) !== null && _a !== void 0 ? _a : [
|
|
183
200
|
undefined,
|
|
@@ -214,8 +231,7 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
214
231
|
return;
|
|
215
232
|
}
|
|
216
233
|
try {
|
|
217
|
-
var
|
|
218
|
-
var resultJs = jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
|
|
234
|
+
var resultJs = encoders_1.jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
|
|
219
235
|
var result = DTOs_1.Result.fromJS(resultJs);
|
|
220
236
|
handler(result, error);
|
|
221
237
|
}
|
|
@@ -228,8 +244,8 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
228
244
|
* Unsubscibe from session events
|
|
229
245
|
*/
|
|
230
246
|
SessionClient.prototype.unsubscribeSessionEvents = function () {
|
|
231
|
-
|
|
232
|
-
|
|
247
|
+
this.subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
248
|
+
this.subscriptions = [];
|
|
233
249
|
};
|
|
234
250
|
/**
|
|
235
251
|
* Retrieve session logs
|
|
@@ -716,6 +732,23 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
716
732
|
SessionClient.prototype.setMetricsConfiguration = function (metricsRequest) {
|
|
717
733
|
return this.request('SetMetricsConfiguration', metricsRequest).then(this.success()).catch(this.error());
|
|
718
734
|
};
|
|
735
|
+
SessionClient.sessionEventFactories = (_a = {},
|
|
736
|
+
_a[DTOs_1.SessionEventName.TypeCacheInvalidated] = function () { return DTOs_1.TypeCacheInvalidatedEvent.fromJS(); },
|
|
737
|
+
_a[DTOs_1.SessionEventName.TestPlanSettingsChanged] = function () { return DTOs_1.TestPlanSettingsChangedEvent.fromJS(); },
|
|
738
|
+
_a[DTOs_1.SessionEventName.SessionTimeout] = function () { return DTOs_1.SessionTimeoutEvent.fromJS(); },
|
|
739
|
+
_a[DTOs_1.SessionEventName.Starting] = function () { return DTOs_1.StartingEvent.fromJS(); },
|
|
740
|
+
_a[DTOs_1.SessionEventName.Started] = function () { return DTOs_1.StartedEvent.fromJS(); },
|
|
741
|
+
_a[DTOs_1.SessionEventName.Heartbeat] = function (payload) { return DTOs_1.HeartbeatEvent.fromJS(payload); },
|
|
742
|
+
_a[DTOs_1.SessionEventName.Stopping] = function () { return DTOs_1.StoppingEvent.fromJS(); },
|
|
743
|
+
_a[DTOs_1.SessionEventName.Stopped] = function () { return DTOs_1.StoppedEvent.fromJS(); },
|
|
744
|
+
_a[DTOs_1.SessionEventName.TestPlanChanged] = function () { return DTOs_1.TestPlanChangedEvent.fromJS(); },
|
|
745
|
+
_a[DTOs_1.SessionEventName.SessionStateChanged] = function (payload) { return DTOs_1.SessionStateChangedEvent.fromJS(payload); },
|
|
746
|
+
_a[DTOs_1.SessionEventName.SettingsChanged] = function (payload) { return DTOs_1.SettingsChangedEvent.fromJS(payload); },
|
|
747
|
+
_a[DTOs_1.SessionEventName.TestStepChanged] = function (payload) { return DTOs_1.TestStepChangedEvent.fromJS(payload); },
|
|
748
|
+
_a[DTOs_1.SessionEventName.Break] = function (payload) { return DTOs_1.BreakEvent.fromJS(payload); },
|
|
749
|
+
_a[DTOs_1.SessionEventName.UserInputRequested] = function (payload) { return DTOs_1.UserInputRequestedEvent.fromJS(payload); },
|
|
750
|
+
_a[DTOs_1.SessionEventName.UserInputRequestCompleted] = function (payload) { return DTOs_1.UserInputRequestCompletedEvent.fromJS(payload); },
|
|
751
|
+
_a);
|
|
719
752
|
return SessionClient;
|
|
720
753
|
}(BaseClient_1.BaseClient));
|
|
721
754
|
exports.SessionClient = SessionClient;
|
package/dist/mjs/DTOs.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export declare class Session implements ISession {
|
|
|
70
70
|
subject?: string | undefined;
|
|
71
71
|
id?: string | undefined;
|
|
72
72
|
imageId?: string | undefined;
|
|
73
|
-
|
|
73
|
+
sessionState?: SessionState;
|
|
74
74
|
testPlanRunId?: string | undefined;
|
|
75
75
|
startedBy?: string | undefined;
|
|
76
76
|
metadata?: {
|
|
@@ -85,7 +85,7 @@ export interface ISession {
|
|
|
85
85
|
subject?: string | undefined;
|
|
86
86
|
id?: string | undefined;
|
|
87
87
|
imageId?: string | undefined;
|
|
88
|
-
|
|
88
|
+
sessionState?: SessionState;
|
|
89
89
|
testPlanRunId?: string | undefined;
|
|
90
90
|
startedBy?: string | undefined;
|
|
91
91
|
metadata?: {
|
|
@@ -809,7 +809,7 @@ export declare class RunStatus implements IRunStatus {
|
|
|
809
809
|
verdict?: Verdict;
|
|
810
810
|
testPlanRunId?: string | undefined;
|
|
811
811
|
failedToStart?: boolean;
|
|
812
|
-
|
|
812
|
+
sessionState?: SessionState;
|
|
813
813
|
executingSteps?: string[] | undefined;
|
|
814
814
|
constructor(data?: IRunStatus);
|
|
815
815
|
init(_data?: any): void;
|
|
@@ -821,7 +821,7 @@ export interface IRunStatus {
|
|
|
821
821
|
verdict?: Verdict;
|
|
822
822
|
testPlanRunId?: string | undefined;
|
|
823
823
|
failedToStart?: boolean;
|
|
824
|
-
|
|
824
|
+
sessionState?: SessionState;
|
|
825
825
|
executingSteps?: string[] | undefined;
|
|
826
826
|
}
|
|
827
827
|
/** Enumeration containing the verdict types used for Verdict and Verdict properties. */
|
|
@@ -833,12 +833,13 @@ export declare enum Verdict {
|
|
|
833
833
|
Aborted = "Aborted",
|
|
834
834
|
Error = "Error"
|
|
835
835
|
}
|
|
836
|
-
export declare enum
|
|
836
|
+
export declare enum SessionState {
|
|
837
837
|
Idle = "Idle",
|
|
838
838
|
Executing = "Executing",
|
|
839
839
|
Breaking = "Breaking",
|
|
840
840
|
Aborting = "Aborting",
|
|
841
|
-
WaitingForUserInput = "WaitingForUserInput"
|
|
841
|
+
WaitingForUserInput = "WaitingForUserInput",
|
|
842
|
+
Loading = "Loading"
|
|
842
843
|
}
|
|
843
844
|
export declare class TestPlan implements ITestPlan {
|
|
844
845
|
childTestSteps?: TestStep[] | undefined;
|
|
@@ -1153,168 +1154,118 @@ export interface IMetricValue {
|
|
|
1153
1154
|
time: number;
|
|
1154
1155
|
value: boolean | number | string | object;
|
|
1155
1156
|
}
|
|
1156
|
-
export declare
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
export interface ISessionEvent {
|
|
1166
|
-
eventType?: SessionEventType;
|
|
1167
|
-
sessionId?: string;
|
|
1168
|
-
}
|
|
1169
|
-
export declare enum SessionEventType {
|
|
1170
|
-
SessionStarting = "SessionStarting",
|
|
1171
|
-
SessionStarted = "SessionStarted",
|
|
1172
|
-
SessionStopping = "SessionStopping",
|
|
1173
|
-
SessionStopped = "SessionStopped",
|
|
1157
|
+
export declare enum SessionEventName {
|
|
1158
|
+
TypeCacheInvalidated = "TypeCacheInvalidated",
|
|
1159
|
+
TestPlanSettingsChanged = "TestPlanSettingsChanged",
|
|
1160
|
+
SessionTimeout = "SessionTimeout",
|
|
1161
|
+
Starting = "Starting",
|
|
1162
|
+
Started = "Started",
|
|
1163
|
+
Heartbeat = "Heartbeat",
|
|
1164
|
+
Stopping = "Stopping",
|
|
1165
|
+
Stopped = "Stopped",
|
|
1174
1166
|
TestPlanChanged = "TestPlanChanged",
|
|
1175
|
-
|
|
1167
|
+
SessionStateChanged = "SessionStateChanged",
|
|
1176
1168
|
SettingsChanged = "SettingsChanged",
|
|
1177
1169
|
TestStepChanged = "TestStepChanged",
|
|
1178
|
-
|
|
1170
|
+
Break = "Break",
|
|
1179
1171
|
UserInputRequested = "UserInputRequested",
|
|
1180
|
-
|
|
1181
|
-
SessionTimeoutHit = "SessionTimeoutHit",
|
|
1182
|
-
TestPlanSettingsChanged = "TestPlanSettingsChanged",
|
|
1183
|
-
TypeCacheInvalidated = "TypeCacheInvalidated",
|
|
1184
|
-
Heartbeat = "Heartbeat",
|
|
1185
|
-
MetricsConfigurationChanged = "MetricsConfigurationChanged"
|
|
1172
|
+
UserInputRequestCompleted = "UserInputRequestCompleted"
|
|
1186
1173
|
}
|
|
1187
|
-
export declare class
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
toJSON(data?: any): any;
|
|
1174
|
+
export declare abstract class SessionEvent {
|
|
1175
|
+
readonly eventName: SessionEventName;
|
|
1176
|
+
sessionId?: string;
|
|
1177
|
+
protected constructor(eventName: SessionEventName);
|
|
1192
1178
|
}
|
|
1193
|
-
export declare
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
init(_data?: any): void;
|
|
1197
|
-
static fromJS(data: any): StartingEventArgs;
|
|
1198
|
-
toJSON(data?: any): any;
|
|
1179
|
+
export declare class TypeCacheInvalidatedEvent extends SessionEvent {
|
|
1180
|
+
constructor();
|
|
1181
|
+
static fromJS(): TypeCacheInvalidatedEvent;
|
|
1199
1182
|
}
|
|
1200
|
-
export declare
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
init(_data?: any): void;
|
|
1204
|
-
static fromJS(data: any): StartedEventArgs;
|
|
1205
|
-
toJSON(data?: any): any;
|
|
1183
|
+
export declare class TestPlanSettingsChangedEvent extends SessionEvent {
|
|
1184
|
+
constructor();
|
|
1185
|
+
static fromJS(): TestPlanSettingsChangedEvent;
|
|
1206
1186
|
}
|
|
1207
|
-
export declare
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
init(_data?: any): void;
|
|
1211
|
-
static fromJS(data: any): StoppingEventArgs;
|
|
1212
|
-
toJSON(data?: any): any;
|
|
1187
|
+
export declare class SessionTimeoutEvent extends SessionEvent {
|
|
1188
|
+
constructor();
|
|
1189
|
+
static fromJS(): SessionTimeoutEvent;
|
|
1213
1190
|
}
|
|
1214
|
-
export declare
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
init(_data?: any): void;
|
|
1218
|
-
static fromJS(data: any): StoppedEventArgs;
|
|
1219
|
-
toJSON(data?: any): any;
|
|
1191
|
+
export declare class StartingEvent extends SessionEvent {
|
|
1192
|
+
constructor();
|
|
1193
|
+
static fromJS(): StartingEvent;
|
|
1220
1194
|
}
|
|
1221
|
-
export declare
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
init(_data?: any): void;
|
|
1225
|
-
static fromJS(data: any): TestPlanChangeEventArgs;
|
|
1226
|
-
toJSON(data?: any): any;
|
|
1195
|
+
export declare class StartedEvent extends SessionEvent {
|
|
1196
|
+
constructor();
|
|
1197
|
+
static fromJS(): StartedEvent;
|
|
1227
1198
|
}
|
|
1228
|
-
export declare
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
constructor(data?: ITestPlanExecutionStateChangedEventArgs);
|
|
1232
|
-
init(_data?: any): void;
|
|
1233
|
-
static fromJS(data: any): TestPlanExecutionStateChangedEventArgs;
|
|
1234
|
-
toJSON(data?: any): any;
|
|
1199
|
+
export declare class StoppingEvent extends SessionEvent {
|
|
1200
|
+
constructor();
|
|
1201
|
+
static fromJS(): StoppingEvent;
|
|
1235
1202
|
}
|
|
1236
|
-
export
|
|
1237
|
-
|
|
1203
|
+
export declare class StoppedEvent extends SessionEvent {
|
|
1204
|
+
constructor();
|
|
1205
|
+
static fromJS(): StoppedEvent;
|
|
1238
1206
|
}
|
|
1239
|
-
export declare class
|
|
1240
|
-
constructor(
|
|
1241
|
-
|
|
1242
|
-
static fromJS(data: any): SettingsChangedEventArgs;
|
|
1243
|
-
toJSON(data?: any): any;
|
|
1207
|
+
export declare class TestPlanChangedEvent extends SessionEvent {
|
|
1208
|
+
constructor();
|
|
1209
|
+
static fromJS(): TestPlanChangedEvent;
|
|
1244
1210
|
}
|
|
1245
|
-
export declare
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1211
|
+
export declare class SessionStateChangedEvent extends SessionEvent {
|
|
1212
|
+
runStatus?: RunStatus | undefined;
|
|
1213
|
+
constructor(data?: {
|
|
1214
|
+
runStatus?: RunStatus;
|
|
1215
|
+
});
|
|
1249
1216
|
init(_data?: any): void;
|
|
1250
|
-
static fromJS(data: any):
|
|
1217
|
+
static fromJS(data: any): SessionStateChangedEvent;
|
|
1251
1218
|
toJSON(data?: any): any;
|
|
1252
1219
|
}
|
|
1253
|
-
export
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
constructor(data?:
|
|
1220
|
+
export declare class HeartbeatEvent extends SessionEvent {
|
|
1221
|
+
timestamp?: number;
|
|
1222
|
+
watchDog?: WatchDog | undefined;
|
|
1223
|
+
state?: SessionState;
|
|
1224
|
+
testPlanRunId?: string | undefined;
|
|
1225
|
+
constructor(data?: Partial<HeartbeatEvent>);
|
|
1259
1226
|
init(_data?: any): void;
|
|
1260
|
-
static fromJS(data: any):
|
|
1227
|
+
static fromJS(data: any): HeartbeatEvent;
|
|
1261
1228
|
toJSON(data?: any): any;
|
|
1262
1229
|
}
|
|
1263
|
-
export
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
requestId?: string;
|
|
1268
|
-
constructor(data?: IUserInputRequestEventArgs);
|
|
1230
|
+
export declare class SettingsChangedEvent extends SessionEvent {
|
|
1231
|
+
group?: string | undefined;
|
|
1232
|
+
name?: string | undefined;
|
|
1233
|
+
constructor(data?: Partial<SettingsChangedEvent>);
|
|
1269
1234
|
init(_data?: any): void;
|
|
1270
|
-
static fromJS(data: any):
|
|
1235
|
+
static fromJS(data: any): SettingsChangedEvent;
|
|
1271
1236
|
toJSON(data?: any): any;
|
|
1272
1237
|
}
|
|
1273
|
-
export
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
export declare class UserInputRequestCompletedEventArgs extends SessionEvent implements IUserInputRequestCompletedEventArgs {
|
|
1277
|
-
requestId?: string;
|
|
1278
|
-
answered?: boolean;
|
|
1279
|
-
timeout?: boolean;
|
|
1280
|
-
constructor(data?: IUserInputRequestCompletedEventArgs);
|
|
1238
|
+
export declare class TestStepChangedEvent extends SessionEvent {
|
|
1239
|
+
stepId?: string | undefined;
|
|
1240
|
+
constructor(data?: Partial<TestStepChangedEvent>);
|
|
1281
1241
|
init(_data?: any): void;
|
|
1282
|
-
static fromJS(data: any):
|
|
1242
|
+
static fromJS(data: any): TestStepChangedEvent;
|
|
1283
1243
|
toJSON(data?: any): any;
|
|
1284
1244
|
}
|
|
1285
|
-
export
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
timeout?: boolean;
|
|
1289
|
-
}
|
|
1290
|
-
export declare class TestPlanSettingsChangedEventArgs extends SessionEvent implements ITestPlanSettingsChangedEventArgs {
|
|
1291
|
-
constructor(data?: ITestPlanSettingsChangedEventArgs);
|
|
1245
|
+
export declare class BreakEvent extends SessionEvent {
|
|
1246
|
+
stepId?: string | undefined;
|
|
1247
|
+
constructor(data?: Partial<BreakEvent>);
|
|
1292
1248
|
init(_data?: any): void;
|
|
1293
|
-
static fromJS(data: any):
|
|
1249
|
+
static fromJS(data: any): BreakEvent;
|
|
1294
1250
|
toJSON(data?: any): any;
|
|
1295
1251
|
}
|
|
1296
|
-
export declare
|
|
1297
|
-
|
|
1298
|
-
constructor(data?:
|
|
1252
|
+
export declare class UserInputRequestedEvent extends SessionEvent {
|
|
1253
|
+
requestId?: string | undefined;
|
|
1254
|
+
constructor(data?: Partial<UserInputRequestedEvent>);
|
|
1299
1255
|
init(_data?: any): void;
|
|
1300
|
-
static fromJS(data: any):
|
|
1256
|
+
static fromJS(data: any): UserInputRequestedEvent;
|
|
1301
1257
|
toJSON(data?: any): any;
|
|
1302
1258
|
}
|
|
1303
|
-
export
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
}
|
|
1309
|
-
export declare class MetricsConfigurationChangedEventArgs extends SessionEvent implements IMetricsConfigurationChangedEventArgs {
|
|
1310
|
-
constructor(data?: IMetricsConfigurationChangedEventArgs);
|
|
1259
|
+
export declare class UserInputRequestCompletedEvent extends SessionEvent {
|
|
1260
|
+
requestId?: string | undefined;
|
|
1261
|
+
answered?: boolean;
|
|
1262
|
+
timeout?: boolean;
|
|
1263
|
+
constructor(data?: Partial<UserInputRequestCompletedEvent>);
|
|
1311
1264
|
init(_data?: any): void;
|
|
1312
|
-
static fromJS(data: any):
|
|
1265
|
+
static fromJS(data: any): UserInputRequestCompletedEvent;
|
|
1313
1266
|
toJSON(data?: any): any;
|
|
1314
1267
|
}
|
|
1315
|
-
export
|
|
1316
|
-
metricsConfiguration?: IMetricsConfiguration;
|
|
1317
|
-
}
|
|
1268
|
+
export declare type ISessionEvent = SessionEvent;
|
|
1318
1269
|
export interface IOnTestPlanRun {
|
|
1319
1270
|
status?: string;
|
|
1320
1271
|
userId?: string;
|