mirror of
https://github.com/appium/appium.git
synced 2026-05-02 08:19:52 -05:00
send UDID to instruments; it's optional; it's UDID, not UUID
This commit is contained in:
+5
-5
@@ -4,9 +4,9 @@ var routing = require('./routing')
|
||||
, path = require('path')
|
||||
, instruments = require('../instruments/instruments');
|
||||
|
||||
var Appium = function(app, uuid, verbose) {
|
||||
var Appium = function(app, udid, verbose) {
|
||||
this.app = app;
|
||||
this.uuid = uuid;
|
||||
this.udid = udid;
|
||||
this.verbose = verbose;
|
||||
this.instruments = null;
|
||||
this.rest = null;
|
||||
@@ -35,7 +35,7 @@ Appium.prototype.start = function(cb) {
|
||||
this.instruments = instruments(
|
||||
this.rest
|
||||
, path.resolve(__dirname, '../' + this.app)
|
||||
, null
|
||||
, this.udid
|
||||
, path.resolve(__dirname, 'uiauto/bootstrap.js')
|
||||
, path.resolve(__dirname, 'uiauto/Automation.tracetemplate')
|
||||
);
|
||||
@@ -114,6 +114,6 @@ Appium.prototype.push = function(elem) {
|
||||
next();
|
||||
};
|
||||
|
||||
module.exports = function(app, uuid, version) {
|
||||
return new Appium(app, uuid, version);
|
||||
module.exports = function(app, udid, version) {
|
||||
return new Appium(app, udid, version);
|
||||
};
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = function() {
|
||||
|
||||
parser.addArgument([ '-V', '--verbose' ], { required: false, help: 'verbose mode' });
|
||||
parser.addArgument([ '-U', '--UDID' ]
|
||||
, { required: true, help: 'unique device identifier of the SUT'
|
||||
, { required: false, help: 'unique device identifier of the SUT'
|
||||
});
|
||||
|
||||
parser.addArgument([ '-a', '--address' ]
|
||||
|
||||
Reference in New Issue
Block a user