Skip to content

Instantly share code, notes, and snippets.

View vikramvi's full-sized avatar
🚀
React.js, React Native Developer + 4 startup experiences

Vikram Ingleshwar vikramvi

🚀
React.js, React Native Developer + 4 startup experiences
View GitHub Profile
@vikramvi
vikramvi / gist:35de7c276891de5c7305
Created February 26, 2016 13:47
Hello World code
this is test programme
@vikramvi
vikramvi / gist:a761dab97f97374f8941d0166b10766f
Created June 16, 2016 13:38
checkTheAbilityToStartADriverWithTheDefaultServerAndNotDefaultNode run time error
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not find adb Please set the ANDROID_HOME environment variable with the Android SDK root directory path. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.72 seconds
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'Vikrams-MacBook-Pro.fritz.box', ip: '192.168.178.33', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.5', java.version: '1.8.0_45'
Driver info: io.appium.java_client.android.AndroidDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org
@vikramvi
vikramvi / gist:a4245a2c32b1cfdd0cf70cf1224f3598
Created June 16, 2016 16:24
checkTheAbilityToStartADriverWithTheDefaultServerAndNode failure
io.appium.java_client.service.local.InvalidServerInstanceException: Invalid server instance exception has occured: There is no installed nodes! Please install node via NPM (https://www.npmjs.com/package/appium#using-node-js) or download and install Appium app (http://appium.io/downloads.html)
at io.appium.java_client.service.local.AppiumServiceBuilder.findNodeInCurrentFileSystem(AppiumServiceBuilder.java:160)
at io.appium.java_client.service.local.AppiumServiceBuilder.checkAppiumJS(AppiumServiceBuilder.java:305)
at io.appium.java_client.service.local.AppiumServiceBuilder.createArgs(AppiumServiceBuilder.java:386)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:299)
at io.appium.java_client.service.local.AppiumDriverLocalService.buildService(AppiumDriverLocalService.java:74)
at io.appium.java_client.service.local.AppiumDriverLocalService.buildDefaultService(AppiumDriverLocalService.java:70)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:174)
at io.app
@vikramvi
vikramvi / gist:c74f4f5214fa4cd2a803e32b89a1153c
Created July 20, 2016 09:11
Distribute mode tests getting skipped
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.appium.tests.Runner
Configuring TestNG with: TestNG652Configurator
_ _ _ _ _ _
__| |(_) ___ | |_ _ __ (_)| |__ _ _ | |_ ___
/ _` || |/ __|| __|| '__|| || '_ \ | | | || __| / _ \
| (_| || |\__ \| |_ | | | || |_) || |_| || |_ | __/
\__,_||_||___/ \__||_| |_||_.__/ \__,_| \__| \___|
@vikramvi
vikramvi / gist:2717dbd538e23515c406fd6b4703ed29
Created December 6, 2016 11:42
1.6.2 not launching apk file ( Mac 10.11.6 )
[AndroidDriver] Starting Android session
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/vikram-anna/Library/Android/sdk/build-tools/25.0.1/aapt
[ADB] Extracting package and launch activity from manifest
[ADB] Error: targetSdkVersionFromManifest failed. Original error: Cannot read property '1' of null
at Object.wrappedLogger.errorAndThrow (lib/logger.js:60:13)
at ADB.callee$0$0$ (../../../lib/tools/android-manifest.js:101:9)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
@vikramvi
vikramvi / gist:4aeb540b9d9327a048aa578387b2f11f
Last active December 23, 2016 06:26
Serenity+Appium+Grid Setup Error Message
[pool-1-thread-2] INFO net.serenitybdd.core.webdriver.driverproviders.RemoteDriverProvider - Building remote driver with capabilitites Capabilities [{record-screenshots=false, browserName=Chrome, idle-timeout=180, platformName=Android}]
[pool-1-thread-2] ERROR net.thucydides.core.webdriver.WebDriverFacade - FAILED TO CREATE NEW WEBDRIVER_DRIVER INSTANCE class org.openqa.selenium.firefox.FirefoxDriver: Could not instantiate new webdriver instance of type class org.openqa.selenium.firefox.FirefoxDriver (Error forwarding the new session cannot find : Capabilities [{record-screenshots=false, browserName=Chrome, idle-timeout=180, platformName=Android}]
Command duration or timeout: 161 milliseconds
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'Vikrams-MacBook-Pro.fritz.box', ip: '192.168.178.21', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_102'
Driver info: org.openqa.selenium.remote.Remote
@vikramvi
vikramvi / gist:dec09cdadffda81935a49e495dd708eb
Created December 23, 2016 11:25
Serenity + Appium + Grid setup for parallel run on android emulators
mvn clean verify -Drun.parallel=true -Dwebdriver.remote.url=http://127.0.0.1:4444/wd/hub -Dwebdriver.remote.driver=appium -Dappium.platformName=Android -Dappium.app=Flipkart.3.0.apk -Dappium.deviceName="iPhone 5"
[pool-1-thread-2] INFO net.serenitybdd.core.webdriver.driverproviders.RemoteDriverProvider - Building remote driver with capabilitites Capabilities [{app=Flipkart.3.0.apk, record-screenshots=false, idle-timeout=180, platformName=Android, deviceName=iPhone 5}]
[pool-1-thread-2] ERROR net.thucydides.core.webdriver.WebDriverFacade - FAILED TO CREATE NEW WEBDRIVER_DRIVER INSTANCE class org.openqa.selenium.firefox.FirefoxDriver: Could not instantiate new webdriver instance of type class org.openqa.selenium.firefox.FirefoxDriver (An unknown server-side error occurred while processing the command. Original error: Error occured while starting App. Original error: com.flipkart.android/com.flipkart.android.SplashActivity or .SplashActivity or .com.flipkart.android.SplashActivity never started (WARNING: The se
@vikramvi
vikramvi / gist:5639feb89e5604765aff71daebb527bd
Created January 18, 2017 13:34
Real iPhone Device arc command error
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"newCommandTimeout":999999,"automationName":"XCUITest","platformName":"iOS","app":"/Users/vikram-anna/Library/Developer/Xcode/DerivedData/Crew-ekfegdmljqnbcwhkosdznvmpdndr/Build/Products/Debug-iphonesimulator/Crew.app","deviceName":"Vikram's iPhone","platformVersion":"10.2","udid":"97d9bb791384407fa67df34c07fbfa70e7efab09"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"newCommandTimeout":999999,"automationName":"XCUITest","platformName":"iOS","app":"/Users/vikram-anna/Library/Developer/Xcode/DerivedData/Crew-ekfegdmljqnbcwhkosdznvmpdndr/Build/Products/Debug-iphonesimulator/Crew.app","deviceName":"Vikram's iPhone","platformVersion":"10.2","udid":"97d9bb791384407fa67df34c07fbfa70e7efab09"},null,null,null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] newCommandTimeout: 999999
[Appium] automat
@vikramvi
vikramvi / gist:3814e9c9b797bec4440d45bd1abf6ed9
Created January 18, 2017 15:50
real device installation error with myconfig.xcconfig
[debug] [XCUITest] Using real device logger 'idevicesyslog'
[debug] [XCUITest] Using Xcode configuration file: '/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/Crew-App-Automation/myconfig.xcconfig'
[debug] [XCUITest] Beginning test with command 'xcodebuild build test -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=97d9bb791384407fa67df34c07fbfa70e7efab09 -configuration Debug -xcconfig /Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/Crew-App-Automation/myconfig.xcconfig' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Unable to get device time. Using local system time
[debug] [XCUITest] Output from idevicedate: Wed Jan 18 16:40:52 CET 2017
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/vikram-anna/Libra
@vikramvi
vikramvi / gist:4859c8734e5acd5f3c654fdd706ed2e8
Created January 18, 2017 16:49
Real device installation failure with ipa file
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"newCommandTimeout":999999,"automationName":"XCUITest","platformName":"iOS","xcodeConfigFile":"/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/Crew-App-Automation/myconfig.xcconfig","app":"/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/crew-ios/Crew_vikram/Crew.ipa","deviceName":"Vikram's iPhone","platformVersion":"10.2","udid":"97d9bb791384407fa67df34c07fbfa70e7efab09"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"newCommandTimeout":999999,"automationName":"XCUITest","platformName":"iOS","xcodeConfigFile":"/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/Crew-App-Automation/myconfig.xcconfig","app":"/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/crew-ios/Crew_vikram/Crew.ipa","deviceName":"Vikram's iPhone","platformV