@opentap/runner-client 2.0.0-alpha.2.17 → 2.0.0-alpha.2.18
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/lib/DTOs.d.ts +0 -24
- package/lib/DTOs.js +0 -60
- package/lib/SessionClient.d.ts +1 -6
- package/lib/SessionClient.js +0 -13
- package/package.json +1 -1
package/lib/DTOs.d.ts
CHANGED
|
@@ -418,30 +418,6 @@ export declare class PasswordControl extends Setting implements IPasswordControl
|
|
|
418
418
|
export interface IPasswordControl extends ISetting {
|
|
419
419
|
password?: string | undefined;
|
|
420
420
|
}
|
|
421
|
-
export declare class PictureControl extends Setting implements IPictureControl {
|
|
422
|
-
description?: string | undefined;
|
|
423
|
-
mimeType?: string | undefined;
|
|
424
|
-
resource?: Resource | undefined;
|
|
425
|
-
constructor(data?: IPictureControl);
|
|
426
|
-
init(_data?: any): void;
|
|
427
|
-
static fromJS(data: any): PictureControl;
|
|
428
|
-
toJSON(data?: any): any;
|
|
429
|
-
}
|
|
430
|
-
export interface IPictureControl extends ISetting {
|
|
431
|
-
description?: string | undefined;
|
|
432
|
-
mimeType?: string | undefined;
|
|
433
|
-
resource?: Resource | undefined;
|
|
434
|
-
}
|
|
435
|
-
export declare class Resource implements IResource {
|
|
436
|
-
source?: string | undefined;
|
|
437
|
-
constructor(data?: IResource);
|
|
438
|
-
init(_data?: any): void;
|
|
439
|
-
static fromJS(data: any): Resource;
|
|
440
|
-
toJSON(data?: any): any;
|
|
441
|
-
}
|
|
442
|
-
export interface IResource {
|
|
443
|
-
source?: string | undefined;
|
|
444
|
-
}
|
|
445
421
|
export declare class FileDescriptor implements IFileDescriptor {
|
|
446
422
|
numberOfChunks: number;
|
|
447
423
|
fileSize: number;
|
package/lib/DTOs.js
CHANGED
|
@@ -1238,66 +1238,6 @@ var PasswordControl = /** @class */ (function (_super) {
|
|
|
1238
1238
|
return PasswordControl;
|
|
1239
1239
|
}(Setting));
|
|
1240
1240
|
export { PasswordControl };
|
|
1241
|
-
var PictureControl = /** @class */ (function (_super) {
|
|
1242
|
-
__extends(PictureControl, _super);
|
|
1243
|
-
function PictureControl(data) {
|
|
1244
|
-
var _this = _super.call(this, data) || this;
|
|
1245
|
-
_this._discriminator = 'PictureControl';
|
|
1246
|
-
return _this;
|
|
1247
|
-
}
|
|
1248
|
-
PictureControl.prototype.init = function (_data) {
|
|
1249
|
-
_super.prototype.init.call(this, _data);
|
|
1250
|
-
if (_data) {
|
|
1251
|
-
this.description = _data['Description'];
|
|
1252
|
-
this.mimeType = _data['MimeType'];
|
|
1253
|
-
this.resource = _data['Resource'] ? Resource.fromJS(_data['Resource']) : undefined;
|
|
1254
|
-
}
|
|
1255
|
-
};
|
|
1256
|
-
PictureControl.fromJS = function (data) {
|
|
1257
|
-
data = typeof data === 'object' ? data : {};
|
|
1258
|
-
var result = new PictureControl();
|
|
1259
|
-
result.init(data);
|
|
1260
|
-
return result;
|
|
1261
|
-
};
|
|
1262
|
-
PictureControl.prototype.toJSON = function (data) {
|
|
1263
|
-
data = typeof data === 'object' ? data : {};
|
|
1264
|
-
data['Description'] = this.description;
|
|
1265
|
-
data['MimeType'] = this.mimeType;
|
|
1266
|
-
data['Resource'] = this.resource ? this.resource.toJSON() : undefined;
|
|
1267
|
-
_super.prototype.toJSON.call(this, data);
|
|
1268
|
-
return data;
|
|
1269
|
-
};
|
|
1270
|
-
return PictureControl;
|
|
1271
|
-
}(Setting));
|
|
1272
|
-
export { PictureControl };
|
|
1273
|
-
var Resource = /** @class */ (function () {
|
|
1274
|
-
function Resource(data) {
|
|
1275
|
-
if (data) {
|
|
1276
|
-
for (var property in data) {
|
|
1277
|
-
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1278
|
-
this[property] = data[property];
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
Resource.prototype.init = function (_data) {
|
|
1283
|
-
if (_data) {
|
|
1284
|
-
this.source = _data['Source'];
|
|
1285
|
-
}
|
|
1286
|
-
};
|
|
1287
|
-
Resource.fromJS = function (data) {
|
|
1288
|
-
data = typeof data === 'object' ? data : {};
|
|
1289
|
-
var result = new Resource();
|
|
1290
|
-
result.init(data);
|
|
1291
|
-
return result;
|
|
1292
|
-
};
|
|
1293
|
-
Resource.prototype.toJSON = function (data) {
|
|
1294
|
-
data = typeof data === 'object' ? data : {};
|
|
1295
|
-
data['Source'] = this.source;
|
|
1296
|
-
return data;
|
|
1297
|
-
};
|
|
1298
|
-
return Resource;
|
|
1299
|
-
}());
|
|
1300
|
-
export { Resource };
|
|
1301
1241
|
var FileDescriptor = /** @class */ (function () {
|
|
1302
1242
|
function FileDescriptor(fileSize, chunkSize) {
|
|
1303
1243
|
var _a;
|
package/lib/SessionClient.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BreakPoints, CommonContext, CommonSettings, DataGridControl, Image, Interaction, ListItemType, LogList, Parameter, RepositoryPackageDefinition, RepositoryPackageReference,
|
|
1
|
+
import { BreakPoints, CommonContext, CommonSettings, DataGridControl, Image, Interaction, ListItemType, LogList, Parameter, RepositoryPackageDefinition, RepositoryPackageReference, Result, RunStatus, SessionEvent, Setting, TestPlan, TestRun, 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 {
|
|
@@ -86,11 +86,6 @@ export declare class SessionClient extends BaseClient {
|
|
|
86
86
|
* @return Test plan retrieved
|
|
87
87
|
*/
|
|
88
88
|
getTestPlanXML(): Promise<string>;
|
|
89
|
-
/**
|
|
90
|
-
* Retrieve loaded test plan XML
|
|
91
|
-
* @return Test plan retrieved
|
|
92
|
-
*/
|
|
93
|
-
downloadResource(resource: Resource): Promise<Uint8Array>;
|
|
94
89
|
/**
|
|
95
90
|
* Load test plan using a test plan TapPackage from a repository
|
|
96
91
|
* @param {RepositoryPackageDefinition} packageReference
|
package/lib/SessionClient.js
CHANGED
|
@@ -206,19 +206,6 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
206
206
|
SessionClient.prototype.getTestPlanXML = function () {
|
|
207
207
|
return this.requestChunked('GetTestPlanXML').then(this.success()).catch(this.error());
|
|
208
208
|
};
|
|
209
|
-
/**
|
|
210
|
-
* Retrieve loaded test plan XML
|
|
211
|
-
* @return Test plan retrieved
|
|
212
|
-
*/
|
|
213
|
-
SessionClient.prototype.downloadResource = function (resource) {
|
|
214
|
-
var _a;
|
|
215
|
-
var runnerResourcePrefix = 'subject://';
|
|
216
|
-
if (!((_a = resource.source) === null || _a === void 0 ? void 0 : _a.startsWith(runnerResourcePrefix))) {
|
|
217
|
-
return Promise.reject('The source of the provided resource is not a nats subject.');
|
|
218
|
-
}
|
|
219
|
-
var subject = resource.source.replace(runnerResourcePrefix, '');
|
|
220
|
-
return this.requestChunked(subject, undefined, true).then(this.success()).catch(this.error());
|
|
221
|
-
};
|
|
222
209
|
/**
|
|
223
210
|
* Load test plan using a test plan TapPackage from a repository
|
|
224
211
|
* @param {RepositoryPackageDefinition} packageReference
|