Unable to start server using Appium V 1.6.3 and xocde 8.3

Description

  • Attempting to start appium server programatically using AppiumDriverLocalService. As I encountered ‘iDevice Installer issue’ with earlier version (Appium 1.4.13), upgraded appium. Today, Appium GUI still reflects a version 1.5.3 (Ara), it means Appium 1.6.3 was installed via npm.

I even tried to install and uninstall XCUITestDriver and appium , but nothing helped . Below listed are the commands tried from my end.

XCUITestDriver - 2.4.2
cd /usr/local/lib/node_modules/appium
npm install appium-xcuitest-driver

npm unintsall -g appium
npm install -g [email protected]

I also believe that my attempt to uninstall and install items was not successful, since I invested some time in fixing the permission related issues in accessing folder displayed in terminal. Pasted LOGS of it.

Environment

Java 8
Appium GUI version 1.5.3
Appium Version executed and displayed in program 1.6.3
Xcode: 8.3.1
ios : 10.12.4
xcuitest-driver verion : 2.27

Device Tested: 9.4 and 10.2

Details

Environment detailed mentioned above explains the other factors.

  1. Starting iosWebKit debug proxy.
  2. Staring server using Appium DriverLocalService.
    3)Declaring capabilities.
    4)ios Driver instantiated.
    5)Switching to webview …

IT IS WORKING FOR ANDROID BUT NOT FOR iOS.

Code To Reproduce Issue [ Good To Have ]

 public void startWebkitProxy() {

		  
		  String udidOfDevice="3d6ca3548b047d2abc6faae5f86ed477761bbc8f";
		  CommandLine iOSWebkitDebugProxyCommand = new CommandLine("ios_webkit_debug_proxy");
		  iOSWebkitDebugProxyCommand.addArgument("-c");
		  iOSWebkitDebugProxyCommand.addArgument(udidOfDevice+":27753");                       //port number assigned. 
		  iOSWebkitDebugProxyCommand.addArgument("-d");                                        // "-f" to disable the console output in eclipse.

		  DefaultExecuteResultHandler iOSWebkitResultHandler = new DefaultExecuteResultHandler();
		  DefaultExecutor iOSProxyexecutor = new DefaultExecutor(); 
		  iOSProxyexecutor.setExitValue(1);


		  try {
		  iOSProxyexecutor.execute(iOSWebkitDebugProxyCommand, iOSWebkitResultHandler);
		  iOSWebkitResultHandler.toString();
		  Thread.sleep(80000);
		  System.out.println("iOS Webkit debug proxy : Started");
		  } catch (IOException e) {
		  System.out.println("Failed to start iOS Webkit debug Proxy" + iOSWebkitResultHandler.getException() + "and the exception is" + e);
		  e.printStackTrace();//paste the complete trace.
		  } catch (InterruptedException e) {
			  System.out.println("Failed to start iOS Webkit debug Proxy"+ iOSWebkitResultHandler.getException() + "and the exception is" + e);
			  e.printStackTrace();//paste the complete trace.
		  }
	  }
	 
	

 public void appiumServer() {
	 
  System.out.println("Initiating module to start Appium Server for iOS");
  File classPathRoot = new File(System.getProperty("user.dir"));
  String currentOS = System.getProperty("os.name");

//
// if (currentOS.contains(“Windows”))
// {
// service = AppiumDriverLocalService.buildService(new AppiumServiceBuilder()
// .usingDriverExecutable(new File(appiumInstallationDir + File.separator + “Appium” + File.separator + “node.exe”))
// .withAppiumJS(new File(appiumInstallationDir + File.separator + “Appium” + File.separator
// + “node_modules” + File.separator + “appium” + File.separator + “bin” + File.separator + “appium.js”))
// .withLogFile(new File(new File(classPathRoot, File.separator + “log”), “androidLog.txt”)));
//
// } else if (currentOS.contains(“Mac”))
// {
/
System.out.println(“Appium configuration happening…”);
service = AppiumDriverLocalService.buildService(new AppiumServiceBuilder()
.usingDriverExecutable(new File(constants.nodejsPath))
.withAppiumJS(new File(
constants.appiumjsPath))
.withIPAddress(“127.0.0.1”).usingPort(4719));
// .withLogFile(new File(new File(classPathRoot, File.separator + “log”), “ioSLog.txt”)));

// } else {
// // you can add for other OS, just to track added a fail message
// Assert.fail(“Starting appium is not supporting the current OS.”);
// }
}

 /**
  * Starts appium server
  */
 
 public void startAppiumServer() {
	 System.out.println("Starting Appium Server");
  service.start();
 }

**********************************************************************************

public void addCapabilities()
{

		System.out.println("Declaring capabitlites for iOS driver");

		iosCapabilities= new DesiredCapabilities();

// iosCapabilities.setCapability(“CapabilityType.Browser_Name”,“Safari”);
iosCapabilities.setCapability(MobileCapabilityType.BROWSER_NAME, “”);//Safari if we invoke browser for automation. Else an empty string.
iosCapabilities.setCapability(MobileCapabilityType.AUTO_WEBVIEW, true);
iosCapabilities.setCapability(“sendKeyStrategy”, “grouped”);//SetView is an other option. It is applicable only for webview or hybrid app.
iosCapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, “iOS”);
// iosCapabilities.setCapability(, “1.6.3”);
iosCapabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, “10.2”);
iosCapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, “BBBBBB”);
iosCapabilities.setCapability(“device”, “iPad Air 2”);

		iosCapabilities.setCapability(MobileCapabilityType.APP, "BBBBBB");
		iosCapabilities.setCapability(MobileCapabilityType.UDID, "3d6ca3548b047d2b926faae5fABed477761bbc8f");
		iosCapabilities.setCapability("bundleId", "com.sc.sabcd.mobile");
		iosCapabilities.setCapability(MobileCapabilityType.FULL_RESET, false);
		iosCapabilities.setCapability(MobileCapabilityType.NO_RESET, true);
		iosCapabilities.setCapability("nativeInstrumentsLib", true); //Instructing to use Native instruments lib
		//iosCapabilities.setCapability("app", appToBeInstalled); //<Mention the path , when app needs to be installed>
		iosCapabilities.setCapability(MobileCapabilityType.ORIENTATION, "PORTRAIT");//setting up orientation due to open bugs in interacting with UI elements in Landscape mode.
		iosCapabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
		iosCapabilities.setCapability("showIOSLog", "true");
		iosCapabilities.setCapability("realDeviceLogger", "/usr/local/lib/node_modules/deviceconsole/deviceconsole");

}

  @Test(dependsOnMethods={"addCapabilities"})
  public void appiumDriverInitialization() throws MalformedURLException, InterruptedException{
	  try{
	   
	   constants.driver= new IOSDriver(new URL("http://127.0.0.1:" +driverPort+"/wd/hub"),iosCapabilities);

// ios_driver = new IOSDriver(new URL(appiumServerURL),cap);

	   System.out.println("Driver initialized");
	  }catch(UnreachableBrowserException e){
		  System.out.println("Error: Appium server not started."  );
		  
		  e.printStackTrace();
	  }
  }
  
  
  @Test(dependsOnMethods={"appiumDriverInitialization"})
  public void setNativeAppView(){
	  ((IOSDriver) constants.driver).context("NATIVE_APP");
	   System.out.println("Native App View Enabled in iOS App");
  }
  
  @Test(dependsOnMethods={"setNativeAppView"})
  public void setWebView() throws InterruptedException
  {
	  
	  //Verifying the context present
	   String actualContext = ((IOSDriver) constants.driver).getContext();
	   System.out.println("Context present in iOS App " +actualContext);
	
	   
	   Thread.sleep(6000); //Time reserved to switch from native app to web view.
	   System.out.println("No of context Avaialble in iOS are : " + ((IOSDriver) constants.driver).getContextHandles().size());
	   Set<String> contextHandles= ((IOSDriver) constants.driver).getContextHandles(); 
      for (Object contextHandle: contextHandles)
	  {
		  System.out.println("Available context in iOS are " + contextHandles);
		  
	  }	  
	  if(contextHandles.toString().toUpperCase().contains("WEBVIEW"))
	  {
		  ((IOSDriver) constants.driver).context((String) contextHandles.toArray()[2]);// Setting up Second WebView here(login.html)
	  }
	  
	   //Verifying the context enabled manually
	   String newContext = ((IOSDriver) constants.driver).getContext();
	   System.out.println("Context enabled currently in iOS is :  " +newContext);
	   
	
  } 

LOGS WHEN I ATTEMPTED TO UNINSTALL AND INSTALL.

Last login: Wed Apr 12 12:30:37 on ttys001

V4s-MacBook-Pro-2:~ v4$ cd /usr/local/lib/node_modules/appium

V4s-MacBook-Pro-2:appium v4$ npm install appium-xcuitest-driver

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/bluebird

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules

[email protected] /usr/local/lib/node_modules/appium

└─┬ [email protected]

└── [email protected]

npm ERR! Darwin 16.5.0

npm ERR! argv “/usr/local/Cellar/node/7.8.0/bin/node” “/usr/local/bin/npm” “install” “appium-xcuitest-driver”

npm ERR! node v7.8.0

npm ERR! npm v4.2.0

npm ERR! path /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/bluebird

npm ERR! code EACCES

npm ERR! errno -13

npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/bluebird’

npm ERR! { Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/bluebird’

npm ERR! errno: -13,

npm ERR! code: ‘EACCES’,

npm ERR! syscall: ‘access’,

npm ERR! path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/bluebird’ }

npm ERR!

npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:

npm ERR! /Users/v4/.npm/_logs/2017-04-12T07_38_47_344Z-debug.log

V4s-MacBook-Pro-2:appium v4$ npm install appium-xcuitest-driver

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/bluebird

[email protected] /usr/local/lib/node_modules/appium

└─┬ [email protected]

└── [email protected]

npm ERR! Darwin 16.5.0

npm ERR! argv “/usr/local/Cellar/node/7.8.0/bin/node” “/usr/local/bin/npm” “install” “appium-xcuitest-driver”

npm ERR! node v7.8.0

npm ERR! npm v4.2.0

npm ERR! path /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/bluebird

npm ERR! code EACCES

npm ERR! errno -13

npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/bluebird’

npm ERR! { Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/bluebird’

npm ERR! errno: -13,

npm ERR! code: ‘EACCES’,

npm ERR! syscall: ‘access’,

npm ERR! path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/bluebird’ }

npm ERR!

npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:

npm ERR! /Users/v4/.npm/_logs/2017-04-12T07_43_54_132Z-debug.log

V4s-MacBook-Pro-2:appium v4$ npm install appium-xcuitest-driver

npm WARN deprecated [email protected]: Moved into appium-support

npm WARN deprecated [email protected]: Use app utils bundled in appium-ios-driver

npm WARN deprecated [email protected]: Use ios-log bundled in appium-ios-driver

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-instruments/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-ios-log/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-remote-debugger/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-uiauto/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-xcode/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/dashdash/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/deep-eql/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/getpass/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/ios-app-utils/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/method-override/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/serve-favicon/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/sshpk/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/traceur/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/url/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/util/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/mv/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/rimraf/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/xmlbuilder/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-instruments/node_modules/source-map-support

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-ios-simulator

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-uiauto/node_modules/source-map-support

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/appium-xcode/node_modules/source-map-support

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/async-listener

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/emitter-listener

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/jsprim

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/finalhandler

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/node-simctl

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/appium/node_modules/request-promise-core

[email protected] /usr/local/lib/node_modules/appium

├─┬ [email protected]

│ ├─┬ [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├─┬ [email protected]

│ │ │ │ │ ├─┬ [email protected]

│ │ │ │ │ │ └── [email protected]

│ │ │ │ │ └── [email protected]

│ │ │ │ ├─┬ [email protected]

│ │ │ │ │ └── [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ └─┬ [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├─┬ [email protected]

│ │ │ │ │ └─┬ [email protected]

│ │ │ │ │ ├── [email protected]

│ │ │ │ │ └── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ └─┬ [email protected]

│ │ └─┬ [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ └── [email protected]

│ │ └─┬ [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├─┬ [email protected]

│ │ │ │ │ └── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├─┬ [email protected]

│ │ │ │ │ ├── [email protected]

│ │ │ │ │ └── [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├─┬ [email protected]

│ │ │ │ │ ├── [email protected]

│ │ │ │ │ ├── [email protected]

│ │ │ │ │ ├── [email protected]

│ │ │ │ │ └── [email protected]

│ │ │ │ └─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├─┬ [email protected]

│ │ │ │ │ └── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├─┬ [email protected]

│ │ │ │ │ └── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ └─┬ [email protected]

│ │ ├── [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └─┬ [email protected]

│ │ │ │ ├── [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ └─┬ [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ └─┬ [email protected]

│ │ └─┬ [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ └─┬ [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ └── [email protected]

│ ├── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ └─┬ [email protected]

│ │ └── [email protected]

│ ├── [email protected]

│ ├── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├─┬ [email protected]

│ │ │ │ └── [email protected]

│ │ │ ├── [email protected]

│ │ │ └─┬ [email protected]

│ │ │ └── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ ├── [email protected]

│ │ └─┬ [email protected]

│ │ └─┬ [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ ├── [email protected]

│ │ │ └── [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ └── [email protected]

│ └─┬ [email protected]

│ ├── [email protected]

│ ├─┬ [email protected]

│ │ ├─┬ [email protected]

│ │ │ └── [email protected]

│ │ └── [email protected]

│ ├── [email protected]

│ ├─┬ [email protected]

│ │ └─┬ [email protected]

│ │ └── [email protected]

│ ├─┬ [email protected]

│ │ ├── [email protected]

│ │ └─┬ [email protected]

│ │ └── [email protected]

│ ├── [email protected]

│ └── [email protected]

├─┬ [email protected]

│ ├── [email protected]

│ ├─┬ [email protected]

│ │ └── [email protected]

│ └── [email protected]

└── [email protected]

npm ERR! Darwin 16.5.0

npm ERR! argv “/usr/local/Cellar/node/7.8.0/bin/node” “/usr/local/bin/npm” “install” “appium-xcuitest-driver”

npm ERR! node v7.8.0

npm ERR! npm v4.2.0

npm ERR! path /usr/local/lib/node_modules/appium/node_modules/appium-instruments/node_modules

npm ERR! code EACCES

npm ERR! errno -13

npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/appium/node_modules/appium-instruments/node_modules’

npm ERR! { Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules/appium/node_modules/appium-instruments/node_modules’

npm ERR! errno: -13,

npm ERR! code: ‘EACCES’,

npm ERR! syscall: ‘access’,

npm ERR! path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-instruments/node_modules’ }

npm ERR!

npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:

npm ERR! /Users/v4/.npm/_logs/2017-04-12T07_46_49_152Z-debug.log

V4s-MacBook-Pro-2:appium v4$

LOGS:


2017-04-12 11:24:39:553 - info: [Appium] Welcome to Appium v1.6.3
2017-04-12 11:24:39:555 - info: [Appium] Non-default server args:
2017-04-12 11:24:39:556 - info: [Appium] log: ‘/Users/v4/Documents/Scopeappiumautomation/straight2bank/log/ioSLog.txt’
2017-04-12 11:24:39:579 - info: [Appium] Appium REST http interface listener started on 0.0.0.0:4723
2017-04-12 11:24:39:650 - info: [HTTP] --> GET /wd/hub/status {}
2017-04-12 11:24:39:652 - info: [debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
2017-04-12 11:24:39:663 - info: [debug] [MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.6.3”,“revision”:null}}
2017-04-12 11:24:39:669 - info: [HTTP] <-- GET /wd/hub/status 200 16 ms - 83
2017-04-12 11:24:40:000 - info: [HTTP] --> POST /wd/hub/session {“capabilities”:{“desiredCapabilities”:{“app”:“Straight2Bank”,“orientation”:“PORTRAIT”,“noReset”:true,“bundleId”:“com.sc.s2bng.mobile”,“deviceName”:“S2bv4010 Ipad”,“fullReset”:false,“showIOSLog”:“true”,“nativeInstrumentsLib”:true,“sendKeyStrategy”:“grouped”,“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“9.3.4”,“automationName”:“XCUITest”,“browserName”:"",“autoWebview”:true,“platformName”:“iOS”,“udid”:“29808cb769651582f444f6d95a2ece576beb2591”,“device”:“iPad Air 2”},“requiredCapabilities”:{}},“desiredCapabilities”:{“app”:“Straight2Bank”,“orientation”:“PORTRAIT”,“noReset”:true,“bundleId”:“com.sc.s2bng.mobile”,“deviceName”:“S2bv4010 Ipad”,“fullReset”:false,“showIOSLog”:“true”,“nativeInstrumentsLib”:true,“sendKeyStrategy”:“grouped”,“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“9.3.4”,“automationName”:“XCUITest”,“browserName”:"",“autoWebview”:true,“platformName”:“iOS”,“udid”:“29808cb769651582f
2017-04-12 11:24:40:000 - info: [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“Straight2Bank”,“orientation”:“PORTRAIT”,“noReset”:true,“bundleId”:“com.sc.s2bng.mobile”,“deviceName”:“S2bv4010 Ipad”,“fullReset”:false,“showIOSLog”:“true”,“nativeInstrumentsLib”:true,“sendKeyStrategy”:“grouped”,“realDeviceLogger”:”/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“9.3.4”,“automationName”:“XCUITest”,“browserName”:"",“autoWebview”:true,“platformName”:“iOS”,“udid”:“29808cb769651582f444f6d95a2ece576beb2591”,“device”:“iPad Air 2”},{},{“desiredCapabilities”:{“app”:“Straight2Bank”,“orientation”:“PORTRAIT”,“noReset”:true,“bundleId”:“com.sc.s2bng.mobile”,“deviceName”:“S2bv4010 Ipad”,“fullReset”:false,“showIOSLog”:“true”,“nativeInstrumentsLib”:true,“sendKeyStrategy”:“grouped”,“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“9.3.4”,“automationName”:“XCUITest”,“browserName”:"",“autoWebview”:true,“platformName”:“iOS”,“udid”:“29808cb769651582f444f6d95a2ece576beb2591”,“device”:“iPad Air 2”},“requiredCapabilities”:{}},null,null]
2017-04-12 11:24:40:002 - info: [Appium] Creating new XCUITestDriver session
2017-04-12 11:24:40:002 - info: [Appium] Capabilities:
2017-04-12 11:24:40:003 - info: [Appium] app: ‘Straight2Bank’
2017-04-12 11:24:40:003 - info: [Appium] orientation: ‘PORTRAIT’
2017-04-12 11:24:40:004 - info: [Appium] noReset: true
2017-04-12 11:24:40:004 - info: [Appium] bundleId: ‘com.sc.s2bng.mobile’
2017-04-12 11:24:40:004 - info: [Appium] deviceName: ‘S2bv4010 Ipad’
2017-04-12 11:24:40:004 - info: [Appium] fullReset: false
2017-04-12 11:24:40:004 - info: [Appium] showIOSLog: ‘true’
2017-04-12 11:24:40:004 - info: [Appium] nativeInstrumentsLib: true
2017-04-12 11:24:40:005 - info: [Appium] sendKeyStrategy: ‘grouped’
2017-04-12 11:24:40:005 - info: [Appium] realDeviceLogger: ‘/usr/local/lib/node_modules/deviceconsole/deviceconsole’
2017-04-12 11:24:40:005 - info: [Appium] platformVersion: ‘9.3.4’
2017-04-12 11:24:40:005 - info: [Appium] automationName: ‘XCUITest’
2017-04-12 11:24:40:005 - info: [Appium] browserName: ‘’
2017-04-12 11:24:40:006 - info: [Appium] autoWebview: true
2017-04-12 11:24:40:006 - info: [Appium] platformName: ‘iOS’
2017-04-12 11:24:40:006 - info: [Appium] udid: ‘29808cb769651582f444f6d95a2ece576beb2591’
2017-04-12 11:24:40:006 - info: [Appium] device: ‘iPad Air 2’
2017-04-12 11:24:40:010 - info: [debug] [XCUITest] XCUITestDriver version: 2.27.2
2017-04-12 11:24:40:012 - warn: [BaseDriver] Capability ‘showIOSLog’ changed from string to boolean. This may cause unexpected behavior
2017-04-12 11:24:40:015 - warn: [BaseDriver] The following capabilities were provided, but are not recognized by appium: realDeviceLogger, device.
2017-04-12 11:24:40:034 - info: [BaseDriver] Session created with session id: 6d9e26c2-bfe5-4fb7-b6c2-36bc4158e231
2017-04-12 11:24:40:111 - info: [debug] [XCUITest] Xcode version set to ‘8.3.1’
2017-04-12 11:24:40:118 - info: [debug] [XCUITest] iOS SDK Version set to ‘10.3’
2017-04-12 11:24:40:118 - info: [debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1491996280118 (16:54:40 GMT+0530 (IST))
2017-04-12 11:24:40:195 - error: [XCUITest] Error: spawn ENOTDIR
at exports._errnoException (util.js:1034:11)
at ChildProcess.spawn (internal/child_process.js:319:11)
at exports.spawn (child_process.js:378:9)
at …/…/lib/teen_process.js:27:16
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at exec (…/…/lib/teen_process.js:24:10)
at getConnectedDevices$ (…/…/lib/real-device-management.js:8:26)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at Object.runtime.async (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at getConnectedDevices (…/…/lib/real-device-management.js:14:12)
at XCUITestDriver.determineDevice$ (…/…/lib/driver.js:585:29)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:109:7)
{ Error: spawn ENOTDIR
at exports._errnoException (util.js:1034:11)
at ChildProcess.spawn (internal/child_process.js:319:11)
at exports.spawn (child_process.js:378:9)
at …/…/lib/teen_process.js:27:16
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at exec (…/…/lib/teen_process.js:24:10)
at getConnectedDevices$ (…/…/lib/real-device-management.js:8:26)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at Object.runtime.async (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at getConnectedDevices (…/…/lib/real-device-management.js:14:12)
at XCUITestDriver.determineDevice$ (…/…/lib/driver.js:585:29)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:109:7) code: ‘ENOTDIR’, errno: ‘ENOTDIR’, syscall: ‘spawn’ }
2017-04-12 11:24:40:196 - info: [debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
2017-04-12 11:24:40:199 - error: [MJSONWP] Encountered internal error running command: Error: spawn ENOTDIR
at exports._errnoException (util.js:1034:11)
at ChildProcess.spawn (internal/child_process.js:319:11)
at exports.spawn (child_process.js:378:9)
at …/…/lib/teen_process.js:27:16
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at exec (…/…/lib/teen_process.js:24:10)
at getConnectedDevices$ (…/…/lib/real-device-management.js:8:26)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at Object.runtime.async (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at getConnectedDevices (…/…/lib/real-device-management.js:14:12)
at XCUITestDriver.determineDevice$ (…/…/lib/driver.js:585:29)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:109:7)
2017-04-12 11:24:40:204 - info: [HTTP] <-- POST /wd/hub/session 500 203 ms - 150
2017-04-12 11:24:40:218 - info: [HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:“Straight2Bank”,“orientation”:“PORTRAIT”,“noReset”:true,“bundleId”:“com.sc.s2bng.mobile”,“deviceName”:“S2bv4010 Ipad”,“fullReset”:false,“showIOSLog”:“true”,“nativeInstrumentsLib”:true,“sendKeyStrategy”:“grouped”,“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“9.3.4”,“automationName”:“XCUITest”,“browserName”:"",“autoWebview”:true,“platformName”:“iOS”,“udid”:“29808cb769651582f444f6d95a2ece576beb2591”,“device”:“iPad Air 2”},“requiredCapabilities”:{}}
2017-04-12 11:24:40:219 - info: [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“Straight2Bank”,“orientation”:“PORTRAIT”,“noReset”:true,“bundleId”:“com.sc.s2bng.mobile”,“deviceName”:“S2bv4010 Ipad”,“fullReset”:false,“showIOSLog”:“true”,“nativeInstrumentsLib”:true,“sendKeyStrategy”:“grouped”,“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“9.3.4”,“automationName”:“XCUITest”,“browserName”:"",“autoWebview”:true,“platformName”:“iOS”,“udid”:“29808cb769651582f444f6d95a2ece576beb2591”,“device”:“iPad Air 2”},{},null,null,null,null,null]
2017-04-12 11:24:40:220 - info: [Appium] Creating new XCUITestDriver session
2017-04-12 11:24:40:220 - info: [Appium] Capabilities:
2017-04-12 11:24:40:220 - info: [Appium] app: ‘Straight2Bank’
2017-04-12 11:24:40:220 - info: [Appium] orientation: ‘PORTRAIT’
2017-04-12 11:24:40:220 - info: [Appium] noReset: true
2017-04-12 11:24:40:221 - info: [Appium] bundleId: ‘com.sc.s2bng.mobile’
2017-04-12 11:24:40:221 - info: [Appium] deviceName: ‘S2bv4010 Ipad’
2017-04-12 11:24:40:221 - info: [Appium] fullReset: false
2017-04-12 11:24:40:221 - info: [Appium] showIOSLog: ‘true’
2017-04-12 11:24:40:221 - info: [Appium] nativeInstrumentsLib: true
2017-04-12 11:24:40:221 - info: [Appium] sendKeyStrategy: ‘grouped’
2017-04-12 11:24:40:222 - info: [Appium] realDeviceLogger: ‘/usr/local/lib/node_modules/deviceconsole/deviceconsole’
2017-04-12 11:24:40:222 - info: [Appium] platformVersion: ‘9.3.4’
2017-04-12 11:24:40:222 - info: [Appium] automationName: ‘XCUITest’
2017-04-12 11:24:40:222 - info: [Appium] browserName: ‘’
2017-04-12 11:24:40:222 - info: [Appium] autoWebview: true
2017-04-12 11:24:40:222 - info: [Appium] platformName: ‘iOS’
2017-04-12 11:24:40:222 - info: [Appium] udid: ‘29808cb769651582f444f6d95a2ece576beb2591’
2017-04-12 11:24:40:223 - info: [Appium] device: ‘iPad Air 2’
2017-04-12 11:24:40:223 - info: [debug] [XCUITest] XCUITestDriver version: 2.27.2
2017-04-12 11:24:40:224 - warn: [BaseDriver] Capability ‘showIOSLog’ changed from string to boolean. This may cause unexpected behavior
2017-04-12 11:24:40:225 - warn: [BaseDriver] The following capabilities were provided, but are not recognized by appium: realDeviceLogger, device.
2017-04-12 11:24:40:229 - info: [BaseDriver] Session created with session id: e088350f-9f1c-4255-b863-936092e86d66
2017-04-12 11:24:40:261 - info: [debug] [XCUITest] Xcode version set to ‘8.3.1’
2017-04-12 11:24:40:261 - info: [debug] [XCUITest] iOS SDK Version set to ‘10.3’
2017-04-12 11:24:40:262 - info: [debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1491996280262 (16:54:40 GMT+0530 (IST))
2017-04-12 11:24:40:328 - error: [XCUITest] Error: spawn ENOTDIR
at exports._errnoException (util.js:1034:11)
at ChildProcess.spawn (internal/child_process.js:319:11)
at exports.spawn (child_process.js:378:9)
at …/…/lib/teen_process.js:27:16
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at exec (…/…/lib/teen_process.js:24:10)
at getConnectedDevices$ (…/…/lib/real-device-management.js:8:26)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at Object.runtime.async (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at getConnectedDevices (…/…/lib/real-device-management.js:14:12)
at XCUITestDriver.determineDevice$ (…/…/lib/driver.js:585:29)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:109:7)
{ Error: spawn ENOTDIR
at exports._errnoException (util.js:1034:11)
at ChildProcess.spawn (internal/child_process.js:319:11)
at exports.spawn (child_process.js:378:9)
at …/…/lib/teen_process.js:27:16
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at exec (…/…/lib/teen_process.js:24:10)
at getConnectedDevices$ (…/…/lib/real-device-management.js:8:26)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at Object.runtime.async (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at getConnectedDevices (…/…/lib/real-device-management.js:14:12)
at XCUITestDriver.determineDevice$ (…/…/lib/driver.js:585:29)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:109:7) code: ‘ENOTDIR’, errno: ‘ENOTDIR’, syscall: ‘spawn’ }
2017-04-12 11:24:40:329 - info: [debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
2017-04-12 11:24:40:330 - error: [MJSONWP] Encountered internal error running command: Error: spawn ENOTDIR
at exports._errnoException (util.js:1034:11)
at ChildProcess.spawn (internal/child_process.js:319:11)
at exports.spawn (child_process.js:378:9)
at …/…/lib/teen_process.js:27:16
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at exec (…/…/lib/teen_process.js:24:10)
at getConnectedDevices$ (…/…/lib/real-device-management.js:8:26)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at F (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at Object.runtime.async (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at getConnectedDevices (…/…/lib/real-device-management.js:14:12)
at XCUITestDriver.determineDevice$ (…/…/lib/driver.js:585:29)
at tryCatch (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium-xcuitest-driver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at process._tickCallback (internal/process/next_tick.js:109:7)
2017-04-12 11:24:40:331 - info: [HTTP] <-- POST /wd/hub/session 500 112 ms - 150
2017-04-12 11:24:40:334 - info: [HTTP] --> POST /wd/hub/session {“capabilities”:{“desiredCapabilities”:{“app”:“Straight2Bank”,“orientation”:“PORTRAIT”,“noReset”:true,“bundleId”:“com.sc.s2bng.mobile”,“deviceName”:“S2bv4010 Ipad”,“fullReset”:false,“showIOSLog”:“true”,“nativeInstrumentsLib”:true,“sendKeyStrategy”:“grouped”,“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“9.3.4”,“automationName”:“XCUITest”,“browserName”:"",“autoWebview”:true,“platformName”:“iOS”,“udid”:“29808cb769651582f444f6d95a2ece576beb2591”,“device”:“iPad Air 2”},“requiredCapabilities”:{}}}
2017-04-12 11:24:40:336 - info: [debug] [MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {“required”:[“desiredCapabilities”],“optional”:[“requiredCapabilities”,“capabilities”,“sessionId”,“id”,“sessionId”,“id”,“sessionId”,“id”]} and you sent [“capabilities”]
2017-04-12 11:24:40:337 - info: [HTTP] <-- POST /wd/hub/session 400 2 ms - 205