froth-webdriverio-framework 4.0.59 → 4.0.60
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.
|
@@ -7,8 +7,16 @@ console.log('=====wdios common config===== ');
|
|
|
7
7
|
|
|
8
8
|
// Select platform at runtime
|
|
9
9
|
const PLATFORM = process.env.PLATFORM || 'browserstack';
|
|
10
|
-
const configFile = process.env.YML_NAME || '../ymls/browserstack/android/android_caps.yml';
|
|
11
10
|
console.log('====>PLATFORM:', PLATFORM);
|
|
11
|
+
|
|
12
|
+
const configFile = process.env.YML_NAME ;
|
|
13
|
+
|
|
14
|
+
const resultdetails = {
|
|
15
|
+
comments: [],
|
|
16
|
+
excution_status: null, // Pass/Fail
|
|
17
|
+
excution_time: null, // Execution time in milliseconds
|
|
18
|
+
};
|
|
19
|
+
|
|
12
20
|
// Load YAML file
|
|
13
21
|
//const capabilities = yaml.load(fs.readFileSync(path.join(path.resolve(process.cwd(), configFile)), 'utf8'));
|
|
14
22
|
|
|
@@ -20,6 +28,7 @@ try {
|
|
|
20
28
|
const errorMsg = `The capability file does not exist in the currently configured repository at path: ${path.resolve(process.cwd(), configFile)}: ${e.message},Please update the Capability by editing the file`;
|
|
21
29
|
console.error(errorMsg);
|
|
22
30
|
resultdetails.comments.push(errorMsg);
|
|
31
|
+
resultdetails.excution_status = 'FAIL';
|
|
23
32
|
|
|
24
33
|
try {
|
|
25
34
|
exeDetails.updateExecuitonDetails(
|
|
@@ -48,6 +57,7 @@ if (!SUITE_FILE || !fs.existsSync(SUITE_FILE)) {
|
|
|
48
57
|
|
|
49
58
|
console.error(errorMsg);
|
|
50
59
|
resultdetails.comments.push(errorMsg);
|
|
60
|
+
resultdetails.excution_status = 'FAIL';
|
|
51
61
|
|
|
52
62
|
// Fire API call in background (non-blocking)
|
|
53
63
|
|