froth-webdriverio-framework 6.0.26 → 6.0.29
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/baseconfig.js +34 -0
- package/froth_configs/wdio.common.conf.js +40 -15
- package/froth_configs/wdio.common.conf_Samplegit.js +35 -0
- package/log/key-metrics.json +140 -0
- package/log/sdk-cli-debug.log +426 -0
- package/log/sdk-cli.log +825 -0
- package/log/sdk-debug-utility.log +0 -0
- package/package.json +3 -5
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
|
|
3
|
+
const SUITE_FILE = path.resolve(process.cwd(), process.env.SUITE);
|
|
4
|
+
console.log('====>SUITE_FILE:', SUITE_FILE);
|
|
5
|
+
|
|
6
|
+
exports.config = {
|
|
7
|
+
user: process.env.BROWSERSTACK_USERNAME || 'naveen_OSt3Pw',
|
|
8
|
+
key: process.env.BROWSERSTACK_ACCESS_KEY || Buffer.from('QjlSeDI4TVRLRnpSSjJRRVZLMWM=', 'base64').toString('utf-8'),
|
|
9
|
+
|
|
10
|
+
updateJob: false,
|
|
11
|
+
specs: require(SUITE_FILE).tests,
|
|
12
|
+
exclude: [],
|
|
13
|
+
|
|
14
|
+
logLevel: 'warn',
|
|
15
|
+
coloredLogs: true,
|
|
16
|
+
screenshotPath: './errorShots/',
|
|
17
|
+
baseUrl: '',
|
|
18
|
+
waitforTimeout: 10000,
|
|
19
|
+
connectionRetryTimeout: 120000,
|
|
20
|
+
connectionRetryCount: 3,
|
|
21
|
+
hostname: 'hub.browserstack.com',
|
|
22
|
+
services: [['browserstack']],
|
|
23
|
+
|
|
24
|
+
// before: function () {
|
|
25
|
+
// var chai = require('chai');
|
|
26
|
+
// global.expect = chai.expect;
|
|
27
|
+
// chai.Should();
|
|
28
|
+
// },
|
|
29
|
+
framework: 'mocha',
|
|
30
|
+
mochaOpts: {
|
|
31
|
+
ui: 'bdd',
|
|
32
|
+
timeout: 60000,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -104,28 +104,53 @@ exports.config = deepmerge(commonconfig,
|
|
|
104
104
|
user: process.env.BROWSERSTACK_USERNAME,
|
|
105
105
|
key: process.env.BROWSERSTACK_ACCESS_KEY,
|
|
106
106
|
// debug: true,
|
|
107
|
-
//
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
// services: PLATFORM === 'browserstack'
|
|
108
|
+
// ? ['browserstack']
|
|
109
|
+
// : PLATFORM === 'saucelabs'
|
|
110
|
+
// ? ['sauce']
|
|
111
|
+
// : [],
|
|
112
|
+
|
|
113
|
+
services: [
|
|
114
|
+
[
|
|
115
|
+
'browserstack',
|
|
116
|
+
{
|
|
117
|
+
buildIdentifier: '${BUILD_NUMBER}',
|
|
118
|
+
browserstackLocal: false,
|
|
119
|
+
opts: { forcelocal: false, localIdentifier: "webdriverio-appium-app-browserstack-android-repo" },
|
|
120
|
+
app: 'bs://0bfd506ea937c227cf29d0d5ef55f2520a8f7a29' || '/Users/subhrasubudhi/WORKSPACES/WEBDRIVERIO/SAMPLE_BS_LOCAL_PROJECT/android/examples/LocalSample.apk'
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
],
|
|
113
124
|
|
|
114
125
|
//runner: 'local',
|
|
115
126
|
specs: require(SUITE_FILE).tests,
|
|
116
127
|
|
|
117
128
|
maxInstances: 1,
|
|
118
|
-
//
|
|
129
|
+
// capabilities: [capabilities],
|
|
130
|
+
// capabilities: [{
|
|
131
|
+
// // capabilities for local Appium web tests on an Android Emulator
|
|
132
|
+
// platformName: 'Android',
|
|
133
|
+
// browserName: 'Chrome',
|
|
134
|
+
// 'appium:app': 'bs://30fdf3a163d0bad126f64a3d5713e9ab0086a41e',
|
|
135
|
+
// 'appium:deviceName': 'Samsung Galaxy S22 Ultra',
|
|
136
|
+
// 'appium:platformVersion': '12.0',
|
|
137
|
+
// 'appium:automationName': 'UiAutomator2'
|
|
138
|
+
// }],
|
|
139
|
+
|
|
119
140
|
capabilities: [{
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
141
|
+
'bstack:options': {
|
|
142
|
+
projectName: "BrowserStack Samples",
|
|
143
|
+
buildName: 'browserstack build',
|
|
144
|
+
sessionName: 'BStack local webdriverio-appium',
|
|
145
|
+
deviceName: 'Samsung Galaxy S22 Ultra',
|
|
146
|
+
osVersion: "12.0",
|
|
147
|
+
debug: true,
|
|
148
|
+
networkLogs: true,
|
|
149
|
+
source: 'webdriverio:appium-sample-sdk:v1.0',
|
|
150
|
+
interactiveDebugging: true,
|
|
151
|
+
'appium:autoWebview': false
|
|
152
|
+
}
|
|
127
153
|
}],
|
|
128
|
-
|
|
129
154
|
logLevel: 'info',
|
|
130
155
|
coloredLogs: true,
|
|
131
156
|
screenshotPath: './errorShots/',
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const { config: baseConfig } = require('./baseconfig.js');
|
|
2
|
+
|
|
3
|
+
const parallelConfig = {
|
|
4
|
+
maxInstances: 10,
|
|
5
|
+
commonCapabilities: {
|
|
6
|
+
'bstack:options': {
|
|
7
|
+
buildName: 'browserstack build',
|
|
8
|
+
source: 'webdriverio:sample-master:v1.2'
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
services: [
|
|
12
|
+
[
|
|
13
|
+
'browserstack',
|
|
14
|
+
{ buildIdentifier: '#${BUILD_NUMBER}' },
|
|
15
|
+
],
|
|
16
|
+
],
|
|
17
|
+
capabilities: [
|
|
18
|
+
{
|
|
19
|
+
browserName: 'chrome',
|
|
20
|
+
browserVersion: 'latest',
|
|
21
|
+
'bstack:options': {
|
|
22
|
+
os: 'Windows',
|
|
23
|
+
osVersion: '10',
|
|
24
|
+
},
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.config = { ...baseConfig, ...parallelConfig };
|
|
30
|
+
|
|
31
|
+
// Code to support common capabilities
|
|
32
|
+
exports.config.capabilities.forEach(function (caps) {
|
|
33
|
+
for (var i in exports.config.commonCapabilities)
|
|
34
|
+
caps[i] = { ...caps[i], ...exports.config.commonCapabilities[i]};
|
|
35
|
+
});
|
package/log/key-metrics.json
CHANGED
|
@@ -678,5 +678,145 @@
|
|
|
678
678
|
"success": true,
|
|
679
679
|
"failure": null,
|
|
680
680
|
"worker": 6559
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "sdk:testhub",
|
|
684
|
+
"entryType": "measure",
|
|
685
|
+
"startTime": 652.0609179735184,
|
|
686
|
+
"duration": 1195.767060995102,
|
|
687
|
+
"detail": null,
|
|
688
|
+
"success": true,
|
|
689
|
+
"failure": null,
|
|
690
|
+
"worker": 53995
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "sdk:percy",
|
|
694
|
+
"entryType": "measure",
|
|
695
|
+
"startTime": 1853.463542997837,
|
|
696
|
+
"duration": 0.6448469758033752,
|
|
697
|
+
"detail": null,
|
|
698
|
+
"success": true,
|
|
699
|
+
"failure": null,
|
|
700
|
+
"worker": 53995
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"name": "sdk:automate:local",
|
|
704
|
+
"entryType": "measure",
|
|
705
|
+
"startTime": 1854.539654970169,
|
|
706
|
+
"duration": 0.46737104654312134,
|
|
707
|
+
"detail": null,
|
|
708
|
+
"success": true,
|
|
709
|
+
"failure": null,
|
|
710
|
+
"worker": 53995
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"name": "sdk:automate:hub-management",
|
|
714
|
+
"entryType": "measure",
|
|
715
|
+
"startTime": 4898.535274982452,
|
|
716
|
+
"duration": 2415.7501670122147,
|
|
717
|
+
"detail": null,
|
|
718
|
+
"success": true,
|
|
719
|
+
"failure": null,
|
|
720
|
+
"worker": 53995
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"name": "sdk:automate:print-buildlink",
|
|
724
|
+
"entryType": "measure",
|
|
725
|
+
"startTime": 59351.238147974014,
|
|
726
|
+
"duration": 696.1430749893188,
|
|
727
|
+
"detail": null,
|
|
728
|
+
"success": true,
|
|
729
|
+
"failure": null,
|
|
730
|
+
"worker": 53995
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"name": "sdk:testhub",
|
|
734
|
+
"entryType": "measure",
|
|
735
|
+
"startTime": 591.0196120142937,
|
|
736
|
+
"duration": 736.2066059708595,
|
|
737
|
+
"detail": null,
|
|
738
|
+
"success": true,
|
|
739
|
+
"failure": null,
|
|
740
|
+
"worker": 54754
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"name": "sdk:percy",
|
|
744
|
+
"entryType": "measure",
|
|
745
|
+
"startTime": 1335.217038989067,
|
|
746
|
+
"duration": 1.058184027671814,
|
|
747
|
+
"detail": null,
|
|
748
|
+
"success": true,
|
|
749
|
+
"failure": null,
|
|
750
|
+
"worker": 54754
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"name": "sdk:automate:local",
|
|
754
|
+
"entryType": "measure",
|
|
755
|
+
"startTime": 1339.2144489884377,
|
|
756
|
+
"duration": 0.7757580280303955,
|
|
757
|
+
"detail": null,
|
|
758
|
+
"success": true,
|
|
759
|
+
"failure": null,
|
|
760
|
+
"worker": 54754
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"name": "sdk:automate:hub-management",
|
|
764
|
+
"entryType": "measure",
|
|
765
|
+
"startTime": 4391.944581985474,
|
|
766
|
+
"duration": 2111.0508360266685,
|
|
767
|
+
"detail": null,
|
|
768
|
+
"success": true,
|
|
769
|
+
"failure": null,
|
|
770
|
+
"worker": 54754
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"name": "sdk:automate:print-buildlink",
|
|
774
|
+
"entryType": "measure",
|
|
775
|
+
"startTime": 33875.93326097727,
|
|
776
|
+
"duration": 648.1577300429344,
|
|
777
|
+
"detail": null,
|
|
778
|
+
"success": true,
|
|
779
|
+
"failure": null,
|
|
780
|
+
"worker": 54754
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"name": "sdk:testhub",
|
|
784
|
+
"entryType": "measure",
|
|
785
|
+
"startTime": 714.3458049893379,
|
|
786
|
+
"duration": 1072.4630480408669,
|
|
787
|
+
"detail": null,
|
|
788
|
+
"success": true,
|
|
789
|
+
"failure": null,
|
|
790
|
+
"worker": 83388
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"name": "sdk:percy",
|
|
794
|
+
"entryType": "measure",
|
|
795
|
+
"startTime": 1791.6393840312958,
|
|
796
|
+
"duration": 737.1757879853249,
|
|
797
|
+
"detail": null,
|
|
798
|
+
"success": false,
|
|
799
|
+
"failure": {},
|
|
800
|
+
"worker": 83388
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"name": "sdk:automate:local",
|
|
804
|
+
"entryType": "measure",
|
|
805
|
+
"startTime": 2529.694791018963,
|
|
806
|
+
"duration": 0.2753220200538635,
|
|
807
|
+
"detail": null,
|
|
808
|
+
"success": true,
|
|
809
|
+
"failure": null,
|
|
810
|
+
"worker": 83388
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"name": "sdk:automate:hub-management",
|
|
814
|
+
"entryType": "measure",
|
|
815
|
+
"startTime": 7639.939525008202,
|
|
816
|
+
"duration": 2239.9980480074883,
|
|
817
|
+
"detail": null,
|
|
818
|
+
"success": true,
|
|
819
|
+
"failure": null,
|
|
820
|
+
"worker": 83388
|
|
681
821
|
}
|
|
682
822
|
]
|