Appium tests: tweaking some timeouts and default screenshot path

This commit is contained in:
Alexander Sorokin 2016-03-10 13:27:34 +03:00
parent c5f5a46e3e
commit 1348d2e138
3 changed files with 4 additions and 4 deletions

View File

@ -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);
}); });

View File

@ -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);
}); });

View File

@ -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);
}); });