Skip to content

Instantly share code, notes, and snippets.

View ToshiDono's full-sized avatar

Anton Karpenko ToshiDono

View GitHub Profile
@ToshiDono
ToshiDono / JDI parallel tests
Last active January 9, 2019 12:24
Two methods for making tests parallel on the JDI 2 Framework
/**
* In TestsInit add one from two methods
*/
/**
* First method.
* Clean cookies and refresh page.
*/
@AfterMethod(alwaysRun = true)
public static void cleanBrowser(){
@BeforeMethod
public void start(){
RestAssured.baseURI = "https://dictionary.yandex.net/api/v1/dicservice.json";
}
@DataProvider
public Object[][] dictionary(){
return new Object[][] {
{"Привет","hallo"}
};
06:28.998 INFO: Reading https://api.github.com/repos/mozilla/geckodriver/releases to seek wires, geckodriver
06:29.495 INFO: Latest version of wires, geckodriver is LATEST
06:29.497 INFO: No binary found for wires, geckodriver LATEST ... seeking another version
06:29.497 INFO: Latest version of wires, geckodriver is null
06:29.497 ERROR: wires, geckodriver (latest version) for WIN32 not found in https://api.github.com/repos/mozilla/geckodriver/releases
06:29.498 WARN: There was an error managing wires, geckodriver LATEST (wires, geckodriver (latest version) for WIN32 not found in https://api.github.com/repos/mozilla/geckodriver/releases) ... trying again forcing to use cache
io.github.bonigarcia.wdm.WebDriverManagerException: wires, geckodriver (latest version) for WIN32 not found in https://api.github.com/repos/mozilla/geckodriver/releases
at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:447)
at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:215)
at com.epam
Expected condition failed: waiting for text ('The following text has been loaded from another page on this site. It has been loaded in an asynchronous fashion so that we can work through the AJAX section of this chapter') to be the value of element [[ChromeDriver: chrome on MAC (cf2683dd57b4598a83844e70c1b95328)] -> css selector: div[id='ajaxdiv'] > p] (tried for 15 second(s) with 500 milliseconds interval)
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
System info: host: 'Air-Alexander-3.Dlink', ip: 'fe80:0:0:0:183e:5aa3:95b7:e995%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12', java.version: '9.0.4'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.36.540469 (1881fd7f864150..., userDataDir: /var/folders/k_/dpt4km5d7n1...}, cssSelectorsEnabled: true, databaseEnabled: fal
mvn clean package -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for OtusExamples:otusExamples:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.version' for org.testng:testng:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 20, column 22
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 39, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]