@opentap/runner-client 2.5.0-alpha.1.5 → 2.5.0-alpha.1.7
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 +46 -0
- package/lib/DTOs.js +109 -0
- package/package.json +1 -1
package/lib/DTOs.d.ts
CHANGED
|
@@ -1168,3 +1168,49 @@ export declare class TestPlanSettingsChangedEventArgs extends SessionEvent imple
|
|
|
1168
1168
|
toJSON(data?: any): any;
|
|
1169
1169
|
}
|
|
1170
1170
|
export declare type ITestPlanSettingsChangedEventArgs = ISessionEvent;
|
|
1171
|
+
export interface ITestPlanRunEvent {
|
|
1172
|
+
testPlanRunId?: number;
|
|
1173
|
+
testPlanRunGuid?: string;
|
|
1174
|
+
path?: string;
|
|
1175
|
+
name?: string;
|
|
1176
|
+
verdict?: string;
|
|
1177
|
+
startTime?: string;
|
|
1178
|
+
runner?: string;
|
|
1179
|
+
status?: string;
|
|
1180
|
+
isCampaign?: boolean;
|
|
1181
|
+
operator?: string;
|
|
1182
|
+
}
|
|
1183
|
+
export declare class TestPlanRunEvent implements ITestPlanRunEvent {
|
|
1184
|
+
testPlanRunId?: number;
|
|
1185
|
+
testPlanRunGuid?: string;
|
|
1186
|
+
path?: string;
|
|
1187
|
+
name?: string;
|
|
1188
|
+
verdict?: string;
|
|
1189
|
+
startTime?: string;
|
|
1190
|
+
runner?: string;
|
|
1191
|
+
status?: string;
|
|
1192
|
+
isCampaign?: boolean;
|
|
1193
|
+
operator?: string;
|
|
1194
|
+
protected _discriminator: string;
|
|
1195
|
+
constructor(data?: ITestPlanRunEvent);
|
|
1196
|
+
init(_data?: any): void;
|
|
1197
|
+
static fromJS(data: any): TestPlanRunEvent;
|
|
1198
|
+
toJSON(data?: any): any;
|
|
1199
|
+
}
|
|
1200
|
+
export declare type ITestPlanRunStartEventArgs = ITestPlanRunEvent;
|
|
1201
|
+
export declare class TestPlanRunStartEventArgs extends TestPlanRunEvent implements ITestPlanRunStartEventArgs {
|
|
1202
|
+
constructor(data?: ITestPlanRunStartEventArgs);
|
|
1203
|
+
init(_data?: any): void;
|
|
1204
|
+
static fromJS(data: any): TestPlanRunStartEventArgs;
|
|
1205
|
+
toJSON(data?: any): any;
|
|
1206
|
+
}
|
|
1207
|
+
export interface ITestPlanRunCompletedEventArgs extends ITestPlanRunEvent {
|
|
1208
|
+
durationInSeconds?: number;
|
|
1209
|
+
}
|
|
1210
|
+
export declare class TestPlanRunCompletedEventArgs extends TestPlanRunEvent implements ITestPlanRunCompletedEventArgs {
|
|
1211
|
+
durationInSeconds?: number;
|
|
1212
|
+
constructor(data?: ITestPlanRunCompletedEventArgs);
|
|
1213
|
+
init(_data?: any): void;
|
|
1214
|
+
static fromJS(data: any): TestPlanRunCompletedEventArgs;
|
|
1215
|
+
toJSON(data?: any): any;
|
|
1216
|
+
}
|
package/lib/DTOs.js
CHANGED
|
@@ -3392,3 +3392,112 @@ var TestPlanSettingsChangedEventArgs = /** @class */ (function (_super) {
|
|
|
3392
3392
|
return TestPlanSettingsChangedEventArgs;
|
|
3393
3393
|
}(SessionEvent));
|
|
3394
3394
|
export { TestPlanSettingsChangedEventArgs };
|
|
3395
|
+
var TestPlanRunEvent = /** @class */ (function () {
|
|
3396
|
+
function TestPlanRunEvent(data) {
|
|
3397
|
+
if (data) {
|
|
3398
|
+
for (var property in data) {
|
|
3399
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
3400
|
+
this[property] = data[property];
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3403
|
+
this._discriminator = 'TestPlanRunEvent';
|
|
3404
|
+
}
|
|
3405
|
+
TestPlanRunEvent.prototype.init = function (_data) {
|
|
3406
|
+
if (_data) {
|
|
3407
|
+
this.testPlanRunId = _data['Run/TestPlanRunId'];
|
|
3408
|
+
this.testPlanRunGuid = _data['Run/TestPlanRunGuid'];
|
|
3409
|
+
this.path = _data['Run/Path'];
|
|
3410
|
+
this.name = _data['Run/Name'];
|
|
3411
|
+
this.verdict = _data['Run/Verdict'];
|
|
3412
|
+
this.startTime = _data['Run/StartTime'];
|
|
3413
|
+
this.runner = _data['Run/Runner'];
|
|
3414
|
+
this.status = _data['Run/Status'];
|
|
3415
|
+
this.isCampaign = _data['Run/IsCampaign'];
|
|
3416
|
+
this.operator = _data['Run/Operator'];
|
|
3417
|
+
}
|
|
3418
|
+
};
|
|
3419
|
+
TestPlanRunEvent.fromJS = function (data) {
|
|
3420
|
+
data = typeof data === 'object' ? data : {};
|
|
3421
|
+
if (data['discriminator'] === 'TestPlanRunStartEventArgs') {
|
|
3422
|
+
var result_39 = new TestPlanRunStartEventArgs();
|
|
3423
|
+
result_39.init(data);
|
|
3424
|
+
return result_39;
|
|
3425
|
+
}
|
|
3426
|
+
if (data['discriminator'] === 'TestPlanRunCompletedEventArgs') {
|
|
3427
|
+
var result_40 = new TestPlanRunCompletedEventArgs();
|
|
3428
|
+
result_40.init(data);
|
|
3429
|
+
return result_40;
|
|
3430
|
+
}
|
|
3431
|
+
var result = new TestPlanRunEvent();
|
|
3432
|
+
result.init(data);
|
|
3433
|
+
return result;
|
|
3434
|
+
};
|
|
3435
|
+
TestPlanRunEvent.prototype.toJSON = function (data) {
|
|
3436
|
+
data = typeof data === 'object' ? data : {};
|
|
3437
|
+
data['Run/TestPlanRunId'] = this.testPlanRunId;
|
|
3438
|
+
data['Run/TestPlanRunGuid'] = this.testPlanRunGuid;
|
|
3439
|
+
data['Run/Path'] = this.path;
|
|
3440
|
+
data['Run/Name'] = this.name;
|
|
3441
|
+
data['Run/Verdict'] = this.verdict;
|
|
3442
|
+
data['Run/StartTime'] = this.startTime;
|
|
3443
|
+
data['Run/Runner'] = this.runner;
|
|
3444
|
+
data['Run/Status'] = this.status;
|
|
3445
|
+
data['Run/IsCampaign'] = this.isCampaign;
|
|
3446
|
+
data['Run/Operator'] = this.operator;
|
|
3447
|
+
return data;
|
|
3448
|
+
};
|
|
3449
|
+
return TestPlanRunEvent;
|
|
3450
|
+
}());
|
|
3451
|
+
export { TestPlanRunEvent };
|
|
3452
|
+
var TestPlanRunStartEventArgs = /** @class */ (function (_super) {
|
|
3453
|
+
__extends(TestPlanRunStartEventArgs, _super);
|
|
3454
|
+
function TestPlanRunStartEventArgs(data) {
|
|
3455
|
+
var _this = _super.call(this, data) || this;
|
|
3456
|
+
_this._discriminator = 'TestPlanRunStartEventArgs';
|
|
3457
|
+
return _this;
|
|
3458
|
+
}
|
|
3459
|
+
TestPlanRunStartEventArgs.prototype.init = function (_data) {
|
|
3460
|
+
_super.prototype.init.call(this, _data);
|
|
3461
|
+
};
|
|
3462
|
+
TestPlanRunStartEventArgs.fromJS = function (data) {
|
|
3463
|
+
data = typeof data === 'object' ? data : {};
|
|
3464
|
+
var result = new TestPlanRunStartEventArgs();
|
|
3465
|
+
result.init(data);
|
|
3466
|
+
return result;
|
|
3467
|
+
};
|
|
3468
|
+
TestPlanRunStartEventArgs.prototype.toJSON = function (data) {
|
|
3469
|
+
data = typeof data === 'object' ? data : {};
|
|
3470
|
+
_super.prototype.toJSON.call(this, data);
|
|
3471
|
+
return data;
|
|
3472
|
+
};
|
|
3473
|
+
return TestPlanRunStartEventArgs;
|
|
3474
|
+
}(TestPlanRunEvent));
|
|
3475
|
+
export { TestPlanRunStartEventArgs };
|
|
3476
|
+
var TestPlanRunCompletedEventArgs = /** @class */ (function (_super) {
|
|
3477
|
+
__extends(TestPlanRunCompletedEventArgs, _super);
|
|
3478
|
+
function TestPlanRunCompletedEventArgs(data) {
|
|
3479
|
+
var _this = _super.call(this, data) || this;
|
|
3480
|
+
_this._discriminator = 'TestPlanRunCompletedEventArgs';
|
|
3481
|
+
return _this;
|
|
3482
|
+
}
|
|
3483
|
+
TestPlanRunCompletedEventArgs.prototype.init = function (_data) {
|
|
3484
|
+
_super.prototype.init.call(this, _data);
|
|
3485
|
+
if (_data) {
|
|
3486
|
+
this.durationInSeconds = _data['Run/DurationInSeconds'];
|
|
3487
|
+
}
|
|
3488
|
+
};
|
|
3489
|
+
TestPlanRunCompletedEventArgs.fromJS = function (data) {
|
|
3490
|
+
data = typeof data === 'object' ? data : {};
|
|
3491
|
+
var result = new TestPlanRunCompletedEventArgs();
|
|
3492
|
+
result.init(data);
|
|
3493
|
+
return result;
|
|
3494
|
+
};
|
|
3495
|
+
TestPlanRunCompletedEventArgs.prototype.toJSON = function (data) {
|
|
3496
|
+
data = typeof data === 'object' ? data : {};
|
|
3497
|
+
data['Run/DurationInSeconds'] = this.durationInSeconds;
|
|
3498
|
+
_super.prototype.toJSON.call(this, data);
|
|
3499
|
+
return data;
|
|
3500
|
+
};
|
|
3501
|
+
return TestPlanRunCompletedEventArgs;
|
|
3502
|
+
}(TestPlanRunEvent));
|
|
3503
|
+
export { TestPlanRunCompletedEventArgs };
|