Skip to content

Instantly share code, notes, and snippets.

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:8cefb005fdfcaaa70e368ff0833004f0
Created Oct 29, 2018
node version 10 appium installation erros
View gist:8cefb005fdfcaaa70e368ff0833004f0
npm install -g appium
/usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js
> appium-chromedriver@4.5.0 install /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver
> node install-npm.js
[11:29:13] [Chromedriver Install] Installing Chromedriver version '2.42' for platform 'mac' and architecture '64'
[11:29:13] [Chromedriver Install] Opening temp file to write 'chromedriver_mac64' to...
[11:29:13] [Chromedriver Install] Opened temp file '/var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-16861-jjiix1.7hyx/chromedriver_mac64.zip'
[11:29:13] [Chromedriver Install] Downloading https://chromedriver.storage.googleapis.com/2.42/chromedriver_mac64.zip...
@vikramvi
vikramvi / gist:dff50f7e0ddb458c4d7f7d6407ed5390
Created Oct 29, 2018
test execution stalls and no timeout happens
View gist:dff50f7e0ddb458c4d7f7d6407ed5390
[debug] [ADB] Running '/Users/vikramanna/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.56.101\:5555 push /var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/com.totalwine.app.dev/strings.json /data/local/tmp'
[debug] [ADB] Checking app cert for /Users/vikramanna/Documents/vikram/JoeUSA/AppiumSerenityPOC/app-releaseDev.apk
[debug] [ADB] Starting '/Users/vikramanna/Library/Android/sdk/build-tools/27.0.3/apksigner' with args '["verify","--print-certs","/Users/vikramanna/Documents/vikram/JoeUSA/AppiumSerenityPOC/app-releaseDev.apk"]'
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB] WARNING: MET
View gist:a56f739aff1d45300469c70200a79803
/usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js
> appium-chromedriver@4.5.0 install /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver
> node install-npm.js
[07:48:18] [Chromedriver Install] Installing Chromedriver version '2.42' for platform 'mac' and architecture '64'
[07:48:18] [Chromedriver Install] Opening temp file to write 'chromedriver_mac64' to...
[07:48:18] [Chromedriver Install] Opened temp file '/var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-8383-1butz7t.xohv/chromedriver_mac64.zip'
[07:48:18] [Chromedriver Install] Downloading https://chromedriver.storage.googleapis.com/2.42/chromedriver_mac64.zip...
[07:48:19] [Chromedriver Install] Writing binary content to /var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-8383-1butz7t.xohv/chromedriver_mac64.zip...
@vikramvi
vikramvi / CustomExpectedConditions.java
Created Oct 8, 2018 — forked from mt1729/CustomExpectedConditions.java
Some Selenium/Appium helpers to use with PageFactory
View CustomExpectedConditions.java
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.StaleElementReferenceException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
/**
* Define custom ExpectedConditions here.
*/
public final class CustomExpectedConditions {
@vikramvi
vikramvi / imposter-handbook-links.md
Created Apr 23, 2018 — forked from milmazz/imposter-handbook-links.md
Useful links found in The Imposter's Handbook by Rob Conery
View imposter-handbook-links.md
@vikramvi
vikramvi / gist:90f04717baf5bb7f348bb74ab75d8882
Created Mar 14, 2018
lh1.js ( not working - this is as per documentation )
View gist:90f04717baf5bb7f348bb74ab75d8882
const lighthouse = require('lighthouse');
const chromeLauncher = require('chrome-launcher');
// process.env.args = " --veiw --disable-network-throttling --disable-cpu-throttling"
// console.log(process.env.args);
function launchChromeAndRunLighthouse(url, opts, config = null) {
return chromeLauncher.launch({chromeFlags: opts.chromeFlags}).then(chrome => {
opts.port = chrome.port;
console.log(lighthouse)
return lighthouse(url, opts, config).then(results => {
@vikramvi
vikramvi / gist:1a65486153cf7a62d6bf6a000de799c0
Last active Mar 14, 2018
lh.js ( working script - running command line using node-cmd package )
View gist:1a65486153cf7a62d6bf6a000de799c0
const lighthouse = require('lighthouse');
const nodeCmd = require('node-cmd');
const opts = {
disableDeviceEmulation: true,
disableCpuThrottling: true,
disableNetworkThrottling: true,
view: true
};
View gist:e3b57e3b70c9fa274441983676054c53
import os
import platform
from selenium import webdriver
from timingsclient import Perf
from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver import ChromeOptions
#Jenkins Chrome Browser Fix
View gist:fe020b1ef0f6b36ab4afe08dfcd965e3
PERF_API_URL: "http://localhost/v2/api/cicd/"
api_params:
sla:
visualCompleteTime: 2000
baseline:
days: 7
perc: 75
padding: 1.2
flags:
assertBaseline: true
View gist:db74c2b65319d938b5d19da0405405ae
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.smava</groupId>
<artifactId>WebAnalytics_Automation_RegressionTesting</artifactId>
<version>1.0-SNAPSHOT</version>