froth-webdriverio-framework 3.0.151 → 3.0.152
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.
|
@@ -64,7 +64,7 @@ const commonconfig = {
|
|
|
64
64
|
|
|
65
65
|
console.log(`Running tests on after app,bslocal,mediafiles: ${JSON.stringify(capabilities)}`);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
|
|
68
68
|
} catch (error) {
|
|
69
69
|
console.error('🚨 Error in beforeSession:', error);
|
|
70
70
|
console.error('🚨 Error in beforeSession:', error.message);
|
|
@@ -152,8 +152,9 @@ const commonconfig = {
|
|
|
152
152
|
|
|
153
153
|
// scriptresult = "FAILED"
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
console.log("Script Details
|
|
155
|
+
const scriptDetails = BUFFER.getItem("FROTHE_SUITE_DETAILS");
|
|
156
|
+
console.log("Script Details in After Hook:", JSON.stringify(scriptDetails, null, 2));
|
|
157
|
+
const jwtScript = scriptDetails.find(s => s.scriptName === fileName.replace(".js", ""));
|
|
157
158
|
|
|
158
159
|
console.log("jwtScript:", jwtScript);
|
|
159
160
|
if (jwtScript) {
|
|
@@ -79,7 +79,8 @@ async function setSuiteDetails() {
|
|
|
79
79
|
// process.env.BROWSERSTACK_APP_PATH = getSuiteDetail.browser_stack_urls;
|
|
80
80
|
BUFFER.setItem("FROTHE_SUITE_DETAILS",getSuiteDetail.script_details)
|
|
81
81
|
console.log("Script Details:", JSON.stringify(getSuiteDetail.script_details, null, 2));
|
|
82
|
-
|
|
82
|
+
const scriptDetails = BUFFER.getItem("FROTHE_SUITE_DETAILS");
|
|
83
|
+
console.log("Script Details in After Hook:", JSON.stringify(scriptDetails, null, 2));
|
|
83
84
|
|
|
84
85
|
process.env.TESTDATA_ID = getSuiteDetail.test_data_id;
|
|
85
86
|
return getSuiteDetail;
|