Skip to content

Instantly share code, notes, and snippets.

@rnemeth1980
rnemeth1980 / log
Created August 14, 2019 13:49
Allure gradle build log showing error
Task ':allureReport' is not up-to-date because:
Input property 'resultsDirs' file /home/abc/build/allure-results has been added.
Input property 'resultsDirs' file /home/abc/build/allure-results/21bd360d-e736-4935-b900-57bb1eb63291-result.json has been added.
Input property 'resultsDirs' file /home/abc/build/allure-results/49314d19-acee-484f-af90-67832ab24e82-result.json has been added.
Starting process 'command '/home/abc/.allure/allure-2.7.0/bin/allure''. Working directory: /home/abc Command: /home/abc/.allure/allure-2.7.0/bin/allure generate /home/abc/build/allure-results -o /home/abc/build/reports/build/allure-results --clean
Successfully started process 'command '/home/abc/.allure/allure-2.7.0/bin/allure''
Report successfully generated to /home/abc/build/reports/build/allure-results
:allureReport (Thread[Daemon worker,5,main]) completed. Took 7.998 secs.
FAILURE: Build failed with an exception.
@rnemeth1980
rnemeth1980 / build.gradle
Created August 12, 2019 08:24
Allure Test Report for geb/gradle
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'org.gebish:geb-gradle:2.0'
classpath 'io.qameta.allure:allure-gradle:2.5'
}
}
@rnemeth1980
rnemeth1980 / proxy.conf
Created July 9, 2019 14:15
proxy configuration for geb framework in groovy
Proxy proxy = new Proxy()
proxy.setHttpProxy("proxy-abc.de")
proxy.setSslProxy("proxy-abc.de")
// Define basic no_proxy settings.
def noProxy = "127.0.0.1,[::1],localhost,abc.de,local"
// Extend no_proxy depending on stage.
switch(System.getProperty(TestConstants.SYSTEMPARAMETER.STAGING_ENVIRONMENT)) {
case TestConstants.STAGING_ENVIRONMENT.PROD:
@rnemeth1980
rnemeth1980 / gist:ab0f707977862718ebeaa855102fd369
Created November 3, 2017 12:02
geb browserstack integration
-------------------------------------------------------------------------------------
GebConfig.groovy
-------------------------------------------------------------------------------------
environments {
remoteChromeDocker {
driver = {
def remoteWebDriverServerUrl = new URL("http://192.168.99.100:5000/wd/hub")
@rnemeth1980
rnemeth1980 / gist:477df14e2380647e278b25e29335c122
Created November 3, 2017 08:43
Firefox proxy settings in groovy
String[] noProxyArray = ["127.0.0.1", "localhost", "selenium"]
def proxyMap = [proxyType:'MANUAL',
httpProxy:PROXY,
sslProxy:PROXY,
noProxy:noProxyArray
]
caps.setCapability(CapabilityType.PROXY, proxyMap);
Caused by:
org.openqa.selenium.WebDriverException: java.util.ArrayList cannot be cast to java.lang.String
Command duration or timeout: 3.00 seconds
Caused by:
org.openqa.selenium.WebDriverException: java.util.ArrayList cannot be cast to java.lang.String
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T15:28:36.4Z'
System info: host: 'xxx', ip: 'xxx', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_121'
Driver info: driver.version: unknown