forked from appium/appium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request appium#2670 from sebv/master
CI: build id + expected fails + grouped selendroid and gappium
- Loading branch information
Showing
15 changed files
with
126 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
test/functional/selendroid/app-act-fully-qualified-specs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"use strict"; | ||
|
||
require('../../helpers/setup-chai'); | ||
|
||
var env = require('../../helpers/env') | ||
, initSession = require('../../helpers/session').initSession | ||
, _ = require('underscore') | ||
, desired = require('./desired'); | ||
|
||
describe('app activities - fully qualified', function () { | ||
this.timeout(env.MOCHA_INIT_TIMEOUT); | ||
var session; | ||
var name = this.parent.title + " " + this.title; | ||
|
||
afterEach(function (done) { | ||
session | ||
.tearDown(this.currentTest.state === 'passed') | ||
.nodeify(done); | ||
}); | ||
|
||
it('should still launch app', function (done) { | ||
var newDesired = _.defaults({'appActivity': 'com.example.android.apis.ApiDemos'}, desired); | ||
session = initSession(newDesired); | ||
session.setUp(name) | ||
.nodeify(done); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"use strict"; | ||
|
||
require('../../helpers/setup-chai'); | ||
|
||
var env = require('../../helpers/env') | ||
, initSession = require('../../helpers/session').initSession | ||
, _ = require('underscore') | ||
, desired = require('./desired') | ||
, attachToSession = require('../../helpers/session').attachToSession; | ||
|
||
describe('app activities - with no dot', function () { | ||
this.timeout(env.MOCHA_INIT_TIMEOUT); | ||
var session; | ||
var name = this.parent.title + " " + this.title; | ||
it('should not launch app', function (done) { | ||
var newDesired = _.defaults({'appActivity': 'ApiDemos'}, desired); | ||
session = initSession(newDesired, {'no-retry': true, 'expect-error': true}); | ||
session | ||
.setUp(name) | ||
.catch(function (err) { | ||
err.should.exist; | ||
if (env.SAUCE) { | ||
// getting session id from error and greening job | ||
var sessionId = null; | ||
try { | ||
var errorData = JSON.parse(err.data); | ||
sessionId = errorData.sessionId; | ||
} catch (ign) {} | ||
sessionId.should.exist; | ||
var driver = attachToSession(sessionId); | ||
return driver.sauceJobStatus(true); | ||
} | ||
}) | ||
.nodeify(done); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters