Skip to content

Commit c1f9f1e

Browse files
committed
update browserstack config for android and iOS testing
1 parent e0f8b7b commit c1f9f1e

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

test/cross-browser-testing/browserstack.karma.android.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ module.exports = function(config) {
118118
username: process.env.BS_USERNAME,
119119
accessKey: process.env.BS_ACCESS_KEY,
120120
local: true,
121+
idleTimeout: 300,
121122
},
122123
autoWatch: false,
123124
customLaunchers,
@@ -140,8 +141,11 @@ module.exports = function(config) {
140141
outputDir: 'reports/',
141142
outputFile: 'test-karma-mobile.xml',
142143
},
143-
browserDisconnectTimeout: 50000,
144+
captureTimeout: 240000,
145+
browserNoActivityTimeout: 240000,
146+
browserDisconnectTimeout: 120000,
144147
browserDisconnectTolerance: 5,
145-
concurrency: 5,
148+
concurrency: 2,
149+
retryLimit: 2,
146150
});
147151
};

test/cross-browser-testing/browserstack.karma.config.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ module.exports = function(config) {
7070
config.set({
7171
browserStack: {
7272
username: process.env.BS_USERNAME,
73-
accessKey: process.env.BS_ACCESS_KEY
73+
accessKey: process.env.BS_ACCESS_KEY,
74+
idleTimeout: 300,
7475
},
7576
autoWatch: false,
7677
customLaunchers,
@@ -90,11 +91,11 @@ module.exports = function(config) {
9091
outputDir: 'reports/',
9192
outputFile: 'test-karma.xml',
9293
},
93-
// These settings are added because the connection to Browserstack
94-
// can sometimes be unstable, requiring re-connections, or a longer than
95-
// 2000 ms (default) timeout
96-
browserDisconnectTimeout: 50000,
97-
browserDisconnectTolerance: 5,
98-
concurrency: 5,
94+
captureTimeout: 180000,
95+
browserNoActivityTimeout: 180000,
96+
browserDisconnectTimeout: 120000,
97+
browserDisconnectTolerance: 1,
98+
concurrency: 2,
99+
retryLimit: 2,
99100
});
100101
};

0 commit comments

Comments
 (0)