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:a2e6a128510fb77b0ae7228eee0dfe9b
Created August 16, 2017 11:06
WDA installation failure - appium server log
vikram-anna-pro:~ vikram-anna$ appium
[Appium] Welcome to Appium v1.6.6-beta.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"","version":"","platform":"ANY","javascriptEnabled":true,"cssSelectorsEnabled":true,"takesScreenshot":true,"nativeEvents":false,"rotatable":false,"newCommandTimeout":999999,"automationName":"XCUITest","platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 4S","udid":"6930e9e68d8fe637f29a39768f1b846a72805a96","app":"/Users/vikram-anna/Documents/WordPressSample/src/test/resources/apps/ios/SIP.ipa","xcodeSigningId":"iPhone Developer"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"browserName":"","version":"","platform":"ANY","javascriptEnabled":true,"cssSelectorsEnabled":true,"takesScreenshot":true,"nativeEvents":false,"rotatable":false,"newCommandTimeout":999999,"automationName":"XCUITest","platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 4S","ud
@vikramvi
vikramvi / gist:e657be8a73d2f348a4afb05eb66bd64e
Created August 16, 2017 13:18
appium installation success
vikram-anna-pro:~ vikram-anna$ appium
[Appium] Welcome to Appium v1.6.6-beta.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"browserName":"","version":"","platform":"ANY","javascriptEnabled":true,"cssSelectorsEnabled":true,"takesScreenshot":true,"nativeEvents":false,"rotatable":false,"newCommandTimeout":999999,"automationName":"XCUITest","platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 4S","udid":"6930e9e68d8fe637f29a39768f1b846a72805a96","app":"/Users/vikram-anna/Documents/WordPressSample/src/test/resources/apps/ios/SIP.ipa","xcodeSigningId":"iPhone Developer"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"browserName":"","version":"","platform":"ANY","javascriptEnabled":true,"cssSelectorsEnabled":true,"takesScreenshot":true,"nativeEvents":false,"rotatable":false,"newCommandTimeout":999999,"automationName":"XCUITest","platformName":"iOS","platformVersion":"9.3","deviceName":"iPhone 4S","ud
@vikramvi
vikramvi / gist:1f3da887070ec4b165ae30af1d3b9302
Created September 1, 2017 12:44
WordPress apk issue on emulator
--------- beginning of main
09-01 11:40:04.900 1241 1241 W auditd : type=2000 audit(0.0:1): initialized
09-01 11:40:05.700 1241 1241 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
09-01 11:40:05.700 1241 1241 W auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
--------- beginning of system
09-01 11:40:06.460 1242 1242 V vold : Detected support for: ext4 vfat
09-01 11:40:06.471 1242 1249 D vold : Recognized experimental block major ID 253 as virtio-blk (emulator's virtual SD card device)
09-01 11:40:06.472 1242 1249 V vold : /system/bin/sgdisk
09-01 11:40:06.472 1242 1249 V vold : --android-dump
09-01 11:40:06.472 1242 1249 V vold : /dev/block/vold/disk:253,48
@vikramvi
vikramvi / EXCEPTION
Created November 10, 2017 16:48
tests passed even when multiple exceptions are thrown
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.exner.tools.analyticstdd.SiteInfrastructureTests.AllTests
Nov 10, 2017 4:44:07 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Obsolete content type encountered: 'application/x-javascript'.
Nov 10, 2017 4:44:07 PM com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController processSynchron
INFO: Re-synchronized call to https://dpm.demdex.net/id?d_visid_ver=2.5.0&d_fieldgroup=MC&d_rtbd=json&d_ver=2&d_orgid=BE5121AA565821017F000101%40AdobeOrg&d_nsid=0&ts=1510328647764
Nov 10, 2017 4:44:08 PM com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController processSynchron
INFO: Re-synchronized call to https://ags055.sc.omtrdc.net/id?d_visid_ver=2.5.0&d_fieldgroup=A&mcorgid=BE5121AA565821017F000101%40AdobeOrg&mid=90513194460867712781632091620992559657&ts=1510328648171
@vikramvi
vikramvi / gist:b16410d64e20d061d8672ff1bd82f52a
Created November 13, 2017 17:01
chrome_2_perf_smava.py
"""
Selenium Grid with Hub and Node test
"""
import os
import platform
from selenium import webdriver
from timingsclient import Perf
BROWSER = webdriver.Chrome(
'/usr/local/bin/chromedriver')
PERF_API_URL: "http://localhost/v2/api/cicd/"
api_params:
sla:
pageLoadTime: 2000
baseline:
days: 7
perc: 75
padding: 1.2
flags:
assertBaseline: true
@vikramvi
vikramvi / gist:8fb60a03ecc549d7b3b5329105b458bd
Created November 13, 2017 17:03
chrome_2_perf_check24.py
"""
Selenium Grid with Hub and Node test
"""
import os
import platform
from selenium import webdriver
from timingsclient import Perf
BROWSER = webdriver.Chrome(
'/usr/local/bin/chromedriver')
('TIMING ----- ', {u'timing': {u'unloadEventStart': 0, u'domLoading': 1510674356806, u'fetchStart': 1510674356333, u'responseStart': 1510674356803, u'loadEventEnd': 1510674360333, u'connectStart': 1510674356374, u'domainLookupStart': 1510674356334, u'redirectStart': 0, u'domContentLoadedEventEnd': 1510674358377, u'requestStart': 1510674356654, u'secureConnectionStart': 1510674356400, u'connectEnd': 1510674356651, u'navigationStart': 1510674356316, u'loadEventStart': 1510674360329, u'domInteractive': 1510674358313, u'domContentLoadedEventStart': 1510674358374, u'redirectEnd': 0, u'domainLookupEnd': 1510674356374, u'unloadEventEnd': 0, u'responseEnd': 1510674356805, u'domComplete': 1510674360329, u'toJSON': {}}, u'url': u'https://suchen.mobile.de/fahrzeuge/financingLandingpage.html?id=248239597&ab.smava=test&damageUnrepaired=NO_DAMAGE_UNREPAIRED&isSearchRequest=true&pageNumber=1&scopeId=C&action=topOfPage&top=1:3&entrypoint=vip_left_column_TestNeu&dartPrice=8980&dartDuration=84', u'visualCompleteTime': 0, u'res
@vikramvi
vikramvi / gist:53556a6fe2cef7e5363c8b75a50d5f8e
Created December 12, 2017 08:11
- native content: "By.id: LetsBeginButton" - html content: "by id or name "LetsBeginButton""
[debug] [XCUITest] Executing command 'getCurrentContext'
[debug] [MJSONWP] Responding to client with driver.getCurrentContext() result: "NATIVE_APP"
[HTTP] <-- GET /wd/hub/session/8102b21e-d43f-43ed-b820-494851fedbfd/context 200 5 ms - 84
[HTTP] --> POST /wd/hub/session/8102b21e-d43f-43ed-b820-494851fedbfd/element {"using":"id","value":"LetsBeginButton"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["id","LetsBeginButton","8102b21e-d43f-43ed-b820-494851fedbfd"]
[debug] [XCUITest] Executing command 'findElement'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 18000 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/897EA12F-CA1B-4630-BE0C-D3685C3A94B7/element] with body: {"using":"id","value":"LetsBeginButton"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"id","value":"LetsBegi
<?xml version="1.0" encoding="UTF-8"?><AppiumAUT><XCUIElementTypeApplication type="XCUIElementTypeApplication" name="TWM Dev" label="TWM Dev" enabled="true" visible="true" x="0" y="0" width="320" height="568">
<XCUIElementTypeWindow type="XCUIElementTypeWindow" enabled="true" visible="true" x="0" y="0" width="320" height="568">
<XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="0" y="0" width="320" height="568">
<XCUIElementTypeOther type="XCUIElementTypeOther" name="Experience Total Wine
like never before! Shop for your favorite Wine, Beer, Spirits, and more. Let the experts find what's right for you. LET'S BEGIN" label="Experience Total Wine
like never before! Shop for your favorite Wine, Beer, Spirits, and more. Let the experts find what's right for you. LET'S BEGIN" enabled="true" visible="true" x="0" y="0" width="320" height="568">
<XCUIElementTypeOther type="XCUIElementTypeOther" name="Experience Total Wine
like never before! Shop for your favorite