@sap_oss/wdio-qmate-service 2.13.0 → 2.13.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.
- package/docs/doc.md +140 -7
- package/docs/index.md +1 -1
- package/docs/sections/bestPractices/authentication.md +2 -2
- package/docs/sections/bestPractices/dataHandling.md +1 -1
- package/docs/sections/contact.md +1 -1
- package/docs/sections/features/config.md +1 -1
- package/docs/sections/features/dataHandling.md +2 -2
- package/docs/sections/features/selectors.md +10 -10
- package/docs/sections/gettingStarted/config.md +1 -1
- package/docs/sections/gettingStarted/setup.md +2 -2
- package/docs/sections/support/bugReporting.md +4 -4
- package/docs/sections/support/troubleshooting.md +1 -1
- package/lib/index.js.map +1 -1
- package/lib/reuse/helper/elementResolving.d.ts +1 -0
- package/lib/reuse/helper/elementResolving.js +12 -0
- package/lib/reuse/helper/elementResolving.js.map +1 -1
- package/lib/reuse/index.js +2 -1
- package/lib/reuse/index.js.map +1 -1
- package/lib/reuse/modules/flp/userLocks.d.ts +3 -3
- package/lib/reuse/modules/flp/userLocks.js +5 -5
- package/lib/reuse/modules/flp/userLocks.js.map +1 -1
- package/lib/reuse/modules/mobile/device.d.ts +160 -4
- package/lib/reuse/modules/mobile/device.js +367 -13
- package/lib/reuse/modules/mobile/device.js.map +1 -1
- package/lib/reuse/modules/mobile/element.d.ts +44 -25
- package/lib/reuse/modules/mobile/element.js +80 -26
- package/lib/reuse/modules/mobile/element.js.map +1 -1
- package/lib/reuse/modules/mobile/userInteraction.d.ts +73 -7
- package/lib/reuse/modules/mobile/userInteraction.js +159 -23
- package/lib/reuse/modules/mobile/userInteraction.js.map +1 -1
- package/lib/reuse/modules/util/Util.d.ts +2 -0
- package/lib/reuse/modules/util/Util.js +2 -0
- package/lib/reuse/modules/util/Util.js.map +1 -1
- package/lib/reuse/modules/util/userSettings.d.ts +27 -0
- package/lib/reuse/modules/util/userSettings.js +181 -0
- package/lib/reuse/modules/util/userSettings.js.map +1 -0
- package/lib/scripts/hooks/onComplete.js.map +1 -1
- package/lib/scripts/hooks/onPrepare.js +14 -2
- package/lib/scripts/hooks/onPrepare.js.map +1 -1
- package/lib/scripts/stats/createUsage.d.ts +1 -0
- package/lib/scripts/stats/createUsage.js +0 -1
- package/lib/scripts/stats/createUsage.js.map +1 -1
- package/lib/scripts/stats/getUserId.js +0 -1
- package/lib/scripts/stats/getUserId.js.map +1 -1
- package/lib/scripts/stats/stats.d.ts +1 -1
- package/lib/scripts/stats/stats.js +4 -3
- package/lib/scripts/stats/stats.js.map +1 -1
- package/lib/scripts/stats/updateUsage.js +0 -1
- package/lib/scripts/stats/updateUsage.js.map +1 -1
- package/package.json +1 -1
- package/test/reuse/flp/userLocks/data/data.json +3 -3
- package/test/reuse/flp/userLocks/deleteExistingLockEntries.spec.js +18 -0
- package/test/reuse/flp/userLocks/getNumberOfLockEntries.spec.js +1 -0
- package/test/reuse/util/userSettings/data/data.json +6 -0
- package/test/reuse/util/userSettings/getDateFormatFromUserSettings.spec.js +21 -0
- package/test/reuse/util/userSettings/getLanguageFromUserSettings.spec.js +15 -0
- package/test/reuse/util/userSettings/getTimeFormatFromUserSettings.spec.js +17 -0
- package/test/reuse/util/userSettings/getTimeZoneFromUserSettings.spec.js +16 -0
- package/test/reuse/util/userSettings/setDateFormatFromUserSettings.spec.js +33 -0
- package/test/reuse/util/userSettings/setLanguageFromUserSettings.spec.js +16 -0
- package/test/reuse/util/userSettings/setNumberFormatFromUserSettings.spec.js +16 -0
- package/test/reuse/util/userSettings/setS4UserSettings.spec.js +37 -0
- package/test/reuse/util/userSettings/setTimeFormatFromUserSettings.spec.js +17 -0
- package/test/reuse/util/userSettings/setTimeZoneFromUserSettings.spec.js +16 -0
- package/test/reuse/util/userSettings/test.userSettings.apply.conf.js +16 -0
- package/test/reuse/util/userSettings/test.userSettings.conf.js +24 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const data = require("./data/data.json");
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
describe("userSettings", function () {
|
|
5
|
+
describe("setNumberFormatFromUserSettings.spec", function () {
|
|
6
|
+
|
|
7
|
+
it("Preparation: Set systemUrl ", async function () {
|
|
8
|
+
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it("Execution", async function () {
|
|
12
|
+
await util.userSettings.setNumberFormatFromUserSettings(util.data.decrypt(data.username), util.data.decrypt(data.password));
|
|
13
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_NUMBER_FORMAT); //Output: 1,234,567.89
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const data = require("./data/data.json");
|
|
2
|
+
|
|
3
|
+
describe("userSettings", function () {
|
|
4
|
+
describe("setS4UserSettings.spec - apply all s4 user settings", function () {
|
|
5
|
+
|
|
6
|
+
it("Preparation: Set systemUrl ", async function () {
|
|
7
|
+
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it("Execution & Verification: Set User Date", async function () {
|
|
11
|
+
await util.userSettings.setS4UserSettings(util.data.decrypt(data.username), util.data.decrypt(data.password));
|
|
12
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_NUMBER_FORMAT);
|
|
13
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_TIME_ZONE);
|
|
14
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_TIME_FORMAT);
|
|
15
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_DATE_FORMAT);
|
|
16
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_LANG_KEY);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
describe("setS4UserSettings.spec - apply all s4 user settings via config<->login", function () {
|
|
20
|
+
it("Preparation: Set systemUrl and baseUrl ", async function () {
|
|
21
|
+
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
22
|
+
browser.config.baseUrl = util.data.decrypt(data.baseUrl);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it("Execution & Verification", async function () {
|
|
26
|
+
await ui5.navigation.navigateToApplication("BusinessUser-maintain");
|
|
27
|
+
await ui5.session.login(util.data.decrypt(data.username), util.data.decrypt(data.password));
|
|
28
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_NUMBER_FORMAT);
|
|
29
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_TIME_ZONE);
|
|
30
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_TIME_FORMAT);
|
|
31
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_DATE_FORMAT);
|
|
32
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_LANG_KEY);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const data = require("./data/data.json");
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
describe("userSettings", function () {
|
|
5
|
+
describe("setTimeFormatFromUserSettings.spec", function () {
|
|
6
|
+
|
|
7
|
+
it("Preparation: Set systemUrl ", async function () {
|
|
8
|
+
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it("Execution & Verification", async function () {
|
|
12
|
+
await util.userSettings.setTimeFormatFromUserSettings(util.data.decrypt(data.username), util.data.decrypt(data.password));
|
|
13
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_TIME_FORMAT); //12 Hour Format
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const data = require("./data/data.json");
|
|
2
|
+
|
|
3
|
+
describe("userSettings", function () {
|
|
4
|
+
describe("setTimeZoneFromUserSettings.spec", function () {
|
|
5
|
+
|
|
6
|
+
it("Preparation: Set systemUrl ", async function () {
|
|
7
|
+
browser.config.params.systemUrl = util.data.decrypt(data.systemUrl);
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it("Execution & Verification", async function () {
|
|
11
|
+
await util.userSettings.setTimeZoneFromUserSettings(util.data.decrypt(data.username), util.data.decrypt(data.password));
|
|
12
|
+
common.assertion.expectDefined(process.env.USER_SETTINGS_TIME_ZONE); //Output: "Europe/Berlin"
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const merge = require("deepmerge");
|
|
3
|
+
const qmateConfiguration = require("../../../helper/configurations/chrome.headless.conf");
|
|
4
|
+
exports.config = merge(qmateConfiguration.config, {
|
|
5
|
+
params: {
|
|
6
|
+
import: {
|
|
7
|
+
data: "./data/"
|
|
8
|
+
},
|
|
9
|
+
applyS4UserSettings: true
|
|
10
|
+
},
|
|
11
|
+
maxInstances: 1,
|
|
12
|
+
|
|
13
|
+
specs: [
|
|
14
|
+
path.resolve(__dirname, "setS4UserSettings.spec.js")
|
|
15
|
+
]
|
|
16
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const merge = require("deepmerge");
|
|
3
|
+
const qmateConfiguration = require("../../../helper/configurations/chrome.headless.conf");
|
|
4
|
+
exports.config = merge(qmateConfiguration.config, {
|
|
5
|
+
params: {
|
|
6
|
+
import: {
|
|
7
|
+
data: "./data/"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
maxInstances: 1,
|
|
11
|
+
|
|
12
|
+
specs: [
|
|
13
|
+
path.resolve(__dirname, "setLanguageFromUserSettings.spec.js"),
|
|
14
|
+
path.resolve(__dirname, "setDateFormatFromUserSettings.spec.js"),
|
|
15
|
+
path.resolve(__dirname, "setTimeFormatFromUserSettings.spec.js"),
|
|
16
|
+
path.resolve(__dirname, "setTimeZoneFromUserSettings.spec.js"),
|
|
17
|
+
path.resolve(__dirname, "setNumberFormatFromUserSettings.spec.js"),
|
|
18
|
+
path.resolve(__dirname, "getLanguageFromUserSettings.spec.js"),
|
|
19
|
+
path.resolve(__dirname, "getDateFormatFromUserSettings.spec.js"),
|
|
20
|
+
path.resolve(__dirname, "getTimeFormatFromUserSettings.spec.js"),
|
|
21
|
+
path.resolve(__dirname, "getTimeZoneFromUserSettings.spec.js"),
|
|
22
|
+
path.resolve(__dirname, "getNumberFormatFromUserSettings.spec.js")
|
|
23
|
+
]
|
|
24
|
+
});
|