The Imposter's Handbook
This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
<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>vikram_stocks_mf_group_id</groupId> | |
<artifactId>vikram_stocks_mf_artifact_id</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<build> |
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... |
[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 |
/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... |
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 { |
This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
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 => { |
const lighthouse = require('lighthouse'); | |
const nodeCmd = require('node-cmd'); | |
const opts = { | |
disableDeviceEmulation: true, | |
disableCpuThrottling: true, | |
disableNetworkThrottling: true, | |
view: true | |
}; |
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 |
PERF_API_URL: "http://localhost/v2/api/cicd/" | |
api_params: | |
sla: | |
visualCompleteTime: 2000 | |
baseline: | |
days: 7 | |
perc: 75 | |
padding: 1.2 | |
flags: | |
assertBaseline: true |