froth-webdriverio-framework 1.0.20 → 1.0.22
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/api/readTestdata.js +0 -1
- package/config/android.conf.js +4 -2
- package/config/common.mobile.conf.js +1 -0
- package/config/commonconfig.js +4 -1
- package/config/setallDatailinBuffer.js +2 -15
- package/package.json +10 -11
- package/storage/ADMIN_PASSWORD +0 -1
- package/storage/ADMIN_USER +0 -1
- package/storage/EMAIL +0 -1
- package/storage/PASSWORD +0 -1
package/api/readTestdata.js
CHANGED
package/config/android.conf.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
const deepmerge = require('deepmerge')
|
|
2
2
|
const commonmobileconfig = require('./common.mobile.conf');
|
|
3
|
+
console.log("device name in android:", process.env.DEVICENAME);
|
|
3
4
|
console.log("BUILD_NUMBER:", process.env.BUILD_NUMBER);
|
|
5
|
+
console.log("device name in BROWSERSTACK_APP_PATH:", process.env.BROWSERSTACK_APP_PATH);
|
|
4
6
|
|
|
5
7
|
const androidConfig = deepmerge.all([commonmobileconfig, {
|
|
6
8
|
services: [
|
|
@@ -19,8 +21,8 @@ const androidConfig = deepmerge.all([commonmobileconfig, {
|
|
|
19
21
|
|
|
20
22
|
capabilities: [{
|
|
21
23
|
'bstack:options': {
|
|
22
|
-
deviceName: process.env.DEVICENAME
|
|
23
|
-
platformVersion: process.env.OSVERSION
|
|
24
|
+
deviceName: process.env.DEVICENAME ,
|
|
25
|
+
platformVersion: process.env.OSVERSION ,
|
|
24
26
|
platformName: 'android',
|
|
25
27
|
interactiveDebugging: true
|
|
26
28
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const deepmerge = require('deepmerge')
|
|
2
2
|
const commonconfig = require('./commonconfig');
|
|
3
|
+
console.log("device name in common mobile:", process.env.DEVICENAME);
|
|
3
4
|
|
|
4
5
|
const commonmobconfig = deepmerge.all([commonconfig,{
|
|
5
6
|
user: process.env.BROWSERSTACK_USERNAME || 'naveen_OSt3Pw',
|
package/config/commonconfig.js
CHANGED
|
@@ -3,6 +3,8 @@ const { LocalStorage } = require('node-localstorage');
|
|
|
3
3
|
global.BUFFER = new LocalStorage('./storage');
|
|
4
4
|
|
|
5
5
|
const getBSSessionDetails = require("../api/browsersatckSessionInfo")
|
|
6
|
+
console.log("device name in common :", process.env.DEVICENAME);
|
|
7
|
+
|
|
6
8
|
// Description: This file contains the common configuration for the webdriverio framework.
|
|
7
9
|
const commonconfig = {
|
|
8
10
|
|
|
@@ -17,7 +19,8 @@ const commonconfig = {
|
|
|
17
19
|
await setAllDetails.setIntegrationsDetails();
|
|
18
20
|
await setAllDetails.setSuiteDetails();
|
|
19
21
|
await setAllDetails.setTestDataDetails();
|
|
20
|
-
|
|
22
|
+
console.log("ALL JSON DATA:" + JSON.stringify(BUFFER));
|
|
23
|
+
console.log("ALL JSON DATA in env variable :" + JSON.stringify(process.env));
|
|
21
24
|
},
|
|
22
25
|
|
|
23
26
|
before: function (capabilities, specs) {
|
|
@@ -36,14 +36,12 @@ async function setLoginToken() {
|
|
|
36
36
|
|
|
37
37
|
async function setExecutionDetails() {
|
|
38
38
|
try {
|
|
39
|
-
console.log("setExecutionDetails ")
|
|
40
39
|
const getExeDetails = await exeDetails.getExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("LOGIN_TOKEN"), BUFFER.getItem("EXECUTION_ID"));
|
|
41
40
|
BUFFER.setItem("AUTOMATION_SUITE_ID", getExeDetails.automation_suite_id);
|
|
42
41
|
process.env.DEVICENAME = getExeDetails.device_name
|
|
43
42
|
process.env.OSVERSION = getExeDetails.version
|
|
44
43
|
BUFFER.setItem("DEVICE_NAME", getExeDetails.device_name);
|
|
45
44
|
BUFFER.setItem("VERSION", getExeDetails.version);
|
|
46
|
-
console.log("setExecutionDetails " + BUFFER.stringify)
|
|
47
45
|
|
|
48
46
|
} catch (error) {
|
|
49
47
|
// console.error('Error in main function:', error);
|
|
@@ -52,8 +50,6 @@ async function setExecutionDetails() {
|
|
|
52
50
|
|
|
53
51
|
async function setIntegrationsDetails() {
|
|
54
52
|
try {
|
|
55
|
-
console.log("setIntegrationsDetails ")
|
|
56
|
-
|
|
57
53
|
const getIntegrationDetails = await getintegrationdetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("LOGIN_TOKEN"), BUFFER.getItem("INTEGRATION_ID"));
|
|
58
54
|
if (getIntegrationDetails.product === "BrowserStack") {
|
|
59
55
|
process.env.BROWSERSTACK_USERNAME = getIntegrationDetails.username;
|
|
@@ -69,10 +65,8 @@ async function setSuiteDetails() {
|
|
|
69
65
|
try {
|
|
70
66
|
const getSuiteDetail = await getSuiteDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("LOGIN_TOKEN"), BUFFER.getItem("AUTOMATION_SUITE_ID"));
|
|
71
67
|
process.env.BROWSERSTACK_APP_PATH = getSuiteDetail.browser_stack_urls;
|
|
72
|
-
console.log("BROWSERSTACK_APP_PATH" + process.env.BROWSERSTACK_APP_PATH)
|
|
73
68
|
BUFFER.setItem("TESTDATA_ID", getSuiteDetail.test_data_id);
|
|
74
|
-
|
|
75
|
-
console.log("ALL JSON DATA in env variable :" + JSON.stringify(process.env));
|
|
69
|
+
|
|
76
70
|
|
|
77
71
|
} catch (error) {
|
|
78
72
|
// console.error('Error in main function:', error);
|
|
@@ -80,15 +74,8 @@ async function setSuiteDetails() {
|
|
|
80
74
|
}
|
|
81
75
|
async function setTestDataDetails() {
|
|
82
76
|
try {
|
|
83
|
-
console.log("setTestDataDetails" );
|
|
84
77
|
const jsonobject = await getDataById(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("LOGIN_TOKEN"), BUFFER.getItem("TESTDATA_ID"));
|
|
85
|
-
|
|
86
|
-
// console.log("Test data is not available");
|
|
87
|
-
// }
|
|
88
|
-
// else {
|
|
89
|
-
// BUFFER.setItem("BUFFER", JSON.stringify(jsonobject))
|
|
90
|
-
|
|
91
|
-
// }
|
|
78
|
+
|
|
92
79
|
} catch (error) {
|
|
93
80
|
// console.error('Error in main function:', error);
|
|
94
81
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "froth-webdriverio-framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"readme": "WendriverIO Integration with [BrowserStack]",
|
|
5
5
|
"description": "WebdriverIO and BrowserStack App Automate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,21 +25,20 @@
|
|
|
25
25
|
"appium"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@wdio/appium-service": "^8.
|
|
29
|
-
"@wdio/browserstack-service": "^
|
|
30
|
-
"@wdio/cli": "^
|
|
31
|
-
"@wdio/local-runner": "^
|
|
32
|
-
"@wdio/mocha-framework": "^8.
|
|
33
|
-
"@wdio/spec-reporter": "^8.
|
|
34
|
-
"appium": "^2.
|
|
35
|
-
"appium-uiautomator2-driver": "^
|
|
28
|
+
"@wdio/appium-service": "^8.0.9",
|
|
29
|
+
"@wdio/browserstack-service": "^7.16.4",
|
|
30
|
+
"@wdio/cli": "^7.16.4",
|
|
31
|
+
"@wdio/local-runner": "^7.16.4",
|
|
32
|
+
"@wdio/mocha-framework": "^8.39.0",
|
|
33
|
+
"@wdio/spec-reporter": "^8.39.0",
|
|
34
|
+
"appium": "^2.3.0",
|
|
35
|
+
"appium-uiautomator2-driver": "^2.38.0",
|
|
36
36
|
"browserstack-local": "^1.5.5",
|
|
37
37
|
"deepmerge": "^4.3.1",
|
|
38
38
|
"form-data": "^4.0.0",
|
|
39
39
|
"node-fetch": "^3.3.2",
|
|
40
40
|
"node-localstorage": "^3.0.5",
|
|
41
41
|
"ts-node": "^10.9.2",
|
|
42
|
-
"typescript": "^5.
|
|
42
|
+
"typescript": "^5.5.2"
|
|
43
43
|
}
|
|
44
|
-
|
|
45
44
|
}
|
package/storage/ADMIN_PASSWORD
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
QgCY72/szqZ@(ap&
|
package/storage/ADMIN_USER
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ytladmin
|
package/storage/EMAIL
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0184310814@YES.MY
|
package/storage/PASSWORD
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
password
|