@opentap/runner-client 2.41.0-alpha.1.2.19163408636 → 3.0.0-alpha.1.2.20062684846
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 +24 -21
- package/dist/cjs/DTOs.js +65 -56
- package/dist/cjs/SessionClient.d.ts +8 -51
- package/dist/cjs/SessionClient.js +12 -81
- package/dist/mjs/DTOs.d.ts +24 -21
- package/dist/mjs/DTOs.js +57 -49
- package/dist/mjs/SessionClient.d.ts +8 -51
- package/dist/mjs/SessionClient.js +13 -82
- package/package.json +1 -1
package/dist/cjs/DTOs.d.ts
CHANGED
|
@@ -569,6 +569,7 @@ export declare class RepositoryPackageReference implements IRepositoryPackageRef
|
|
|
569
569
|
version?: string | undefined;
|
|
570
570
|
repository?: string | undefined;
|
|
571
571
|
path?: string | undefined;
|
|
572
|
+
pathId?: string | undefined;
|
|
572
573
|
constructor(data?: IRepositoryPackageReference);
|
|
573
574
|
init(_data?: any): void;
|
|
574
575
|
static fromJS(data: any): RepositoryPackageReference;
|
|
@@ -579,6 +580,7 @@ export interface IRepositoryPackageReference {
|
|
|
579
580
|
version?: string | undefined;
|
|
580
581
|
repository?: string | undefined;
|
|
581
582
|
path?: string | undefined;
|
|
583
|
+
pathId?: string | undefined;
|
|
582
584
|
}
|
|
583
585
|
export declare class RepositoryPackageDefinition extends RepositoryPackageReference implements IRepositoryPackageDefinition {
|
|
584
586
|
tags?: string[] | undefined;
|
|
@@ -597,6 +599,26 @@ export declare class RepositorySettingsPackageDefinition extends RepositoryPacka
|
|
|
597
599
|
toJSON(data?: any): any;
|
|
598
600
|
}
|
|
599
601
|
export declare type IRepositorySettingsPackageDefinition = IRepositoryPackageDefinition;
|
|
602
|
+
export declare class GetTestPlanReferenceResponse implements IGetTestPlanReferenceResponse {
|
|
603
|
+
testPlanReference?: RepositoryPackageReference | undefined;
|
|
604
|
+
constructor(data?: IGetTestPlanReferenceResponse);
|
|
605
|
+
init(_data?: any): void;
|
|
606
|
+
static fromJS(data: any): GetTestPlanReferenceResponse;
|
|
607
|
+
toJSON(data?: any): any;
|
|
608
|
+
}
|
|
609
|
+
export interface IGetTestPlanReferenceResponse {
|
|
610
|
+
testPlanReference?: RepositoryPackageReference | undefined;
|
|
611
|
+
}
|
|
612
|
+
export declare class SaveTestPlanToRepositoryResponse implements ISaveTestPlanToRepositoryResponse {
|
|
613
|
+
testPlanReference?: RepositoryPackageReference | undefined;
|
|
614
|
+
constructor(data?: ISaveTestPlanToRepositoryResponse);
|
|
615
|
+
init(_data?: any): void;
|
|
616
|
+
static fromJS(data: any): SaveTestPlanToRepositoryResponse;
|
|
617
|
+
toJSON(data?: any): any;
|
|
618
|
+
}
|
|
619
|
+
export interface ISaveTestPlanToRepositoryResponse {
|
|
620
|
+
testPlanReference?: RepositoryPackageReference | undefined;
|
|
621
|
+
}
|
|
600
622
|
export declare class SettingsTapPackage implements ISettingsTapPackage {
|
|
601
623
|
name?: string | undefined;
|
|
602
624
|
version?: string | undefined;
|
|
@@ -824,20 +846,6 @@ export interface IRunStatus {
|
|
|
824
846
|
sessionState?: SessionState;
|
|
825
847
|
executingSteps?: string[] | undefined;
|
|
826
848
|
}
|
|
827
|
-
export declare class EditStatus implements IEditStatus {
|
|
828
|
-
undoBufferSize?: number;
|
|
829
|
-
redoBufferSize?: number;
|
|
830
|
-
testPlanDirty?: boolean;
|
|
831
|
-
constructor(data?: IEditStatus);
|
|
832
|
-
init(_data?: any): void;
|
|
833
|
-
static fromJS(data: any): EditStatus;
|
|
834
|
-
toJSON(data?: any): any;
|
|
835
|
-
}
|
|
836
|
-
export interface IEditStatus {
|
|
837
|
-
undoBufferSize?: number;
|
|
838
|
-
redoBufferSize?: number;
|
|
839
|
-
testPlanDirty?: boolean;
|
|
840
|
-
}
|
|
841
849
|
/** Enumeration containing the verdict types used for Verdict and Verdict properties. */
|
|
842
850
|
export declare enum Verdict {
|
|
843
851
|
NotSet = "NotSet",
|
|
@@ -1219,13 +1227,8 @@ export declare class StoppedEvent extends SessionEvent {
|
|
|
1219
1227
|
static fromJS(): StoppedEvent;
|
|
1220
1228
|
}
|
|
1221
1229
|
export declare class TestPlanChangedEvent extends SessionEvent {
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
editStatus?: EditStatus;
|
|
1225
|
-
});
|
|
1226
|
-
init(_data: any): void;
|
|
1227
|
-
static fromJS(data: any): TestPlanChangedEvent;
|
|
1228
|
-
toJSON(data?: any): any;
|
|
1230
|
+
constructor();
|
|
1231
|
+
static fromJS(): TestPlanChangedEvent;
|
|
1229
1232
|
}
|
|
1230
1233
|
export declare class SessionStateChangedEvent extends SessionEvent {
|
|
1231
1234
|
runStatus?: RunStatus | undefined;
|
package/dist/cjs/DTOs.js
CHANGED
|
@@ -15,9 +15,9 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.RunnerStatus = exports.StreamInfoStatus = exports.RemoteConnection = exports.SaveDefaultSettings = exports.AssetUpdatedEvent = exports.MetadataUpdatedEvent = exports.RunnerDeletedEvent = exports.RunnerUpdatedEvent = exports.RunnerRegisteredEvent = exports.RunnerEvent = exports.TestPlanRunCompletedEvent = exports.TestPlanRunStartEvent = exports.TestPlanRunEvent = exports.OnTestStepRun = exports.OnTestPlanRun = exports.UserInputRequestCompletedEvent = exports.UserInputRequestedEvent = exports.BreakEvent = exports.TestStepChangedEvent = exports.SettingsChangedEvent = exports.HeartbeatEvent = exports.SessionStateChangedEvent = exports.TestPlanChangedEvent = void 0;
|
|
18
|
+
exports.SettingsTapPackage = exports.SaveTestPlanToRepositoryResponse = exports.GetTestPlanReferenceResponse = exports.RepositorySettingsPackageDefinition = exports.RepositoryPackageDefinition = exports.RepositoryPackageReference = exports.ProfileGroup = exports.ListItemType = exports.ComponentSettings = exports.FileDescriptor = exports.Resource = exports.PluginTypeSelectorControl = exports.PictureControl = exports.PasswordControl = exports.MultiSelectControl = exports.DropdownControl = exports.EnabledControl = exports.DirectoryPathControl = exports.FilePathControl = exports.ComboBoxControl = exports.TextBoxControl = exports.DataGridControl = exports.DataGridReferenceControl = exports.CheckBoxControl = exports.AvailableValue = exports.ButtonsControl = exports.ButtonControl = exports.ExternalParameter = exports.MetaData = exports.DisplayAttribute = exports.VisualStatus = exports.UnitAttribute = exports.Icon = exports.ColumnDisplayName = exports.LayoutMode = exports.Layout = exports.Setting = exports.ComponentSettingsListItem = exports.AnnotatedObject = exports.ComponentSettingsList = exports.DisplayMode = exports.ComponentSettingsIdentifier = exports.ComponentSettingsBase = exports.Links = exports.Session = exports.ImageResolveErrorResponse = exports.NoResponderError = exports.ErrorResponse = exports.PackageSpecifier = exports.Image = void 0;
|
|
19
|
+
exports.StoppingEvent = exports.StartedEvent = exports.StartingEvent = exports.SessionTimeoutEvent = exports.TestPlanSettingsChangedEvent = exports.TypeCacheInvalidatedEvent = exports.SessionEvent = exports.SessionEventName = exports.MetricValue = exports.MetricsConfiguration = exports.SessionMetricInfo = exports.MetricsPollRate = exports.SessionMetricType = exports.SessionMetricKind = exports.ResultColumn = exports.Result = exports.LogEvent = exports.TestStepRun = exports.WatchDog = exports.Parameter = exports.BreakPoints = exports.InstalledFile = exports.Interaction = exports.CommonContext = exports.CommonSettings = exports.ValidationError = exports.TestStepValidationError = exports.TestStepCopy = exports.TestStepType = exports.TestStep = exports.TestPlan = exports.SessionState = exports.Verdict = exports.RunStatus = exports.MissingLicenseResponse = exports.LogEntry = exports.LogList = exports.ApiException = exports.ImageCreationFailed = exports.ImageCreated = exports.ImageCreating = exports.ImageEventArgs = exports.SessionInactivityLimitHit = exports.SessionShutdownFailed = exports.SessionShutdown = exports.SessionShutdownInitiated = exports.SessionStartFailed = exports.SessionStarted = exports.SessionStartInitiated = exports.SessionEventArgs = void 0;
|
|
20
|
+
exports.RunnerStatus = exports.StreamInfoStatus = exports.RemoteConnection = exports.SaveDefaultSettings = exports.AssetUpdatedEvent = exports.MetadataUpdatedEvent = exports.RunnerDeletedEvent = exports.RunnerUpdatedEvent = exports.RunnerRegisteredEvent = exports.RunnerEvent = exports.TestPlanRunCompletedEvent = exports.TestPlanRunStartEvent = exports.TestPlanRunEvent = exports.OnTestStepRun = exports.OnTestPlanRun = exports.UserInputRequestCompletedEvent = exports.UserInputRequestedEvent = exports.BreakEvent = exports.TestStepChangedEvent = exports.SettingsChangedEvent = exports.HeartbeatEvent = exports.SessionStateChangedEvent = exports.TestPlanChangedEvent = exports.StoppedEvent = void 0;
|
|
21
21
|
var Image = /** @class */ (function () {
|
|
22
22
|
function Image(data) {
|
|
23
23
|
this.packages = [];
|
|
@@ -1625,6 +1625,7 @@ var RepositoryPackageReference = /** @class */ (function () {
|
|
|
1625
1625
|
this.version = _data['Version'];
|
|
1626
1626
|
this.repository = _data['Repository'];
|
|
1627
1627
|
this.path = _data['Path'];
|
|
1628
|
+
this.pathId = _data['PathId'];
|
|
1628
1629
|
}
|
|
1629
1630
|
};
|
|
1630
1631
|
RepositoryPackageReference.fromJS = function (data) {
|
|
@@ -1639,6 +1640,7 @@ var RepositoryPackageReference = /** @class */ (function () {
|
|
|
1639
1640
|
data['Version'] = this.version;
|
|
1640
1641
|
data['Repository'] = this.repository;
|
|
1641
1642
|
data['Path'] = this.path;
|
|
1643
|
+
data['PathId'] = this.pathId;
|
|
1642
1644
|
return data;
|
|
1643
1645
|
};
|
|
1644
1646
|
return RepositoryPackageReference;
|
|
@@ -1704,6 +1706,62 @@ var RepositorySettingsPackageDefinition = /** @class */ (function (_super) {
|
|
|
1704
1706
|
return RepositorySettingsPackageDefinition;
|
|
1705
1707
|
}(RepositoryPackageDefinition));
|
|
1706
1708
|
exports.RepositorySettingsPackageDefinition = RepositorySettingsPackageDefinition;
|
|
1709
|
+
var GetTestPlanReferenceResponse = /** @class */ (function () {
|
|
1710
|
+
function GetTestPlanReferenceResponse(data) {
|
|
1711
|
+
if (data) {
|
|
1712
|
+
for (var property in data) {
|
|
1713
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1714
|
+
this[property] = data[property];
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
GetTestPlanReferenceResponse.prototype.init = function (_data) {
|
|
1719
|
+
if (_data) {
|
|
1720
|
+
this.testPlanReference = _data['TestPlanReference'] ? RepositoryPackageReference.fromJS(_data['TestPlanReference']) : undefined;
|
|
1721
|
+
}
|
|
1722
|
+
};
|
|
1723
|
+
GetTestPlanReferenceResponse.fromJS = function (data) {
|
|
1724
|
+
data = typeof data === 'object' ? data : {};
|
|
1725
|
+
var result = new GetTestPlanReferenceResponse();
|
|
1726
|
+
result.init(data);
|
|
1727
|
+
return result;
|
|
1728
|
+
};
|
|
1729
|
+
GetTestPlanReferenceResponse.prototype.toJSON = function (data) {
|
|
1730
|
+
data = typeof data === 'object' ? data : {};
|
|
1731
|
+
data['TestPlanReference'] = this.testPlanReference ? this.testPlanReference.toJSON() : undefined;
|
|
1732
|
+
return data;
|
|
1733
|
+
};
|
|
1734
|
+
return GetTestPlanReferenceResponse;
|
|
1735
|
+
}());
|
|
1736
|
+
exports.GetTestPlanReferenceResponse = GetTestPlanReferenceResponse;
|
|
1737
|
+
var SaveTestPlanToRepositoryResponse = /** @class */ (function () {
|
|
1738
|
+
function SaveTestPlanToRepositoryResponse(data) {
|
|
1739
|
+
if (data) {
|
|
1740
|
+
for (var property in data) {
|
|
1741
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1742
|
+
this[property] = data[property];
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
SaveTestPlanToRepositoryResponse.prototype.init = function (_data) {
|
|
1747
|
+
if (_data) {
|
|
1748
|
+
this.testPlanReference = _data['TestPlanReference'] ? RepositoryPackageReference.fromJS(_data['TestPlanReference']) : undefined;
|
|
1749
|
+
}
|
|
1750
|
+
};
|
|
1751
|
+
SaveTestPlanToRepositoryResponse.fromJS = function (data) {
|
|
1752
|
+
data = typeof data === 'object' ? data : {};
|
|
1753
|
+
var result = new SaveTestPlanToRepositoryResponse();
|
|
1754
|
+
result.init(data);
|
|
1755
|
+
return result;
|
|
1756
|
+
};
|
|
1757
|
+
SaveTestPlanToRepositoryResponse.prototype.toJSON = function (data) {
|
|
1758
|
+
data = typeof data === 'object' ? data : {};
|
|
1759
|
+
data['TestPlanReference'] = this.testPlanReference ? this.testPlanReference.toJSON() : undefined;
|
|
1760
|
+
return data;
|
|
1761
|
+
};
|
|
1762
|
+
return SaveTestPlanToRepositoryResponse;
|
|
1763
|
+
}());
|
|
1764
|
+
exports.SaveTestPlanToRepositoryResponse = SaveTestPlanToRepositoryResponse;
|
|
1707
1765
|
var SettingsTapPackage = /** @class */ (function () {
|
|
1708
1766
|
function SettingsTapPackage(data) {
|
|
1709
1767
|
if (data) {
|
|
@@ -2333,39 +2391,6 @@ var RunStatus = /** @class */ (function () {
|
|
|
2333
2391
|
return RunStatus;
|
|
2334
2392
|
}());
|
|
2335
2393
|
exports.RunStatus = RunStatus;
|
|
2336
|
-
var EditStatus = /** @class */ (function () {
|
|
2337
|
-
function EditStatus(data) {
|
|
2338
|
-
if (data) {
|
|
2339
|
-
for (var property in data) {
|
|
2340
|
-
if (Object.prototype.hasOwnProperty.call(data, property)) {
|
|
2341
|
-
this[property] = data[property];
|
|
2342
|
-
}
|
|
2343
|
-
}
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
EditStatus.prototype.init = function (_data) {
|
|
2347
|
-
if (_data) {
|
|
2348
|
-
this.undoBufferSize = _data['UndoBufferSize'];
|
|
2349
|
-
this.redoBufferSize = _data['RedoBufferSize'];
|
|
2350
|
-
this.testPlanDirty = _data['TestPlanDirty'];
|
|
2351
|
-
}
|
|
2352
|
-
};
|
|
2353
|
-
EditStatus.fromJS = function (data) {
|
|
2354
|
-
data = typeof data === 'object' ? data : {};
|
|
2355
|
-
var result = new EditStatus();
|
|
2356
|
-
result.init(data);
|
|
2357
|
-
return result;
|
|
2358
|
-
};
|
|
2359
|
-
EditStatus.prototype.toJSON = function (data) {
|
|
2360
|
-
data = typeof data === 'object' ? data : {};
|
|
2361
|
-
data['UndoBufferSize'] = this.undoBufferSize;
|
|
2362
|
-
data['RedoBufferSize'] = this.redoBufferSize;
|
|
2363
|
-
data['TestPlanDirty'] = this.testPlanDirty;
|
|
2364
|
-
return data;
|
|
2365
|
-
};
|
|
2366
|
-
return EditStatus;
|
|
2367
|
-
}());
|
|
2368
|
-
exports.EditStatus = EditStatus;
|
|
2369
2394
|
/** Enumeration containing the verdict types used for Verdict and Verdict properties. */
|
|
2370
2395
|
var Verdict;
|
|
2371
2396
|
(function (Verdict) {
|
|
@@ -3355,27 +3380,11 @@ var StoppedEvent = /** @class */ (function (_super) {
|
|
|
3355
3380
|
exports.StoppedEvent = StoppedEvent;
|
|
3356
3381
|
var TestPlanChangedEvent = /** @class */ (function (_super) {
|
|
3357
3382
|
__extends(TestPlanChangedEvent, _super);
|
|
3358
|
-
function TestPlanChangedEvent(
|
|
3359
|
-
|
|
3360
|
-
if (data === null || data === void 0 ? void 0 : data.editStatus) {
|
|
3361
|
-
_this.editStatus = data.editStatus;
|
|
3362
|
-
}
|
|
3363
|
-
return _this;
|
|
3383
|
+
function TestPlanChangedEvent() {
|
|
3384
|
+
return _super.call(this, SessionEventName.TestPlanChanged) || this;
|
|
3364
3385
|
}
|
|
3365
|
-
TestPlanChangedEvent.
|
|
3366
|
-
|
|
3367
|
-
var payload = data['EditStatus'];
|
|
3368
|
-
this.editStatus = payload ? EditStatus.fromJS(payload) : undefined;
|
|
3369
|
-
};
|
|
3370
|
-
TestPlanChangedEvent.fromJS = function (data) {
|
|
3371
|
-
var result = new TestPlanChangedEvent();
|
|
3372
|
-
result.init(data);
|
|
3373
|
-
return result;
|
|
3374
|
-
};
|
|
3375
|
-
TestPlanChangedEvent.prototype.toJSON = function (data) {
|
|
3376
|
-
var json = ensureObject(data);
|
|
3377
|
-
json['EditStatus'] = this.editStatus ? this.editStatus.toJSON() : undefined;
|
|
3378
|
-
return json;
|
|
3386
|
+
TestPlanChangedEvent.fromJS = function () {
|
|
3387
|
+
return new TestPlanChangedEvent();
|
|
3379
3388
|
};
|
|
3380
3389
|
return TestPlanChangedEvent;
|
|
3381
3390
|
}(SessionEvent));
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
1
|
+
import { BreakPoints, CommonContext, CommonSettings, DataGridControl, GetTestPlanReferenceResponse, IMetricsConfiguration, Image, Interaction, ListItemType, LogList, MetricsConfiguration, OnTestPlanRun, OnTestStepRun, Parameter, RepositoryPackageDefinition, RepositoryPackageReference, Resource, Result, RunStatus, SaveTestPlanToRepositoryResponse, 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 {
|
|
@@ -115,11 +115,6 @@ export declare class SessionClient extends BaseClient {
|
|
|
115
115
|
* @return RunStatus retrieved
|
|
116
116
|
*/
|
|
117
117
|
getStatus(timeout: number | null | undefined): Promise<RunStatus>;
|
|
118
|
-
/**
|
|
119
|
-
* Get edit status that contains undo/redo buffer count and testplan dirty status
|
|
120
|
-
* @returns EditStatus retrieved
|
|
121
|
-
*/
|
|
122
|
-
getEditStatus(): Promise<EditStatus>;
|
|
123
118
|
/**
|
|
124
119
|
* Upload test plan XML
|
|
125
120
|
* @param xml Test Plan XML
|
|
@@ -136,49 +131,6 @@ export declare class SessionClient extends BaseClient {
|
|
|
136
131
|
* @return Raw bytes representing the resource
|
|
137
132
|
*/
|
|
138
133
|
downloadResource(resource: Resource): Promise<Uint8Array>;
|
|
139
|
-
/**
|
|
140
|
-
* Moves the test steps as children of target step
|
|
141
|
-
* @param TargetStepId target test step id
|
|
142
|
-
* @param StepIds test steps ids to move
|
|
143
|
-
*/
|
|
144
|
-
moveStepsAsChildren(targetStepId: string, StepIds: string[]): void;
|
|
145
|
-
/**
|
|
146
|
-
* Moves the test steps as sibling of target step
|
|
147
|
-
* @param TargetStepId target test step id
|
|
148
|
-
* @param StepIds test steps ids to move
|
|
149
|
-
*/
|
|
150
|
-
moveSteps(targetStepId: string, StepIds: string[]): void;
|
|
151
|
-
/**
|
|
152
|
-
* Copy test steps
|
|
153
|
-
* @param stepIds test step ids to copy
|
|
154
|
-
* @return copied steps
|
|
155
|
-
*/
|
|
156
|
-
copySteps(StepIds: string[]): Promise<string>;
|
|
157
|
-
/**
|
|
158
|
-
* Paste copied test steps as sibling of target step
|
|
159
|
-
* @param TargetStepId target test step id
|
|
160
|
-
* @param Clipboard test steps copied to clipboard
|
|
161
|
-
*/
|
|
162
|
-
pasteStepsAsChildren(targetStepId: string, Clipboard: string): void;
|
|
163
|
-
/**
|
|
164
|
-
* Paste copied test steps as sibling of target step
|
|
165
|
-
* @param TargetStepId target test step id
|
|
166
|
-
* @param Clipboard test steps copied to clipboard
|
|
167
|
-
*/
|
|
168
|
-
pasteSteps(targetStepId: string, Clipboard: string): void;
|
|
169
|
-
/**
|
|
170
|
-
* Delete test steps
|
|
171
|
-
* @param stepIds test step ids to delete
|
|
172
|
-
*/
|
|
173
|
-
deleteSteps(StepIds: string[]): void;
|
|
174
|
-
/**
|
|
175
|
-
* Undo
|
|
176
|
-
*/
|
|
177
|
-
testPlanUndo(): void;
|
|
178
|
-
/**
|
|
179
|
-
* Redo
|
|
180
|
-
*/
|
|
181
|
-
testPlanRedo(): void;
|
|
182
134
|
/**
|
|
183
135
|
* Load test plan using a test plan TapPackage from a repository
|
|
184
136
|
* @param {RepositoryPackageDefinition} packageReference
|
|
@@ -188,9 +140,9 @@ export declare class SessionClient extends BaseClient {
|
|
|
188
140
|
/**
|
|
189
141
|
* Save currently loaded test plan to a repository
|
|
190
142
|
* @param {RepositoryPackageDefinition} packageReference
|
|
191
|
-
* @return Test plan uploaded.
|
|
143
|
+
* @return Test plan uploaded with reference.
|
|
192
144
|
*/
|
|
193
|
-
saveTestPlanToRepository(packageReference: RepositoryPackageDefinition): Promise<
|
|
145
|
+
saveTestPlanToRepository(packageReference: RepositoryPackageDefinition): Promise<SaveTestPlanToRepositoryResponse>;
|
|
194
146
|
/**
|
|
195
147
|
* Test plan resources opened
|
|
196
148
|
* @return Test plan resources opened.
|
|
@@ -232,6 +184,11 @@ export declare class SessionClient extends BaseClient {
|
|
|
232
184
|
* @return {Promise<void>}
|
|
233
185
|
*/
|
|
234
186
|
setTestPlanName(testPlanName: string): Promise<void>;
|
|
187
|
+
/**
|
|
188
|
+
* Gets the loaded test plan repository reference.
|
|
189
|
+
* @return {Promise<GetTestPlanReferenceResponse>}
|
|
190
|
+
*/
|
|
191
|
+
getTestPlanReference(): Promise<GetTestPlanReferenceResponse>;
|
|
235
192
|
/**
|
|
236
193
|
* Retrieve all validation errors present in the test plan
|
|
237
194
|
* @return Retrieved validation errors for loaded TestPlan
|
|
@@ -31,7 +31,6 @@ exports.SessionClient = void 0;
|
|
|
31
31
|
var DTOs_1 = require("./DTOs");
|
|
32
32
|
var BaseClient_1 = require("./BaseClient");
|
|
33
33
|
var encoders_1 = require("./encoders");
|
|
34
|
-
var uuid_1 = require("uuid");
|
|
35
34
|
var SessionClient = /** @class */ (function (_super) {
|
|
36
35
|
__extends(SessionClient, _super);
|
|
37
36
|
function SessionClient(baseSubject, options) {
|
|
@@ -319,16 +318,6 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
319
318
|
.then(this.success())
|
|
320
319
|
.catch(this.error());
|
|
321
320
|
};
|
|
322
|
-
/**
|
|
323
|
-
* Get edit status that contains undo/redo buffer count and testplan dirty status
|
|
324
|
-
* @returns EditStatus retrieved
|
|
325
|
-
*/
|
|
326
|
-
SessionClient.prototype.getEditStatus = function () {
|
|
327
|
-
return this.request('GetEditStatus')
|
|
328
|
-
.then(function (editStatusJs) { return DTOs_1.EditStatus.fromJS(editStatusJs); })
|
|
329
|
-
.then(this.success())
|
|
330
|
-
.catch(this.error());
|
|
331
|
-
};
|
|
332
321
|
/**
|
|
333
322
|
* Upload test plan XML
|
|
334
323
|
* @param xml Test Plan XML
|
|
@@ -360,73 +349,6 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
360
349
|
.then(this.success())
|
|
361
350
|
.catch(this.error());
|
|
362
351
|
};
|
|
363
|
-
/**
|
|
364
|
-
* Moves the test steps as children of target step
|
|
365
|
-
* @param TargetStepId target test step id
|
|
366
|
-
* @param StepIds test steps ids to move
|
|
367
|
-
*/
|
|
368
|
-
SessionClient.prototype.moveStepsAsChildren = function (targetStepId, StepIds) {
|
|
369
|
-
// need to send GUID.EMPTY if target step id is empty, so that runner can parse correctly
|
|
370
|
-
var TargetStepId = targetStepId ? targetStepId : uuid_1.NIL;
|
|
371
|
-
this.request('MoveStepsAsChildren', { StepIds: StepIds, TargetStepId: TargetStepId }).then(this.success()).catch(this.error());
|
|
372
|
-
};
|
|
373
|
-
/**
|
|
374
|
-
* Moves the test steps as sibling of target step
|
|
375
|
-
* @param TargetStepId target test step id
|
|
376
|
-
* @param StepIds test steps ids to move
|
|
377
|
-
*/
|
|
378
|
-
SessionClient.prototype.moveSteps = function (targetStepId, StepIds) {
|
|
379
|
-
// need to send GUID.EMPTY if target step id is empty, so that runner can parse correctly
|
|
380
|
-
var TargetStepId = targetStepId ? targetStepId : uuid_1.NIL;
|
|
381
|
-
this.request('MoveSteps', { StepIds: StepIds, TargetStepId: TargetStepId }).then(this.success()).catch(this.error());
|
|
382
|
-
};
|
|
383
|
-
/**
|
|
384
|
-
* Copy test steps
|
|
385
|
-
* @param stepIds test step ids to copy
|
|
386
|
-
* @return copied steps
|
|
387
|
-
*/
|
|
388
|
-
SessionClient.prototype.copySteps = function (StepIds) {
|
|
389
|
-
return this.request('CopySteps', { StepIds: StepIds }).then(this.success()).catch(this.error());
|
|
390
|
-
};
|
|
391
|
-
/**
|
|
392
|
-
* Paste copied test steps as sibling of target step
|
|
393
|
-
* @param TargetStepId target test step id
|
|
394
|
-
* @param Clipboard test steps copied to clipboard
|
|
395
|
-
*/
|
|
396
|
-
SessionClient.prototype.pasteStepsAsChildren = function (targetStepId, Clipboard) {
|
|
397
|
-
// need to send GUID.EMPTY if target step id is empty, so that runner can parse correctly
|
|
398
|
-
var TargetStepId = targetStepId ? targetStepId : uuid_1.NIL;
|
|
399
|
-
this.request('PasteStepsAsChildren', { TargetStepId: TargetStepId, Clipboard: Clipboard }).then(this.success()).catch(this.error());
|
|
400
|
-
};
|
|
401
|
-
/**
|
|
402
|
-
* Paste copied test steps as sibling of target step
|
|
403
|
-
* @param TargetStepId target test step id
|
|
404
|
-
* @param Clipboard test steps copied to clipboard
|
|
405
|
-
*/
|
|
406
|
-
SessionClient.prototype.pasteSteps = function (targetStepId, Clipboard) {
|
|
407
|
-
// need to send GUID.EMPTY if target step id is empty, so that runner can parse correctly
|
|
408
|
-
var TargetStepId = targetStepId ? targetStepId : uuid_1.NIL;
|
|
409
|
-
this.request('PasteSteps', { TargetStepId: TargetStepId, Clipboard: Clipboard }).then(this.success()).catch(this.error());
|
|
410
|
-
};
|
|
411
|
-
/**
|
|
412
|
-
* Delete test steps
|
|
413
|
-
* @param stepIds test step ids to delete
|
|
414
|
-
*/
|
|
415
|
-
SessionClient.prototype.deleteSteps = function (StepIds) {
|
|
416
|
-
this.request('DeleteSteps', { StepIds: StepIds }).then(this.success()).catch(this.error());
|
|
417
|
-
};
|
|
418
|
-
/**
|
|
419
|
-
* Undo
|
|
420
|
-
*/
|
|
421
|
-
SessionClient.prototype.testPlanUndo = function () {
|
|
422
|
-
this.request('TestPlanUndo').then(this.success()).catch(this.error());
|
|
423
|
-
};
|
|
424
|
-
/**
|
|
425
|
-
* Redo
|
|
426
|
-
*/
|
|
427
|
-
SessionClient.prototype.testPlanRedo = function () {
|
|
428
|
-
this.request('TestPlanRedo').then(this.success()).catch(this.error());
|
|
429
|
-
};
|
|
430
352
|
/**
|
|
431
353
|
* Load test plan using a test plan TapPackage from a repository
|
|
432
354
|
* @param {RepositoryPackageDefinition} packageReference
|
|
@@ -438,10 +360,12 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
438
360
|
/**
|
|
439
361
|
* Save currently loaded test plan to a repository
|
|
440
362
|
* @param {RepositoryPackageDefinition} packageReference
|
|
441
|
-
* @return Test plan uploaded.
|
|
363
|
+
* @return Test plan uploaded with reference.
|
|
442
364
|
*/
|
|
443
365
|
SessionClient.prototype.saveTestPlanToRepository = function (packageReference) {
|
|
444
|
-
return this.request('SaveTestPlanToRepository', packageReference)
|
|
366
|
+
return this.request('SaveTestPlanToRepository', packageReference)
|
|
367
|
+
.then(this.success())
|
|
368
|
+
.catch(this.error());
|
|
445
369
|
};
|
|
446
370
|
/**
|
|
447
371
|
* Test plan resources opened
|
|
@@ -517,6 +441,13 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
517
441
|
SessionClient.prototype.setTestPlanName = function (testPlanName) {
|
|
518
442
|
return this.request('SetTestPlanName', testPlanName).then(this.success()).catch(this.error());
|
|
519
443
|
};
|
|
444
|
+
/**
|
|
445
|
+
* Gets the loaded test plan repository reference.
|
|
446
|
+
* @return {Promise<GetTestPlanReferenceResponse>}
|
|
447
|
+
*/
|
|
448
|
+
SessionClient.prototype.getTestPlanReference = function () {
|
|
449
|
+
return this.request('GetTestPlanReference').then(this.success()).catch(this.error());
|
|
450
|
+
};
|
|
520
451
|
/**
|
|
521
452
|
* Retrieve all validation errors present in the test plan
|
|
522
453
|
* @return Retrieved validation errors for loaded TestPlan
|
|
@@ -826,7 +757,7 @@ var SessionClient = /** @class */ (function (_super) {
|
|
|
826
757
|
_a[DTOs_1.SessionEventName.Heartbeat] = function (payload) { return DTOs_1.HeartbeatEvent.fromJS(payload); },
|
|
827
758
|
_a[DTOs_1.SessionEventName.Stopping] = function () { return DTOs_1.StoppingEvent.fromJS(); },
|
|
828
759
|
_a[DTOs_1.SessionEventName.Stopped] = function () { return DTOs_1.StoppedEvent.fromJS(); },
|
|
829
|
-
_a[DTOs_1.SessionEventName.TestPlanChanged] = function (
|
|
760
|
+
_a[DTOs_1.SessionEventName.TestPlanChanged] = function () { return DTOs_1.TestPlanChangedEvent.fromJS(); },
|
|
830
761
|
_a[DTOs_1.SessionEventName.SessionStateChanged] = function (payload) { return DTOs_1.SessionStateChangedEvent.fromJS(payload); },
|
|
831
762
|
_a[DTOs_1.SessionEventName.SettingsChanged] = function (payload) { return DTOs_1.SettingsChangedEvent.fromJS(payload); },
|
|
832
763
|
_a[DTOs_1.SessionEventName.TestStepChanged] = function (payload) { return DTOs_1.TestStepChangedEvent.fromJS(payload); },
|
package/dist/mjs/DTOs.d.ts
CHANGED
|
@@ -569,6 +569,7 @@ export declare class RepositoryPackageReference implements IRepositoryPackageRef
|
|
|
569
569
|
version?: string | undefined;
|
|
570
570
|
repository?: string | undefined;
|
|
571
571
|
path?: string | undefined;
|
|
572
|
+
pathId?: string | undefined;
|
|
572
573
|
constructor(data?: IRepositoryPackageReference);
|
|
573
574
|
init(_data?: any): void;
|
|
574
575
|
static fromJS(data: any): RepositoryPackageReference;
|
|
@@ -579,6 +580,7 @@ export interface IRepositoryPackageReference {
|
|
|
579
580
|
version?: string | undefined;
|
|
580
581
|
repository?: string | undefined;
|
|
581
582
|
path?: string | undefined;
|
|
583
|
+
pathId?: string | undefined;
|
|
582
584
|
}
|
|
583
585
|
export declare class RepositoryPackageDefinition extends RepositoryPackageReference implements IRepositoryPackageDefinition {
|
|
584
586
|
tags?: string[] | undefined;
|
|
@@ -597,6 +599,26 @@ export declare class RepositorySettingsPackageDefinition extends RepositoryPacka
|
|
|
597
599
|
toJSON(data?: any): any;
|
|
598
600
|
}
|
|
599
601
|
export declare type IRepositorySettingsPackageDefinition = IRepositoryPackageDefinition;
|
|
602
|
+
export declare class GetTestPlanReferenceResponse implements IGetTestPlanReferenceResponse {
|
|
603
|
+
testPlanReference?: RepositoryPackageReference | undefined;
|
|
604
|
+
constructor(data?: IGetTestPlanReferenceResponse);
|
|
605
|
+
init(_data?: any): void;
|
|
606
|
+
static fromJS(data: any): GetTestPlanReferenceResponse;
|
|
607
|
+
toJSON(data?: any): any;
|
|
608
|
+
}
|
|
609
|
+
export interface IGetTestPlanReferenceResponse {
|
|
610
|
+
testPlanReference?: RepositoryPackageReference | undefined;
|
|
611
|
+
}
|
|
612
|
+
export declare class SaveTestPlanToRepositoryResponse implements ISaveTestPlanToRepositoryResponse {
|
|
613
|
+
testPlanReference?: RepositoryPackageReference | undefined;
|
|
614
|
+
constructor(data?: ISaveTestPlanToRepositoryResponse);
|
|
615
|
+
init(_data?: any): void;
|
|
616
|
+
static fromJS(data: any): SaveTestPlanToRepositoryResponse;
|
|
617
|
+
toJSON(data?: any): any;
|
|
618
|
+
}
|
|
619
|
+
export interface ISaveTestPlanToRepositoryResponse {
|
|
620
|
+
testPlanReference?: RepositoryPackageReference | undefined;
|
|
621
|
+
}
|
|
600
622
|
export declare class SettingsTapPackage implements ISettingsTapPackage {
|
|
601
623
|
name?: string | undefined;
|
|
602
624
|
version?: string | undefined;
|
|
@@ -824,20 +846,6 @@ export interface IRunStatus {
|
|
|
824
846
|
sessionState?: SessionState;
|
|
825
847
|
executingSteps?: string[] | undefined;
|
|
826
848
|
}
|
|
827
|
-
export declare class EditStatus implements IEditStatus {
|
|
828
|
-
undoBufferSize?: number;
|
|
829
|
-
redoBufferSize?: number;
|
|
830
|
-
testPlanDirty?: boolean;
|
|
831
|
-
constructor(data?: IEditStatus);
|
|
832
|
-
init(_data?: any): void;
|
|
833
|
-
static fromJS(data: any): EditStatus;
|
|
834
|
-
toJSON(data?: any): any;
|
|
835
|
-
}
|
|
836
|
-
export interface IEditStatus {
|
|
837
|
-
undoBufferSize?: number;
|
|
838
|
-
redoBufferSize?: number;
|
|
839
|
-
testPlanDirty?: boolean;
|
|
840
|
-
}
|
|
841
849
|
/** Enumeration containing the verdict types used for Verdict and Verdict properties. */
|
|
842
850
|
export declare enum Verdict {
|
|
843
851
|
NotSet = "NotSet",
|
|
@@ -1219,13 +1227,8 @@ export declare class StoppedEvent extends SessionEvent {
|
|
|
1219
1227
|
static fromJS(): StoppedEvent;
|
|
1220
1228
|
}
|
|
1221
1229
|
export declare class TestPlanChangedEvent extends SessionEvent {
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
editStatus?: EditStatus;
|
|
1225
|
-
});
|
|
1226
|
-
init(_data: any): void;
|
|
1227
|
-
static fromJS(data: any): TestPlanChangedEvent;
|
|
1228
|
-
toJSON(data?: any): any;
|
|
1230
|
+
constructor();
|
|
1231
|
+
static fromJS(): TestPlanChangedEvent;
|
|
1229
1232
|
}
|
|
1230
1233
|
export declare class SessionStateChangedEvent extends SessionEvent {
|
|
1231
1234
|
runStatus?: RunStatus | undefined;
|
package/dist/mjs/DTOs.js
CHANGED
|
@@ -1416,6 +1416,7 @@ export class RepositoryPackageReference {
|
|
|
1416
1416
|
this.version = _data['Version'];
|
|
1417
1417
|
this.repository = _data['Repository'];
|
|
1418
1418
|
this.path = _data['Path'];
|
|
1419
|
+
this.pathId = _data['PathId'];
|
|
1419
1420
|
}
|
|
1420
1421
|
}
|
|
1421
1422
|
static fromJS(data) {
|
|
@@ -1430,6 +1431,7 @@ export class RepositoryPackageReference {
|
|
|
1430
1431
|
data['Version'] = this.version;
|
|
1431
1432
|
data['Repository'] = this.repository;
|
|
1432
1433
|
data['Path'] = this.path;
|
|
1434
|
+
data['PathId'] = this.pathId;
|
|
1433
1435
|
return data;
|
|
1434
1436
|
}
|
|
1435
1437
|
}
|
|
@@ -1483,6 +1485,58 @@ export class RepositorySettingsPackageDefinition extends RepositoryPackageDefini
|
|
|
1483
1485
|
return data;
|
|
1484
1486
|
}
|
|
1485
1487
|
}
|
|
1488
|
+
export class GetTestPlanReferenceResponse {
|
|
1489
|
+
constructor(data) {
|
|
1490
|
+
if (data) {
|
|
1491
|
+
for (const property in data) {
|
|
1492
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1493
|
+
this[property] = data[property];
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
init(_data) {
|
|
1498
|
+
if (_data) {
|
|
1499
|
+
this.testPlanReference = _data['TestPlanReference'] ? RepositoryPackageReference.fromJS(_data['TestPlanReference']) : undefined;
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
static fromJS(data) {
|
|
1503
|
+
data = typeof data === 'object' ? data : {};
|
|
1504
|
+
const result = new GetTestPlanReferenceResponse();
|
|
1505
|
+
result.init(data);
|
|
1506
|
+
return result;
|
|
1507
|
+
}
|
|
1508
|
+
toJSON(data) {
|
|
1509
|
+
data = typeof data === 'object' ? data : {};
|
|
1510
|
+
data['TestPlanReference'] = this.testPlanReference ? this.testPlanReference.toJSON() : undefined;
|
|
1511
|
+
return data;
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
export class SaveTestPlanToRepositoryResponse {
|
|
1515
|
+
constructor(data) {
|
|
1516
|
+
if (data) {
|
|
1517
|
+
for (const property in data) {
|
|
1518
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1519
|
+
this[property] = data[property];
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
init(_data) {
|
|
1524
|
+
if (_data) {
|
|
1525
|
+
this.testPlanReference = _data['TestPlanReference'] ? RepositoryPackageReference.fromJS(_data['TestPlanReference']) : undefined;
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
static fromJS(data) {
|
|
1529
|
+
data = typeof data === 'object' ? data : {};
|
|
1530
|
+
const result = new SaveTestPlanToRepositoryResponse();
|
|
1531
|
+
result.init(data);
|
|
1532
|
+
return result;
|
|
1533
|
+
}
|
|
1534
|
+
toJSON(data) {
|
|
1535
|
+
data = typeof data === 'object' ? data : {};
|
|
1536
|
+
data['TestPlanReference'] = this.testPlanReference ? this.testPlanReference.toJSON() : undefined;
|
|
1537
|
+
return data;
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1486
1540
|
export class SettingsTapPackage {
|
|
1487
1541
|
constructor(data) {
|
|
1488
1542
|
if (data) {
|
|
@@ -2038,37 +2092,6 @@ export class RunStatus {
|
|
|
2038
2092
|
return data;
|
|
2039
2093
|
}
|
|
2040
2094
|
}
|
|
2041
|
-
export class EditStatus {
|
|
2042
|
-
constructor(data) {
|
|
2043
|
-
if (data) {
|
|
2044
|
-
for (const property in data) {
|
|
2045
|
-
if (Object.prototype.hasOwnProperty.call(data, property)) {
|
|
2046
|
-
this[property] = data[property];
|
|
2047
|
-
}
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
init(_data) {
|
|
2052
|
-
if (_data) {
|
|
2053
|
-
this.undoBufferSize = _data['UndoBufferSize'];
|
|
2054
|
-
this.redoBufferSize = _data['RedoBufferSize'];
|
|
2055
|
-
this.testPlanDirty = _data['TestPlanDirty'];
|
|
2056
|
-
}
|
|
2057
|
-
}
|
|
2058
|
-
static fromJS(data) {
|
|
2059
|
-
data = typeof data === 'object' ? data : {};
|
|
2060
|
-
const result = new EditStatus();
|
|
2061
|
-
result.init(data);
|
|
2062
|
-
return result;
|
|
2063
|
-
}
|
|
2064
|
-
toJSON(data) {
|
|
2065
|
-
data = typeof data === 'object' ? data : {};
|
|
2066
|
-
data['UndoBufferSize'] = this.undoBufferSize;
|
|
2067
|
-
data['RedoBufferSize'] = this.redoBufferSize;
|
|
2068
|
-
data['TestPlanDirty'] = this.testPlanDirty;
|
|
2069
|
-
return data;
|
|
2070
|
-
}
|
|
2071
|
-
}
|
|
2072
2095
|
/** Enumeration containing the verdict types used for Verdict and Verdict properties. */
|
|
2073
2096
|
export var Verdict;
|
|
2074
2097
|
(function (Verdict) {
|
|
@@ -2934,26 +2957,11 @@ export class StoppedEvent extends SessionEvent {
|
|
|
2934
2957
|
}
|
|
2935
2958
|
}
|
|
2936
2959
|
export class TestPlanChangedEvent extends SessionEvent {
|
|
2937
|
-
constructor(
|
|
2960
|
+
constructor() {
|
|
2938
2961
|
super(SessionEventName.TestPlanChanged);
|
|
2939
|
-
if (data === null || data === void 0 ? void 0 : data.editStatus) {
|
|
2940
|
-
this.editStatus = data.editStatus;
|
|
2941
|
-
}
|
|
2942
|
-
}
|
|
2943
|
-
init(_data) {
|
|
2944
|
-
const data = ensureObject(_data);
|
|
2945
|
-
const payload = data['EditStatus'];
|
|
2946
|
-
this.editStatus = payload ? EditStatus.fromJS(payload) : undefined;
|
|
2947
|
-
}
|
|
2948
|
-
static fromJS(data) {
|
|
2949
|
-
const result = new TestPlanChangedEvent();
|
|
2950
|
-
result.init(data);
|
|
2951
|
-
return result;
|
|
2952
2962
|
}
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
json['EditStatus'] = this.editStatus ? this.editStatus.toJSON() : undefined;
|
|
2956
|
-
return json;
|
|
2963
|
+
static fromJS() {
|
|
2964
|
+
return new TestPlanChangedEvent();
|
|
2957
2965
|
}
|
|
2958
2966
|
}
|
|
2959
2967
|
export class SessionStateChangedEvent extends SessionEvent {
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
1
|
+
import { BreakPoints, CommonContext, CommonSettings, DataGridControl, GetTestPlanReferenceResponse, IMetricsConfiguration, Image, Interaction, ListItemType, LogList, MetricsConfiguration, OnTestPlanRun, OnTestStepRun, Parameter, RepositoryPackageDefinition, RepositoryPackageReference, Resource, Result, RunStatus, SaveTestPlanToRepositoryResponse, 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 {
|
|
@@ -115,11 +115,6 @@ export declare class SessionClient extends BaseClient {
|
|
|
115
115
|
* @return RunStatus retrieved
|
|
116
116
|
*/
|
|
117
117
|
getStatus(timeout: number | null | undefined): Promise<RunStatus>;
|
|
118
|
-
/**
|
|
119
|
-
* Get edit status that contains undo/redo buffer count and testplan dirty status
|
|
120
|
-
* @returns EditStatus retrieved
|
|
121
|
-
*/
|
|
122
|
-
getEditStatus(): Promise<EditStatus>;
|
|
123
118
|
/**
|
|
124
119
|
* Upload test plan XML
|
|
125
120
|
* @param xml Test Plan XML
|
|
@@ -136,49 +131,6 @@ export declare class SessionClient extends BaseClient {
|
|
|
136
131
|
* @return Raw bytes representing the resource
|
|
137
132
|
*/
|
|
138
133
|
downloadResource(resource: Resource): Promise<Uint8Array>;
|
|
139
|
-
/**
|
|
140
|
-
* Moves the test steps as children of target step
|
|
141
|
-
* @param TargetStepId target test step id
|
|
142
|
-
* @param StepIds test steps ids to move
|
|
143
|
-
*/
|
|
144
|
-
moveStepsAsChildren(targetStepId: string, StepIds: string[]): void;
|
|
145
|
-
/**
|
|
146
|
-
* Moves the test steps as sibling of target step
|
|
147
|
-
* @param TargetStepId target test step id
|
|
148
|
-
* @param StepIds test steps ids to move
|
|
149
|
-
*/
|
|
150
|
-
moveSteps(targetStepId: string, StepIds: string[]): void;
|
|
151
|
-
/**
|
|
152
|
-
* Copy test steps
|
|
153
|
-
* @param stepIds test step ids to copy
|
|
154
|
-
* @return copied steps
|
|
155
|
-
*/
|
|
156
|
-
copySteps(StepIds: string[]): Promise<string>;
|
|
157
|
-
/**
|
|
158
|
-
* Paste copied test steps as sibling of target step
|
|
159
|
-
* @param TargetStepId target test step id
|
|
160
|
-
* @param Clipboard test steps copied to clipboard
|
|
161
|
-
*/
|
|
162
|
-
pasteStepsAsChildren(targetStepId: string, Clipboard: string): void;
|
|
163
|
-
/**
|
|
164
|
-
* Paste copied test steps as sibling of target step
|
|
165
|
-
* @param TargetStepId target test step id
|
|
166
|
-
* @param Clipboard test steps copied to clipboard
|
|
167
|
-
*/
|
|
168
|
-
pasteSteps(targetStepId: string, Clipboard: string): void;
|
|
169
|
-
/**
|
|
170
|
-
* Delete test steps
|
|
171
|
-
* @param stepIds test step ids to delete
|
|
172
|
-
*/
|
|
173
|
-
deleteSteps(StepIds: string[]): void;
|
|
174
|
-
/**
|
|
175
|
-
* Undo
|
|
176
|
-
*/
|
|
177
|
-
testPlanUndo(): void;
|
|
178
|
-
/**
|
|
179
|
-
* Redo
|
|
180
|
-
*/
|
|
181
|
-
testPlanRedo(): void;
|
|
182
134
|
/**
|
|
183
135
|
* Load test plan using a test plan TapPackage from a repository
|
|
184
136
|
* @param {RepositoryPackageDefinition} packageReference
|
|
@@ -188,9 +140,9 @@ export declare class SessionClient extends BaseClient {
|
|
|
188
140
|
/**
|
|
189
141
|
* Save currently loaded test plan to a repository
|
|
190
142
|
* @param {RepositoryPackageDefinition} packageReference
|
|
191
|
-
* @return Test plan uploaded.
|
|
143
|
+
* @return Test plan uploaded with reference.
|
|
192
144
|
*/
|
|
193
|
-
saveTestPlanToRepository(packageReference: RepositoryPackageDefinition): Promise<
|
|
145
|
+
saveTestPlanToRepository(packageReference: RepositoryPackageDefinition): Promise<SaveTestPlanToRepositoryResponse>;
|
|
194
146
|
/**
|
|
195
147
|
* Test plan resources opened
|
|
196
148
|
* @return Test plan resources opened.
|
|
@@ -232,6 +184,11 @@ export declare class SessionClient extends BaseClient {
|
|
|
232
184
|
* @return {Promise<void>}
|
|
233
185
|
*/
|
|
234
186
|
setTestPlanName(testPlanName: string): Promise<void>;
|
|
187
|
+
/**
|
|
188
|
+
* Gets the loaded test plan repository reference.
|
|
189
|
+
* @return {Promise<GetTestPlanReferenceResponse>}
|
|
190
|
+
*/
|
|
191
|
+
getTestPlanReference(): Promise<GetTestPlanReferenceResponse>;
|
|
235
192
|
/**
|
|
236
193
|
* Retrieve all validation errors present in the test plan
|
|
237
194
|
* @return Retrieved validation errors for loaded TestPlan
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { BreakEvent, BreakPoints, CommonContext, CommonSettings, DataGridControl, HeartbeatEvent, Image, Interaction, ListItemType, LogList, MetricsConfiguration, OnTestPlanRun, OnTestStepRun, Result, RunStatus, SessionEventName, SessionStateChangedEvent, SessionTimeoutEvent, Setting, SettingsChangedEvent, StartingEvent, StartedEvent, StoppedEvent, StoppingEvent, TestPlan, TestPlanChangedEvent, TestPlanSettingsChangedEvent, TestStepChangedEvent, TestStepType, TestStepValidationError, TypeCacheInvalidatedEvent, UserInputRequestCompletedEvent, UserInputRequestedEvent, WatchDog,
|
|
1
|
+
import { BreakEvent, BreakPoints, CommonContext, CommonSettings, DataGridControl, HeartbeatEvent, Image, Interaction, ListItemType, LogList, MetricsConfiguration, OnTestPlanRun, OnTestStepRun, Result, RunStatus, SessionEventName, SessionStateChangedEvent, SessionTimeoutEvent, Setting, SettingsChangedEvent, StartingEvent, StartedEvent, StoppedEvent, StoppingEvent, TestPlan, TestPlanChangedEvent, TestPlanSettingsChangedEvent, TestStepChangedEvent, TestStepType, TestStepValidationError, TypeCacheInvalidatedEvent, UserInputRequestCompletedEvent, UserInputRequestedEvent, WatchDog, } from './DTOs';
|
|
2
2
|
import { BaseClient } from './BaseClient';
|
|
3
3
|
import { jsonCodec } from './encoders';
|
|
4
|
-
import { NIL } from 'uuid';
|
|
5
4
|
export class SessionClient extends BaseClient {
|
|
6
5
|
constructor(baseSubject, options) {
|
|
7
6
|
super(baseSubject, options);
|
|
@@ -281,16 +280,6 @@ export class SessionClient extends BaseClient {
|
|
|
281
280
|
.then(this.success())
|
|
282
281
|
.catch(this.error());
|
|
283
282
|
}
|
|
284
|
-
/**
|
|
285
|
-
* Get edit status that contains undo/redo buffer count and testplan dirty status
|
|
286
|
-
* @returns EditStatus retrieved
|
|
287
|
-
*/
|
|
288
|
-
getEditStatus() {
|
|
289
|
-
return this.request('GetEditStatus')
|
|
290
|
-
.then(editStatusJs => EditStatus.fromJS(editStatusJs))
|
|
291
|
-
.then(this.success())
|
|
292
|
-
.catch(this.error());
|
|
293
|
-
}
|
|
294
283
|
/**
|
|
295
284
|
* Upload test plan XML
|
|
296
285
|
* @param xml Test Plan XML
|
|
@@ -322,73 +311,6 @@ export class SessionClient extends BaseClient {
|
|
|
322
311
|
.then(this.success())
|
|
323
312
|
.catch(this.error());
|
|
324
313
|
}
|
|
325
|
-
/**
|
|
326
|
-
* Moves the test steps as children of target step
|
|
327
|
-
* @param TargetStepId target test step id
|
|
328
|
-
* @param StepIds test steps ids to move
|
|
329
|
-
*/
|
|
330
|
-
moveStepsAsChildren(targetStepId, StepIds) {
|
|
331
|
-
// need to send GUID.EMPTY if target step id is empty, so that runner can parse correctly
|
|
332
|
-
const TargetStepId = targetStepId ? targetStepId : NIL;
|
|
333
|
-
this.request('MoveStepsAsChildren', { StepIds, TargetStepId }).then(this.success()).catch(this.error());
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* Moves the test steps as sibling of target step
|
|
337
|
-
* @param TargetStepId target test step id
|
|
338
|
-
* @param StepIds test steps ids to move
|
|
339
|
-
*/
|
|
340
|
-
moveSteps(targetStepId, StepIds) {
|
|
341
|
-
// need to send GUID.EMPTY if target step id is empty, so that runner can parse correctly
|
|
342
|
-
const TargetStepId = targetStepId ? targetStepId : NIL;
|
|
343
|
-
this.request('MoveSteps', { StepIds, TargetStepId }).then(this.success()).catch(this.error());
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Copy test steps
|
|
347
|
-
* @param stepIds test step ids to copy
|
|
348
|
-
* @return copied steps
|
|
349
|
-
*/
|
|
350
|
-
copySteps(StepIds) {
|
|
351
|
-
return this.request('CopySteps', { StepIds }).then(this.success()).catch(this.error());
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Paste copied test steps as sibling of target step
|
|
355
|
-
* @param TargetStepId target test step id
|
|
356
|
-
* @param Clipboard test steps copied to clipboard
|
|
357
|
-
*/
|
|
358
|
-
pasteStepsAsChildren(targetStepId, Clipboard) {
|
|
359
|
-
// need to send GUID.EMPTY if target step id is empty, so that runner can parse correctly
|
|
360
|
-
const TargetStepId = targetStepId ? targetStepId : NIL;
|
|
361
|
-
this.request('PasteStepsAsChildren', { TargetStepId, Clipboard }).then(this.success()).catch(this.error());
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
* Paste copied test steps as sibling of target step
|
|
365
|
-
* @param TargetStepId target test step id
|
|
366
|
-
* @param Clipboard test steps copied to clipboard
|
|
367
|
-
*/
|
|
368
|
-
pasteSteps(targetStepId, Clipboard) {
|
|
369
|
-
// need to send GUID.EMPTY if target step id is empty, so that runner can parse correctly
|
|
370
|
-
const TargetStepId = targetStepId ? targetStepId : NIL;
|
|
371
|
-
this.request('PasteSteps', { TargetStepId, Clipboard }).then(this.success()).catch(this.error());
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Delete test steps
|
|
375
|
-
* @param stepIds test step ids to delete
|
|
376
|
-
*/
|
|
377
|
-
deleteSteps(StepIds) {
|
|
378
|
-
this.request('DeleteSteps', { StepIds }).then(this.success()).catch(this.error());
|
|
379
|
-
}
|
|
380
|
-
/**
|
|
381
|
-
* Undo
|
|
382
|
-
*/
|
|
383
|
-
testPlanUndo() {
|
|
384
|
-
this.request('TestPlanUndo').then(this.success()).catch(this.error());
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* Redo
|
|
388
|
-
*/
|
|
389
|
-
testPlanRedo() {
|
|
390
|
-
this.request('TestPlanRedo').then(this.success()).catch(this.error());
|
|
391
|
-
}
|
|
392
314
|
/**
|
|
393
315
|
* Load test plan using a test plan TapPackage from a repository
|
|
394
316
|
* @param {RepositoryPackageDefinition} packageReference
|
|
@@ -400,10 +322,12 @@ export class SessionClient extends BaseClient {
|
|
|
400
322
|
/**
|
|
401
323
|
* Save currently loaded test plan to a repository
|
|
402
324
|
* @param {RepositoryPackageDefinition} packageReference
|
|
403
|
-
* @return Test plan uploaded.
|
|
325
|
+
* @return Test plan uploaded with reference.
|
|
404
326
|
*/
|
|
405
327
|
saveTestPlanToRepository(packageReference) {
|
|
406
|
-
return this.request('SaveTestPlanToRepository', packageReference)
|
|
328
|
+
return this.request('SaveTestPlanToRepository', packageReference)
|
|
329
|
+
.then(this.success())
|
|
330
|
+
.catch(this.error());
|
|
407
331
|
}
|
|
408
332
|
/**
|
|
409
333
|
* Test plan resources opened
|
|
@@ -479,6 +403,13 @@ export class SessionClient extends BaseClient {
|
|
|
479
403
|
setTestPlanName(testPlanName) {
|
|
480
404
|
return this.request('SetTestPlanName', testPlanName).then(this.success()).catch(this.error());
|
|
481
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* Gets the loaded test plan repository reference.
|
|
408
|
+
* @return {Promise<GetTestPlanReferenceResponse>}
|
|
409
|
+
*/
|
|
410
|
+
getTestPlanReference() {
|
|
411
|
+
return this.request('GetTestPlanReference').then(this.success()).catch(this.error());
|
|
412
|
+
}
|
|
482
413
|
/**
|
|
483
414
|
* Retrieve all validation errors present in the test plan
|
|
484
415
|
* @return Retrieved validation errors for loaded TestPlan
|
|
@@ -787,7 +718,7 @@ SessionClient.sessionEventFactories = {
|
|
|
787
718
|
[SessionEventName.Heartbeat]: payload => HeartbeatEvent.fromJS(payload),
|
|
788
719
|
[SessionEventName.Stopping]: () => StoppingEvent.fromJS(),
|
|
789
720
|
[SessionEventName.Stopped]: () => StoppedEvent.fromJS(),
|
|
790
|
-
[SessionEventName.TestPlanChanged]:
|
|
721
|
+
[SessionEventName.TestPlanChanged]: () => TestPlanChangedEvent.fromJS(),
|
|
791
722
|
[SessionEventName.SessionStateChanged]: payload => SessionStateChangedEvent.fromJS(payload),
|
|
792
723
|
[SessionEventName.SettingsChanged]: payload => SettingsChangedEvent.fromJS(payload),
|
|
793
724
|
[SessionEventName.TestStepChanged]: payload => TestStepChangedEvent.fromJS(payload),
|
package/package.json
CHANGED