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