askui 0.11.0 → 0.11.1

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.
@@ -104,7 +104,15 @@ export declare class FluentFilters extends FluentBase {
104
104
  *
105
105
  * @return {FluentFiltersOrRelations}
106
106
  */
107
- col(index: number): FluentFiltersOrRelations;
107
+ column(index: number): FluentFiltersOrRelations;
108
+ /**
109
+ *
110
+ * @param {number} row_index - row index
111
+ * @param {number} column_index - column index
112
+ *
113
+ * @return {FluentFiltersOrRelations}
114
+ */
115
+ cell(row_index: number, column_index: number): FluentFiltersOrRelations;
108
116
  /**
109
117
  *
110
118
  * @return {FluentFiltersOrRelations}
@@ -652,7 +660,15 @@ export declare class FluentFiltersCondition extends FluentBase {
652
660
  *
653
661
  * @return {FluentFiltersOrRelationsCondition}
654
662
  */
655
- col(index: number): FluentFiltersOrRelationsCondition;
663
+ column(index: number): FluentFiltersOrRelationsCondition;
664
+ /**
665
+ *
666
+ * @param {number} row_index - row index
667
+ * @param {number} column_index - column index
668
+ *
669
+ * @return {FluentFiltersOrRelationsCondition}
670
+ */
671
+ cell(row_index: number, column_index: number): FluentFiltersOrRelationsCondition;
656
672
  /**
657
673
  *
658
674
  * @return {FluentFiltersOrRelationsCondition}
@@ -1645,7 +1661,15 @@ export declare class FluentFiltersGetter extends FluentBase {
1645
1661
  *
1646
1662
  * @return {FluentFiltersOrRelationsGetter}
1647
1663
  */
1648
- col(index: number): FluentFiltersOrRelationsGetter;
1664
+ column(index: number): FluentFiltersOrRelationsGetter;
1665
+ /**
1666
+ *
1667
+ * @param {number} row_index - row index
1668
+ * @param {number} column_index - column index
1669
+ *
1670
+ * @return {FluentFiltersOrRelationsGetter}
1671
+ */
1672
+ cell(row_index: number, column_index: number): FluentFiltersOrRelationsGetter;
1649
1673
  /**
1650
1674
  *
1651
1675
  * @return {FluentFiltersOrRelationsGetter}
@@ -175,12 +175,28 @@ class FluentFilters extends FluentBase {
175
175
  *
176
176
  * @return {FluentFiltersOrRelations}
177
177
  */
178
- col(index) {
178
+ column(index) {
179
179
  this._textStr = '';
180
- this._textStr += 'col';
180
+ this._textStr += 'column';
181
181
  this._textStr += ` ${index}`;
182
182
  return new FluentFiltersOrRelations(this);
183
183
  }
184
+ /**
185
+ *
186
+ * @param {number} row_index - row index
187
+ * @param {number} column_index - column index
188
+ *
189
+ * @return {FluentFiltersOrRelations}
190
+ */
191
+ cell(row_index, column_index) {
192
+ this._textStr = '';
193
+ this._textStr += 'cell';
194
+ this._textStr += ' row';
195
+ this._textStr += ` ${row_index}`;
196
+ this._textStr += ' column';
197
+ this._textStr += ` ${column_index}`;
198
+ return new FluentFiltersOrRelations(this);
199
+ }
184
200
  /**
185
201
  *
186
202
  * @return {FluentFiltersOrRelations}
@@ -879,12 +895,28 @@ class FluentFiltersCondition extends FluentBase {
879
895
  *
880
896
  * @return {FluentFiltersOrRelationsCondition}
881
897
  */
882
- col(index) {
898
+ column(index) {
883
899
  this._textStr = '';
884
- this._textStr += 'col';
900
+ this._textStr += 'column';
885
901
  this._textStr += ` ${index}`;
886
902
  return new FluentFiltersOrRelationsCondition(this);
887
903
  }
904
+ /**
905
+ *
906
+ * @param {number} row_index - row index
907
+ * @param {number} column_index - column index
908
+ *
909
+ * @return {FluentFiltersOrRelationsCondition}
910
+ */
911
+ cell(row_index, column_index) {
912
+ this._textStr = '';
913
+ this._textStr += 'cell';
914
+ this._textStr += ' row';
915
+ this._textStr += ` ${row_index}`;
916
+ this._textStr += ' column';
917
+ this._textStr += ` ${column_index}`;
918
+ return new FluentFiltersOrRelationsCondition(this);
919
+ }
888
920
  /**
889
921
  *
890
922
  * @return {FluentFiltersOrRelationsCondition}
@@ -2206,12 +2238,28 @@ class FluentFiltersGetter extends FluentBase {
2206
2238
  *
2207
2239
  * @return {FluentFiltersOrRelationsGetter}
2208
2240
  */
2209
- col(index) {
2241
+ column(index) {
2210
2242
  this._textStr = '';
2211
- this._textStr += 'col';
2243
+ this._textStr += 'column';
2212
2244
  this._textStr += ` ${index}`;
2213
2245
  return new FluentFiltersOrRelationsGetter(this);
2214
2246
  }
2247
+ /**
2248
+ *
2249
+ * @param {number} row_index - row index
2250
+ * @param {number} column_index - column index
2251
+ *
2252
+ * @return {FluentFiltersOrRelationsGetter}
2253
+ */
2254
+ cell(row_index, column_index) {
2255
+ this._textStr = '';
2256
+ this._textStr += 'cell';
2257
+ this._textStr += ' row';
2258
+ this._textStr += ` ${row_index}`;
2259
+ this._textStr += ' column';
2260
+ this._textStr += ` ${column_index}`;
2261
+ return new FluentFiltersOrRelationsGetter(this);
2262
+ }
2215
2263
  /**
2216
2264
  *
2217
2265
  * @return {FluentFiltersOrRelationsGetter}
@@ -54,7 +54,7 @@ function getBinaryFilePath(version) {
54
54
  }
55
55
  exports.getBinaryFilePath = getBinaryFilePath;
56
56
  function getBinaryDownloadUrl(binaryVersion) {
57
- const baseUrl = `https://askui-public.s3.eu-central-1.amazonaws.com/releases/askui-ui-controller/${binaryVersion}`;
57
+ const baseUrl = `https://files.askui.com/releases/askui-ui-controller/${binaryVersion}`;
58
58
  const arch = os_1.default.arch();
59
59
  return `${baseUrl}/${platform()}/${arch}/${binarySubPathsByPlatform[platform()][1]}`;
60
60
  }
@@ -104,7 +104,15 @@ export declare class FluentFilters extends FluentBase {
104
104
  *
105
105
  * @return {FluentFiltersOrRelations}
106
106
  */
107
- col(index: number): FluentFiltersOrRelations;
107
+ column(index: number): FluentFiltersOrRelations;
108
+ /**
109
+ *
110
+ * @param {number} row_index - row index
111
+ * @param {number} column_index - column index
112
+ *
113
+ * @return {FluentFiltersOrRelations}
114
+ */
115
+ cell(row_index: number, column_index: number): FluentFiltersOrRelations;
108
116
  /**
109
117
  *
110
118
  * @return {FluentFiltersOrRelations}
@@ -652,7 +660,15 @@ export declare class FluentFiltersCondition extends FluentBase {
652
660
  *
653
661
  * @return {FluentFiltersOrRelationsCondition}
654
662
  */
655
- col(index: number): FluentFiltersOrRelationsCondition;
663
+ column(index: number): FluentFiltersOrRelationsCondition;
664
+ /**
665
+ *
666
+ * @param {number} row_index - row index
667
+ * @param {number} column_index - column index
668
+ *
669
+ * @return {FluentFiltersOrRelationsCondition}
670
+ */
671
+ cell(row_index: number, column_index: number): FluentFiltersOrRelationsCondition;
656
672
  /**
657
673
  *
658
674
  * @return {FluentFiltersOrRelationsCondition}
@@ -1645,7 +1661,15 @@ export declare class FluentFiltersGetter extends FluentBase {
1645
1661
  *
1646
1662
  * @return {FluentFiltersOrRelationsGetter}
1647
1663
  */
1648
- col(index: number): FluentFiltersOrRelationsGetter;
1664
+ column(index: number): FluentFiltersOrRelationsGetter;
1665
+ /**
1666
+ *
1667
+ * @param {number} row_index - row index
1668
+ * @param {number} column_index - column index
1669
+ *
1670
+ * @return {FluentFiltersOrRelationsGetter}
1671
+ */
1672
+ cell(row_index: number, column_index: number): FluentFiltersOrRelationsGetter;
1649
1673
  /**
1650
1674
  *
1651
1675
  * @return {FluentFiltersOrRelationsGetter}
@@ -171,12 +171,28 @@ export class FluentFilters extends FluentBase {
171
171
  *
172
172
  * @return {FluentFiltersOrRelations}
173
173
  */
174
- col(index) {
174
+ column(index) {
175
175
  this._textStr = '';
176
- this._textStr += 'col';
176
+ this._textStr += 'column';
177
177
  this._textStr += ` ${index}`;
178
178
  return new FluentFiltersOrRelations(this);
179
179
  }
180
+ /**
181
+ *
182
+ * @param {number} row_index - row index
183
+ * @param {number} column_index - column index
184
+ *
185
+ * @return {FluentFiltersOrRelations}
186
+ */
187
+ cell(row_index, column_index) {
188
+ this._textStr = '';
189
+ this._textStr += 'cell';
190
+ this._textStr += ' row';
191
+ this._textStr += ` ${row_index}`;
192
+ this._textStr += ' column';
193
+ this._textStr += ` ${column_index}`;
194
+ return new FluentFiltersOrRelations(this);
195
+ }
180
196
  /**
181
197
  *
182
198
  * @return {FluentFiltersOrRelations}
@@ -873,12 +889,28 @@ export class FluentFiltersCondition extends FluentBase {
873
889
  *
874
890
  * @return {FluentFiltersOrRelationsCondition}
875
891
  */
876
- col(index) {
892
+ column(index) {
877
893
  this._textStr = '';
878
- this._textStr += 'col';
894
+ this._textStr += 'column';
879
895
  this._textStr += ` ${index}`;
880
896
  return new FluentFiltersOrRelationsCondition(this);
881
897
  }
898
+ /**
899
+ *
900
+ * @param {number} row_index - row index
901
+ * @param {number} column_index - column index
902
+ *
903
+ * @return {FluentFiltersOrRelationsCondition}
904
+ */
905
+ cell(row_index, column_index) {
906
+ this._textStr = '';
907
+ this._textStr += 'cell';
908
+ this._textStr += ' row';
909
+ this._textStr += ` ${row_index}`;
910
+ this._textStr += ' column';
911
+ this._textStr += ` ${column_index}`;
912
+ return new FluentFiltersOrRelationsCondition(this);
913
+ }
882
914
  /**
883
915
  *
884
916
  * @return {FluentFiltersOrRelationsCondition}
@@ -2196,12 +2228,28 @@ export class FluentFiltersGetter extends FluentBase {
2196
2228
  *
2197
2229
  * @return {FluentFiltersOrRelationsGetter}
2198
2230
  */
2199
- col(index) {
2231
+ column(index) {
2200
2232
  this._textStr = '';
2201
- this._textStr += 'col';
2233
+ this._textStr += 'column';
2202
2234
  this._textStr += ` ${index}`;
2203
2235
  return new FluentFiltersOrRelationsGetter(this);
2204
2236
  }
2237
+ /**
2238
+ *
2239
+ * @param {number} row_index - row index
2240
+ * @param {number} column_index - column index
2241
+ *
2242
+ * @return {FluentFiltersOrRelationsGetter}
2243
+ */
2244
+ cell(row_index, column_index) {
2245
+ this._textStr = '';
2246
+ this._textStr += 'cell';
2247
+ this._textStr += ' row';
2248
+ this._textStr += ` ${row_index}`;
2249
+ this._textStr += ' column';
2250
+ this._textStr += ` ${column_index}`;
2251
+ return new FluentFiltersOrRelationsGetter(this);
2252
+ }
2205
2253
  /**
2206
2254
  *
2207
2255
  * @return {FluentFiltersOrRelationsGetter}
@@ -46,7 +46,7 @@ export function getBinaryFilePath(version) {
46
46
  return path.join(getPathToNodeModulesRoot(), 'release', version, ...binarySubPathsByPlatform[platform()]);
47
47
  }
48
48
  function getBinaryDownloadUrl(binaryVersion) {
49
- const baseUrl = `https://askui-public.s3.eu-central-1.amazonaws.com/releases/askui-ui-controller/${binaryVersion}`;
49
+ const baseUrl = `https://files.askui.com/releases/askui-ui-controller/${binaryVersion}`;
50
50
  const arch = os.arch();
51
51
  return `${baseUrl}/${platform()}/${arch}/${binarySubPathsByPlatform[platform()][1]}`;
52
52
  }
@@ -1,15 +1,15 @@
1
- # Askui first test
2
-
3
- Example to introduce how to use the askui lib.
4
- The lib is helps to control the operating system with
1
+ # AskUI First Run
2
+ Example of using the askui SDK.
3
+ The lib helps to control the operating system with
5
4
  commands.
6
- Using Jest as test framework to execute all tests.
5
+ Using Jest as runner framework to execute all your
6
+ AskUI workflows.
7
7
 
8
8
  ## Installation of Jest and Typescript
9
9
 
10
10
  Use following command to set up Jest:
11
11
  ```shell
12
- npm i -D jest @types/jest ts-jest typescript
12
+ npm i -D jest @types/jest ts-jest typescript
13
13
  ```
14
14
 
15
15
  ## How to execute the example
@@ -1,4 +1,6 @@
1
1
  import { UiControlClient, UiController } from 'askui';
2
+ import 'jest-allure-circus';
3
+ import { AskUIAllureStepReporter } from '@askui/askui-reporters';
2
4
 
3
5
  // Server for controlling the operating system
4
6
  let uiController: UiController;
@@ -25,13 +27,24 @@ beforeAll(async () => {
25
27
  workspaceId: '<your workspace id>',
26
28
  token: '<your access token>',
27
29
  },
30
+ reporter: new AskUIAllureStepReporter(),
28
31
  });
29
32
 
30
33
  await aui.connect();
31
34
  });
32
35
 
36
+ beforeEach(async () => {
37
+ await aui.startVideoRecording();
38
+ });
39
+
40
+ afterEach(async () => {
41
+ await aui.stopVideoRecording();
42
+ const video = await aui.readVideoRecording();
43
+ AskUIAllureStepReporter.createAllureAttachment(video);
44
+ });
45
+
33
46
  afterAll(async () => {
34
- aui.close();
47
+ aui.disconnect();
35
48
 
36
49
  await uiController.stop();
37
50
  });
@@ -2,7 +2,7 @@ import type { Config } from '@jest/types';
2
2
 
3
3
  const config: Config.InitialOptions = {
4
4
  preset: 'ts-jest',
5
- testEnvironment: 'node',
5
+ testEnvironment: 'jest-allure-circus',
6
6
  setupFilesAfterEnv: ['./helper/jest.setup.ts'],
7
7
  sandboxInjectedGlobals: [
8
8
  'Math',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askui",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "license": "MIT",
5
5
  "author": "askui GmbH <info@askui.com> (http://www.askui.com/)",
6
6
  "description": "Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on",