froth-webdriverio-framework 7.0.98 → 7.0.99
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/froth_configs/commonhook.js +10 -8
- package/package.json +1 -1
|
@@ -173,7 +173,7 @@ const commonHooks = {
|
|
|
173
173
|
script = suiteDetails.find(s => s.scriptName === filePath.replace('.js', ''));
|
|
174
174
|
console.log("Script Details:", script);
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
|
|
177
177
|
} catch (err) {
|
|
178
178
|
const { line, column } = await extractLineColumn(err);
|
|
179
179
|
|
|
@@ -186,15 +186,17 @@ const commonHooks = {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
if (syntaxFailed) {
|
|
189
|
-
|
|
189
|
+
|
|
190
190
|
await exeDetails.updateScriptExecutionStatus(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
191
|
+
BUFFER.getItem('ORGANISATION_DOMAIN_URL'),
|
|
192
|
+
BUFFER.getItem('FROTH_LOGIN_TOKEN'),
|
|
193
|
+
script.scriptId,
|
|
194
|
+
script.platform.toLowerCase(),
|
|
195
|
+
"FAILED"
|
|
196
|
+
);
|
|
197
|
+
await failExecution('Syntax validation failed');
|
|
197
198
|
}
|
|
199
|
+
|
|
198
200
|
/** 2️⃣ BrowserStack capability normalization */
|
|
199
201
|
|
|
200
202
|
if (process.env.PLATFORM === 'browserstack' || process.env.PLATFORM === 'browserstacklocal') {
|