Android app sanity tests with appium using javascript -
my experience of writing tests has been casperjs javascript. have android app test automation using appium. have gone through many tutorials unable create first test using javascript appium. out there can me creating first test.
p.s. have installed android studio , andriod sdk tools, set andriod_home , path environment variables. downloaded https://github.com/acolby/testdroid_example.git npm install
run stuck while running npm install -g mocha
, getting error
npm err! darwin 14.0.0 npm err! argv "node" "/usr/local/bin/npm" "install" "-g" "mocha" npm err! node v0.12.4 npm err! npm v2.10.1 npm err! path /usr/local/lib/node_modules/mocha/changelog.md npm err! code eacces npm err! errno -13 npm err! error: eacces, unlink '/usr/local/lib/node_modules/mocha/changelog.md' npm err! @ error (native) npm err! { [error: eacces, unlink '/usr/local/lib/node_modules/mocha/changelog.md'] npm err! errno: -13, npm err! code: 'eacces', npm err! path: '/usr/local/lib/node_modules/mocha/changelog.md' } npm err! npm err! please try running command again root/administrator. npm err! error rolling error: eacces, unlink '/usr/local/lib/node_modules/mocha/changelog.md' npm err! error rolling @ error (native) npm err! error rolling { [error: eacces, unlink '/usr/local/lib/node_modules/mocha/changelog.md'] npm err! error rolling errno: -13, npm err! error rolling code: 'eacces', npm err! error rolling path: '/usr/local/lib/node_modules/mocha/changelog.md' npm err! please include following file support request: npm err! /users/mac/projects/careaxiom/hfp-acceptance-tests/android/testdroid_example/npm-debug.log
try opening cmd prompt 'run administrator' , hit these commands. if doesnt works try adding sudo
befor these commands
Comments
Post a Comment