Appium tests: tweaking some timeouts and default screenshot path
This commit is contained in:
parent
c5f5a46e3e
commit
1348d2e138
@ -588,5 +588,5 @@ describe('Camera tests Android.', function () {
|
|||||||
|
|
||||||
it('camera.ui.util Destroy the session', function (done) {
|
it('camera.ui.util Destroy the session', function (done) {
|
||||||
return driver.quit(done);
|
return driver.quit(done);
|
||||||
}, 10000);
|
}, MINUTE);
|
||||||
});
|
});
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var screenshotPath = global.SCREENSHOT_PATH || path.join(__dirname, '../../appium_screenshots/');
|
var screenshotPath = global.SCREENSHOT_PATH || path.join(__dirname, '../../../appium_screenshots/');
|
||||||
|
|
||||||
function generateScreenshotName() {
|
function generateScreenshotName() {
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
@ -51,7 +51,7 @@ module.exports.saveScreenshot = function (driver) {
|
|||||||
oldContext = cc;
|
oldContext = cc;
|
||||||
})
|
})
|
||||||
.context('NATIVE_APP')
|
.context('NATIVE_APP')
|
||||||
.saveScreenshot(screenshotPath + generateScreenshotName())
|
.saveScreenshot(path.join(screenshotPath, generateScreenshotName()))
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return driver.context(oldContext);
|
return driver.context(oldContext);
|
||||||
});
|
});
|
||||||
|
@ -284,5 +284,5 @@ describe('Camera tests iOS.', function () {
|
|||||||
|
|
||||||
it('camera.ui.util.4 Destroy the session', function (done) {
|
it('camera.ui.util.4 Destroy the session', function (done) {
|
||||||
driver.quit(done);
|
driver.quit(done);
|
||||||
}, 10000);
|
}, MINUTE);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user