froth-webdriverio-framework 3.0.143 → 3.0.145
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const { LocalStorage } = require('node-localstorage');
|
|
3
3
|
global.BUFFER = new LocalStorage('./storage');
|
|
4
|
+
global.suite_info = null;
|
|
4
5
|
const setAllDetails = require("./setallDatailinBuffer")
|
|
5
6
|
const exeDetails = require("../froth_api_calls/getexecutionDetails")
|
|
6
7
|
const getBSSessionDetails = require("../froth_api_calls/browsersatckSessionInfo").getBSSessionDetails;
|
|
@@ -14,7 +15,6 @@ const resultdetails = {
|
|
|
14
15
|
excution_status: 'SKIPPED', // Pass/Fail
|
|
15
16
|
excution_time: 0, // Execution time in milliseconds
|
|
16
17
|
};
|
|
17
|
-
//let suite_info = null;
|
|
18
18
|
// Description: This file contains the common configuration for the webdriverio framework.
|
|
19
19
|
const commonconfig = {
|
|
20
20
|
|
|
@@ -28,8 +28,8 @@ const commonconfig = {
|
|
|
28
28
|
await setAllDetails.setExecutionDetails();
|
|
29
29
|
|
|
30
30
|
// await setAllDetails.setIntegrationsDetails();
|
|
31
|
-
|
|
32
|
-
console.log("First Log - suite_info:", JSON.stringify(
|
|
31
|
+
await setAllDetails.setSuiteDetails();
|
|
32
|
+
console.log("First Log - suite_info:", JSON.stringify(process.env.FROTHSSCRIPT_DETAILS));
|
|
33
33
|
console.log("Type:", typeof suite_info); // Check if it's object, undefined, or something else
|
|
34
34
|
await setAllDetails.setTestDataDetails();
|
|
35
35
|
console.log("on prepare:", JSON.stringify(capabilities))
|
|
@@ -46,7 +46,7 @@ const commonconfig = {
|
|
|
46
46
|
try {
|
|
47
47
|
console.log('==== BEFORE SESSION HOOK ====');
|
|
48
48
|
// Perform any setup or pre-test actions here
|
|
49
|
-
console.log("DEBUG: Checking global.suite_info in beforeSession", JSON.stringify(
|
|
49
|
+
console.log("DEBUG: Checking global.suite_info in beforeSession", JSON.stringify(process.env.FROTHSSCRIPT_DETAILS));
|
|
50
50
|
|
|
51
51
|
console.log("specdat:", specs);
|
|
52
52
|
console.log("length:", specs.length);
|
|
@@ -77,7 +77,9 @@ async function setSuiteDetails() {
|
|
|
77
77
|
try {
|
|
78
78
|
const getSuiteDetail = await getSuiteDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), process.env.AUTOMATION_SUITE_ID);
|
|
79
79
|
// process.env.BROWSERSTACK_APP_PATH = getSuiteDetail.browser_stack_urls;
|
|
80
|
-
|
|
80
|
+
process.env.FROTHSSCRIPT_DETAILS=getSuiteDetail.script_details;
|
|
81
|
+
console.log("Suite Details:", JSON.stringify(FROTHSSCRIPT_DETAILS));
|
|
82
|
+
|
|
81
83
|
process.env.TESTDATA_ID = getSuiteDetail.test_data_id;
|
|
82
84
|
return getSuiteDetail;
|
|
83
85
|
|