@sap_oss/wdio-qmate-service 2.4.0 → 2.4.2

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.
Files changed (68) hide show
  1. package/docs/doc.md +108 -0
  2. package/lib/reuse/modules/util/file.d.ts +35 -0
  3. package/lib/reuse/modules/util/file.js +94 -0
  4. package/lib/reuse/modules/util/file.js.map +1 -1
  5. package/package.json +5 -6
  6. package/test/core/functional/chaining/test.conf.js +1 -1
  7. package/test/core/functional/locators/test.locator.conf.js +1 -1
  8. package/test/core/functional/nativeBrowser/runInBrowser.test.js +1 -1
  9. package/test/core/functional/nativeBrowser/test.conf.js +1 -1
  10. package/test/core/functional/nonUi5/test.conf.js +1 -1
  11. package/test/core/functional/ui5Properties/getAggregations.test.js +2 -2
  12. package/test/core/functional/ui5Properties/test.conf.js +1 -1
  13. package/test/core/functional/uiveri5/test.conf.js +1 -1
  14. package/test/core/testIntegration/config.js +1 -1
  15. package/test/reuse/common/assertion/test.assertion.conf.js +1 -1
  16. package/test/reuse/common/userInteraction/fillActive.spec.js +4 -4
  17. package/test/reuse/common/userInteraction/fillActiveAndRetry.spec.js +4 -4
  18. package/test/reuse/nonUi5/assertion/expectValueToBe.spec.js +2 -2
  19. package/test/reuse/nonUi5/assertion/test.assertion.conf.js +1 -1
  20. package/test/reuse/nonUi5/assertion/test.assertion.sauceLabs.conf.js +1 -1
  21. package/test/reuse/nonUi5/element/getAttributeValue.spec.js +3 -3
  22. package/test/reuse/nonUi5/element/getByChild.spec.js +3 -3
  23. package/test/reuse/nonUi5/element/getByClass.spec.js +4 -4
  24. package/test/reuse/nonUi5/element/getByParent.spec.js +3 -3
  25. package/test/reuse/nonUi5/element/getByXPath.spec.js +2 -2
  26. package/test/reuse/nonUi5/element/getValue.spec.js +3 -3
  27. package/test/reuse/nonUi5/element/highlight.spec.js +1 -1
  28. package/test/reuse/nonUi5/element/isPresent.spec.js +3 -3
  29. package/test/reuse/nonUi5/element/isPresentByCss.spec.js +2 -2
  30. package/test/reuse/nonUi5/element/setInnerHTML.spec.js +1 -1
  31. package/test/reuse/nonUi5/element/test.element.conf.js +1 -1
  32. package/test/reuse/nonUi5/element/test.element.sauceLabs.conf.js +1 -1
  33. package/test/reuse/nonUi5/userInteraction/scrollToElement.spec.js +1 -1
  34. package/test/reuse/ui5/assertion/test.assertion.conf.js +1 -1
  35. package/test/reuse/ui5/assertion/test.assertion.sauceLab.conf.js +1 -1
  36. package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.conf.js +1 -1
  37. package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.sauceLab.conf.js +1 -1
  38. package/test/reuse/ui5/control/focus.spec.js +1 -1
  39. package/test/reuse/ui5/control/test.control.conf.js +1 -1
  40. package/test/reuse/ui5/control/test.control.sauceLab.conf.js +1 -1
  41. package/test/reuse/ui5/date/fillRange.spec.js +1 -1
  42. package/test/reuse/ui5/date/pick.spec.js +1 -1
  43. package/test/reuse/ui5/date/pickRange.spec.js +1 -1
  44. package/test/reuse/ui5/element/getByText.spec.js +1 -1
  45. package/test/reuse/ui5/element/test.element.conf.js +1 -1
  46. package/test/reuse/ui5/element/test.element.sauceLab.conf.js +1 -1
  47. package/test/reuse/ui5/navigationBar/test.navigationBar.sauceLab.conf.js +1 -1
  48. package/test/reuse/ui5/session/logout.spec.js +1 -1
  49. package/test/reuse/ui5/userInteraction/click.spec.js +1 -1
  50. package/test/reuse/ui5/userInteraction/doubleClick.spec.js +1 -1
  51. package/test/reuse/ui5/userInteraction/fill.spec.js +4 -4
  52. package/test/reuse/ui5/userInteraction/fillAndRetry.spec.js +4 -4
  53. package/test/reuse/ui5/userInteraction/rightClick.spec.js +1 -1
  54. package/test/reuse/ui5/userInteraction/scrollToElement.spec.js +2 -2
  55. package/test/reuse/ui5/userInteraction/test.userInteraction.conf.js +2 -2
  56. package/test/reuse/ui5/userInteraction/test.userInteraction.sauceLab.conf.js +1 -1
  57. package/test/reuse/util/browser/getCurrentWindow.spec.js +2 -2
  58. package/test/reuse/util/browser/switchToWindow.spec.js +2 -2
  59. package/test/reuse/util/file/expectTextDataToContain.spec.js +14 -0
  60. package/test/reuse/util/file/getAttributeValuesFromJson.spec.js +37 -0
  61. package/test/reuse/util/file/getTextData.spec.js +39 -0
  62. package/test/reuse/util/file/getXmlData.spec.js +52 -0
  63. package/test/reuse/util/file/test.file.conf.js +6 -2
  64. package/test/reuse/util/file/testFiles/test1.json +169 -0
  65. package/test/reuse/util/file/testFiles/test1.xml +120 -0
  66. package/test/reuse/util/file/testFiles/test2.xml +122 -0
  67. package/test/reuse/util/file/testFiles/test3.txt +13 -0
  68. /package/test/reuse/util/file/{file.spec.js → upload.spec.js} +0 -0
@@ -5,7 +5,7 @@ describe("element - getByClass + expectToBeVisible", function () {
5
5
  let downloadBtn;
6
6
 
7
7
  it("Preparation", async function () {
8
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
8
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
9
9
  });
10
10
 
11
11
  it("Execution", async function () {
@@ -22,7 +22,7 @@ describe("element - getByClass - multiple classes", function () {
22
22
  let element;
23
23
 
24
24
  it("Preparation", async function () {
25
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
25
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
26
26
  });
27
27
 
28
28
  it("Execution", async function () {
@@ -39,7 +39,7 @@ describe("element - getByClass - all classes", function () {
39
39
  let element;
40
40
 
41
41
  it("Preparation", async function () {
42
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
42
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
43
43
  });
44
44
 
45
45
  it("Execution", async function () {
@@ -54,7 +54,7 @@ describe("element - getByClass - all classes", function () {
54
54
  describe("element - getByClass and catch error", function () {
55
55
 
56
56
  it("Preparation", async function () {
57
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
57
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
58
58
  });
59
59
 
60
60
  it("Execution & Verification", async function () {
@@ -7,7 +7,7 @@ describe("element - getByParent", function () {
7
7
  let finalElement;
8
8
 
9
9
  it("Preparation", async function () {
10
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
10
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
11
11
  await handleCookiesConsent();
12
12
  });
13
13
 
@@ -46,7 +46,7 @@ describe("element - getByParent - with index", function () {
46
46
 
47
47
  describe("element - getByParent - error case with wrong element", function () {
48
48
  it("Preparation", async function () {
49
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
49
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
50
50
  });
51
51
 
52
52
  it("Execution & Verification", async function () {
@@ -59,7 +59,7 @@ describe("element - getByParent - error case with wrong element", function () {
59
59
 
60
60
  describe("element - getByParent - error case with wrong order of parent and child", function () {
61
61
  it("Preparation", async function () {
62
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
62
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
63
63
  });
64
64
 
65
65
  it("Execution & Verification", async function () {
@@ -5,7 +5,7 @@ describe("element - getByXPath + expectToBeVisible", function () {
5
5
  let searchInput;
6
6
 
7
7
  it("Preparation", async function () {
8
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
8
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
9
9
  });
10
10
 
11
11
  it("Execution", async function () {
@@ -20,7 +20,7 @@ describe("element - getByXPath + expectToBeVisible", function () {
20
20
  describe("element - getByXPath and catch error", function () {
21
21
 
22
22
  it("Preparation", async function () {
23
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
23
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
24
24
  });
25
25
 
26
26
  it("Execution & Verification", async function () {
@@ -7,7 +7,7 @@ describe("element - getValue", function () {
7
7
  let actValue;
8
8
 
9
9
  it("Preparation", async function () {
10
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
10
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
11
11
  await handleCookiesConsent();
12
12
  });
13
13
 
@@ -25,7 +25,7 @@ describe("element - getValue - innerHTML", function () {
25
25
  let actValue;
26
26
 
27
27
  it("Preparation", async function () {
28
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
28
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
29
29
  });
30
30
 
31
31
  it("Execution", async function () {
@@ -41,7 +41,7 @@ describe("element - getValue - innerHTML", function () {
41
41
 
42
42
  describe("element - getValue - error case", function () {
43
43
  it("Preparation", async function () {
44
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
44
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
45
45
  });
46
46
 
47
47
  it("Execution & Verification", async function () {
@@ -3,7 +3,7 @@ describe("element - highlight", function () {
3
3
  let product;
4
4
 
5
5
  it("Preparation", async function () {
6
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
6
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
7
7
 
8
8
  });
9
9
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // describe("element - isPresent - list item element", function () {
3
3
  // it("Preparation", async function () {
4
- // await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
4
+ // await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
5
5
  // });
6
6
 
7
7
  // it("Execution & Verification", async function () {
@@ -14,7 +14,7 @@
14
14
 
15
15
  describe("element - isPresent - hidden element", function () {
16
16
  it("Preparation", async function () {
17
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
17
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
18
18
  });
19
19
 
20
20
  it("Execution & Verification", async function () {
@@ -29,7 +29,7 @@ describe("element - isPresent - hidden element", function () {
29
29
 
30
30
  // describe("element - isPresent - wrong element", function () {
31
31
  // it("Preparation", async function () {
32
- // await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
32
+ // await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
33
33
  // });
34
34
 
35
35
  // it("Execution & Verification", async function () {
@@ -52,7 +52,7 @@ describe("element - isPresentByCss with wrong selector/hidden element and catch
52
52
 
53
53
  describe("element - isPresent (by class) for list item element", function () {
54
54
  it("Preparation", async function () {
55
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
55
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
56
56
  });
57
57
 
58
58
  it("Execution & Verification", async function () {
@@ -63,7 +63,7 @@ describe("element - isPresent (by class) for list item element", function () {
63
63
 
64
64
  describe("element - isPresent (by class) for hidden element", function () {
65
65
  it("Preparation", async function () {
66
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
66
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
67
67
  });
68
68
 
69
69
  it("Execution & Verification", async function () {
@@ -7,7 +7,7 @@ const {
7
7
  describe("element - getById + expectToBeVisible", function () {
8
8
 
9
9
  it("Preparation", async function () {
10
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
10
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
11
11
  await handleCookiesConsent();
12
12
  });
13
13
 
@@ -6,7 +6,7 @@ exports.config = merge(profile.config, {
6
6
  maxInstances: 6,
7
7
  specFileRetries: 2,
8
8
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
9
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
10
10
 
11
11
  specs: [
12
12
  path.resolve(__dirname, "waitToBePresent.spec.js"),
@@ -8,7 +8,7 @@ exports.config = merge(profile.config, {
8
8
 
9
9
  maxInstances: 5,
10
10
  bail: 1,
11
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
11
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
12
12
 
13
13
  specs: [
14
14
  path.resolve(__dirname, "waitToBePresent.spec.js"),
@@ -23,7 +23,7 @@ describe("userInteraction - scrollToElement", function () {
23
23
 
24
24
  describe("locator - scrollToElement - wrong element (error case)", function () {
25
25
  it("Preparation", async function () {
26
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
26
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
27
27
  await handleCookiesConsent();
28
28
  });
29
29
 
@@ -6,7 +6,7 @@ exports.config = merge(profile.config, {
6
6
  maxInstances: 6,
7
7
  specFileRetries: 2,
8
8
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
9
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
10
10
 
11
11
  specs: [
12
12
  path.resolve(__dirname, "expectAttributeToBe.spec.js"),
@@ -9,7 +9,7 @@ exports.config = merge(profile.config, {
9
9
  maxInstances: 2, // note: for the SAP account, only 2 parallel instances is a max value
10
10
 
11
11
  bail: 1,
12
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
12
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
13
13
 
14
14
  specs: [
15
15
  path.resolve(__dirname, "expectAttributeToBe.spec.js"),
@@ -6,7 +6,7 @@ exports.config = merge(profile.config, {
6
6
  maxInstances: 6,
7
7
  specFileRetries: 2,
8
8
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
9
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
10
10
 
11
11
  specs: [
12
12
  path.resolve(__dirname, "clickOk.spec.js"),
@@ -9,7 +9,7 @@ exports.config = merge(profile.config, {
9
9
  maxInstances: 2, // note: for the SAP account, only 2 parallel instances is a max value
10
10
 
11
11
  bail: 1,
12
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
12
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
13
13
 
14
14
  specs: [
15
15
  path.resolve(__dirname, "clickOk.spec.js"),
@@ -79,7 +79,7 @@ describe("control - focus - outside of viewpoint", function () {
79
79
  describe("control - focus - no selector found and catch error", function () {
80
80
 
81
81
  it("Preparation", async function () {
82
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
82
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
83
83
  });
84
84
 
85
85
  it("Execution & Verification", async function () {
@@ -6,7 +6,7 @@ exports.config = merge(profile.config, {
6
6
  maxInstances: 6,
7
7
  specFileRetries: 2,
8
8
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
9
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
10
10
 
11
11
  specs: [
12
12
  path.resolve(__dirname, "execute.spec.js"),
@@ -10,7 +10,7 @@ exports.config = merge(profile.config, {
10
10
  maxInstances: 2, // note: for the SAP account, only 2 parallel instances is a max value
11
11
 
12
12
  bail: 1,
13
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
13
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
14
14
 
15
15
  specs: [
16
16
  path.resolve(__dirname, "execute.spec.js"),
@@ -43,7 +43,7 @@ describe("date - fillRange", function () {
43
43
 
44
44
  describe("date - fillRange: no such field on a screen (unhappy case)", function () {
45
45
  it("Preparation", async function () {
46
- await browser.url("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
46
+ await browser.url("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
47
47
  });
48
48
 
49
49
  it("Execution & Verification", async function () {
@@ -126,7 +126,7 @@ describe("date - pick without datePiker (unhappy case)", function () {
126
126
  };
127
127
 
128
128
  it("Preparation", async function () {
129
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
129
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
130
130
  });
131
131
 
132
132
  it("Execution & Verification", async function () {
@@ -133,7 +133,7 @@ describe("date - pickRange without datePiker (unhappy case)", function () {
133
133
  };
134
134
 
135
135
  it("Preparation", async function () {
136
- await browser.url("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories");
136
+ await browser.url("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories");
137
137
  });
138
138
 
139
139
  it("Execution & Verification", async function () {
@@ -48,7 +48,7 @@ describe("element - getByText with index 1 (unhappy case)", function () {
48
48
  const value = "Gaming Monster";
49
49
 
50
50
  it("Preparation", async function () {
51
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/category/DC");
51
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/category/DC");
52
52
  });
53
53
 
54
54
  it("Execution", async function () {
@@ -5,7 +5,7 @@ exports.config = merge(profile.config, {
5
5
  maxInstances: 6,
6
6
  specFileRetries: 2,
7
7
 
8
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
8
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
9
9
 
10
10
  specs: [
11
11
  path.resolve(__dirname, "getBindingValue.spec.js"),
@@ -11,7 +11,7 @@ exports.config = merge(profile.config, {
11
11
 
12
12
 
13
13
  bail: 1,
14
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
14
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
15
15
 
16
16
  specs: [
17
17
  path.resolve(__dirname, "getBindingValue.spec.js"),
@@ -11,7 +11,7 @@ exports.config = merge(profile.config, {
11
11
 
12
12
 
13
13
  bail: 1,
14
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
14
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
15
15
 
16
16
  specs: [
17
17
  path.resolve(__dirname, "clickBack.spec.js"),
@@ -38,7 +38,7 @@ describe("session - logout without inner verification", function () {
38
38
 
39
39
  describe("session - logout without login (unhappy case)", function () {
40
40
  it("Preparation", async function () {
41
- await common.navigation.navigateToUrlAndRetry("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
41
+ await common.navigation.navigateToUrlAndRetry("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
42
42
  });
43
43
 
44
44
  it("Execution & Verification", async function () {
@@ -48,7 +48,7 @@ describe("userInteraction - click on not displayed element", function () {
48
48
  describe("userInteraction - click on invisible element", function () {
49
49
 
50
50
  it("Preparation", async function () {
51
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/category/AC/product/HT-6111");
51
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/category/AC/product/HT-2000");
52
52
  await handleCookiesConsent();
53
53
  });
54
54
 
@@ -48,7 +48,7 @@ describe("userInteraction - doubleClick on not displayed element", function () {
48
48
  describe("userInteraction - doubleClick on invisible element", function () {
49
49
 
50
50
  it("Preparation", async function () {
51
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/category/AC/product/HT-6111");
51
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/category/AC/product/HT-2000");
52
52
  await handleCookiesConsent();
53
53
  });
54
54
 
@@ -6,7 +6,7 @@ describe("userInteraction - fill", function () {
6
6
  let actualValue;
7
7
 
8
8
  it("Preparation", async function () {
9
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
9
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
10
10
  await handleCookiesConsent();
11
11
  });
12
12
 
@@ -36,7 +36,7 @@ describe("userInteraction - fill element with invalid selector", function () {
36
36
  let value;
37
37
 
38
38
  it("Preparation", async function () {
39
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
39
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
40
40
  await handleCookiesConsent();
41
41
  });
42
42
 
@@ -62,7 +62,7 @@ describe("userInteraction - fill element with number", function () {
62
62
  let actualValue;
63
63
 
64
64
  it("Preparation", async function () {
65
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
65
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
66
66
  await handleCookiesConsent();
67
67
  });
68
68
 
@@ -88,7 +88,7 @@ describe("userInteraction - fill element with number", function () {
88
88
 
89
89
  describe("userInteraction - fill element with empty value", function () {
90
90
  it("Preparation", async function () {
91
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
91
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
92
92
  await handleCookiesConsent();
93
93
  });
94
94
 
@@ -6,7 +6,7 @@ describe("userInteraction - fill and retry", function () {
6
6
  let actualValue;
7
7
 
8
8
  it("Preparation", async function () {
9
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
9
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
10
10
  await handleCookiesConsent();
11
11
  });
12
12
 
@@ -37,7 +37,7 @@ describe("userInteraction - fillAndRetry element with invalid selector", functio
37
37
  let value;
38
38
 
39
39
  it("Preparation", async function () {
40
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
40
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
41
41
  await handleCookiesConsent();
42
42
  });
43
43
 
@@ -64,7 +64,7 @@ describe("userInteraction - fillAndRetry element with number", function () {
64
64
  let actualValue;
65
65
 
66
66
  it("Preparation", async function () {
67
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
67
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
68
68
  await handleCookiesConsent();
69
69
  });
70
70
 
@@ -95,7 +95,7 @@ describe("userInteraction - fillAndRetry element with empty value", function ()
95
95
  let actualValue;
96
96
 
97
97
  it("Preparation", async function () {
98
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
98
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
99
99
  await handleCookiesConsent();
100
100
  });
101
101
 
@@ -50,7 +50,7 @@ describe("userInteraction - rightClick on not displayed element", function () {
50
50
  describe("userInteraction - rightClick on invisible element", function () {
51
51
 
52
52
  it("Preparation", async function () {
53
- await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/category/AC/product/HT-6111");
53
+ await common.navigation.navigateToUrl("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3?sap-ui-theme=sap_fiori_3#/category/AC/product/HT-6111");
54
54
  await handleCookiesConsent();
55
55
  });
56
56
 
@@ -6,7 +6,7 @@ const {
6
6
  describe("element - scrollToElement", function () {
7
7
 
8
8
  it("Preparation", async function () {
9
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
9
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
10
10
  });
11
11
 
12
12
  it("Execution & Verification", async function () {
@@ -67,7 +67,7 @@ describe("element - scrollToElement outside of viewpoint", function () {
67
67
  describe("element - scrollToElement and catch error", function () {
68
68
 
69
69
  it("Preparation", async function () {
70
- await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html");
70
+ await browser.navigateTo("https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3");
71
71
  });
72
72
 
73
73
  it("Execution & Verification", async function () {
@@ -3,10 +3,10 @@ const merge = require("deepmerge");
3
3
  const profile = require("../../../helper/configurations/chrome.headless.conf");
4
4
 
5
5
  exports.config = merge(profile.config, {
6
- maxInstances: 6,
6
+ maxInstances: 5,
7
7
  specFileRetries: 2,
8
8
 
9
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
9
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
10
10
 
11
11
  specs: [
12
12
  path.resolve(__dirname, "clear.spec.js"),
@@ -10,7 +10,7 @@ exports.config = merge(profile.config, {
10
10
  maxInstances: 2, // note: for the SAP account, only 5 parallel instances is a max value
11
11
 
12
12
  bail: 1,
13
- baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html",
13
+ baseUrl: "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3",
14
14
 
15
15
  specs: [
16
16
  path.resolve(__dirname, "clear.spec.js"),
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  describe("browser - getCurrentWindow", function () {
4
- const sapWindowUrl = "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories";
4
+ const sapWindowUrl = "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
5
5
  let sapWindowHandleNative;
6
6
  let sapWindowHandleCustom;
7
7
 
@@ -20,7 +20,7 @@ describe("browser - getCurrentWindow", function () {
20
20
  });
21
21
 
22
22
  describe("browser - getCurrentWindow (unhappy case)", function () {
23
- const sapWindowUrl = "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories";
23
+ const sapWindowUrl = "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
24
24
  let sapWindowHandleCustom;
25
25
 
26
26
  const wdioWindowUrl = "https://webdriver.io/";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  describe("browser - switchToWindow", function () {
4
- const sapWindowUrl = "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories";
4
+ const sapWindowUrl = "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
5
5
  let sapWindowHandle;
6
6
  const wdioWindowUrl = "https://webdriver.io/";
7
7
  let wdioWindowHandle;
@@ -40,7 +40,7 @@ describe("browser - switchToWindow", function () {
40
40
  });
41
41
 
42
42
  describe("browser - switchToWindow (unhappy case)", function () {
43
- const sapWindowUrl = "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html#/categories";
43
+ const sapWindowUrl = "https://sapui5.hana.ondemand.com/1.99.0/test-resources/sap/m/demokit/cart/webapp/index.html?sap-ui-theme=sap_fiori_3#/categories";
44
44
 
45
45
  it("Preparation", async function () {
46
46
  await common.navigation.navigateToUrl(sapWindowUrl);
@@ -0,0 +1,14 @@
1
+ const path = require("path");
2
+ describe("file - expectTextDataToContain - Expect the passed .txt file to contain a certain value", function () {
3
+ it("Preperation & Execution & Verification", async function () {
4
+ const pathToFile = path.resolve(__dirname, "./testFiles/test3.txt");
5
+ await util.file.expectTextDataToContain(pathToFile, "10001079QV4PU6C0G");
6
+ });
7
+ });
8
+
9
+ describe("file - expectTextDataToContain - Expect the passed .txt file to not contain a certain value", function () {
10
+ it("Preperation & Execution & Verification", async function () {
11
+ const pathToFile = path.resolve(__dirname, "./testFiles/test3.txt");
12
+ await expect(util.file.expectTextDataToContain(pathToFile, "STREET 000")).rejects.toThrowError(/Function 'expectTextDataToContain' failed: Search String not included in .txt file./);
13
+ });
14
+ });
@@ -0,0 +1,37 @@
1
+ const assert = require("assert");
2
+ const path = require("path");
3
+
4
+ describe("file - getAttributeValuesFromJson - Retrieve the Attribute from JSON file", function () {
5
+ let value;
6
+ let jsonFile;
7
+
8
+ it("Preperation", async function () {
9
+ const pathToFile = path.resolve(__dirname, "./testFiles/test1.json");
10
+ jsonFile = require(pathToFile);
11
+ });
12
+
13
+ it("Execution & Verification - 'IBAN' - get multiple results", async () => {
14
+ value = util.file.getAttributeValuesFromJson(jsonFile, "IBAN");
15
+ common.assertion.expectEqual(["AT925500011700006258" ,"AT816000000007654321"], value);
16
+ });
17
+
18
+ it("Execution & Verification - 'AdrLine'", async () => {
19
+ value = util.file.getAttributeValuesFromJson(jsonFile, "AdrLine");
20
+ common.assertion.expectEqual(["Lassallestrasse 1", "1234 Wien"], value);
21
+ });
22
+ });
23
+
24
+ describe("file - getAttributeValuesFromJson - Search for not existing value", function () {
25
+ let value;
26
+ let jsonFile;
27
+
28
+ it("Preperation", async function () {
29
+ const pathToFile = path.resolve(__dirname, "./testFiles/test1.json");
30
+ jsonFile = require(pathToFile);
31
+ });
32
+
33
+ it("Execution & Verification - 'valueNotInJson' - should return null", async () => {
34
+ value = util.file.getAttributeValuesFromJson(jsonFile, "valueNotInJson");
35
+ common.assertion.expectEqual([], value);
36
+ });
37
+ });