Skip to content

Instantly share code, notes, and snippets.

View AndreyKurilo's full-sized avatar

Andrei Kurylo AndreyKurilo

View GitHub Profile
package com.javarush.task.pro.task11.task1123;
import java.util.ArrayList;
import java.util.List;
public class UniversityGroup {
public List<String> students;
public UniversityGroup() {
students = new ArrayList<>();
@AndreyKurilo
AndreyKurilo / gist:a38cac8987e357bab0015f9e2d4ada5f
Created November 23, 2021 16:39
Curl на создание юзера
curl "https://playground.learnqa.ru/ajax/chrome/get_token/"-H "authority: playground.learnqa.ru" -H "pragma: no-cache" -H "cache-control: no-cache" -H "sec-ch-ua: \" Not A;Brand\";v=\"99\", \"Chromium\";v=\"96\", \"Google Chrome\";v=\"96\"" -H "accept: */*" -H "content-type: application/x-www-form-urlencoded; charset=UTF-8" -H "x-requested-with: XMLHttpRequest" -H "sec-ch-ua-mobile: ?0" -H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" -H "sec-ch-ua-platform: \"Windows\"" -H "origin: https://playground.learnqa.ru" -H "sec-fetch-site: same-origin" -H "sec-fetch-mode: cors" -H "sec-fetch-dest: empty" -H "referer: https://playground.learnqa.ru/chrome/network_dz/" -H "accept-language: ru,en;q=0.9,en-US;q=0.8,ru-RU;q=0.7" -H "cookie: chrome_auth_cookie=85509a67e06fad7b59712e80f5014eb2; token=5807f7b341093caa1a1d91bff035b0d5; user_token=UserX" --data-raw "name=UserX"
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: Error forwarding the new session Error forwarding the request Failed to connect to /10.0.2.15:26243
Build info: version: '4.0.0-beta-4', revision: '29f46d02dd'
System info: host: 'DESKTOP-SNCVCMK', ip: '169.254.224.193', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_302'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: firefox, platformName: linux}], desiredCapabilities=Capabilities {browserName: firefox, platform: LINUX}}]
Capabilities {}
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:84)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:62)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:156)
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: Error forwarding the new session Error forwarding the request Failed to connect to /10.0.2.15:26243
Build info: version: '4.0.0-beta-4', revision: '29f46d02dd'
System info: host: 'DESKTOP-SNCVCMK', ip: '169.254.224.193', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_302'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: firefox, platformName: linux}], desiredCapabilities=Capabilities {browserName: firefox, platform: LINUX}}]
Capabilities {}
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:84)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:62)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:156)
Failed tests
Tests
setUp
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: Error forwarding the new session Error forwarding the request Failed to connect to /10.0.2.15:26243
Build info: version: '4.0.0-beta-4', revision: '29f46d02dd'
System info: host: 'DESKTOP-SNCVCMK', ip: '169.254.224.193', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_302'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: firefox, platformName: linux}], desiredCapabilities=Capabilities {browserName: firefox, platform: LINUX}}]
Capabilities {}
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
Failed tests
Tests
setUp
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '4.0.0-beta-4', revision: '29f46d02dd'
System info: host: 'DESKTOP-SNCVCMK', ip: '169.254.224.193', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_302'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Command: [null, newSession {capabilities=[Capabilities {browserName: firefox, platformName: linux}], desiredCapabilities=Capabilities {browserName: firefox, platform: LINUX}}]
Capabilities {}
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:630)
Console Output
Started by user admin
Running as SYSTEM
Building in workspace C:\Users\Andrey\.jenkins\workspace\addressbook-tests
The recommended git tool is: NONE
No credentials specified
> C:\Program Files\Git\bin\git.exe rev-parse --resolve-git-dir C:\Users\Andrey\.jenkins\workspace\addressbook-tests\.git # timeout=10
Fetching changes from the remote Git repository
> C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/AK-1971/AFT_Java_New # timeout=10
Console Output
Started by user admin
Running as SYSTEM
Building in workspace C:\Users\Andrey\.jenkins\workspace\addressbook-tests
The recommended git tool is: NONE
No credentials specified
> C:\Program Files\Git\bin\git.exe rev-parse --resolve-git-dir C:\Users\Andrey\.jenkins\workspace\addressbook-tests\.git # timeout=10
Fetching changes from the remote Git repository
> C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/AK-1971/AFT_Java_New # timeout=10
"C:\Program Files\Zulu\zulu-8\bin\java.exe" -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1.3\lib\idea_rt.jar=50897:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1.3\lib\idea_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1.3\plugins\testng\lib\testng-rt.jar;C:\Program Files\Zulu\zulu-8\jre\lib\charsets.jar;C:\Program Files\Zulu\zulu-8\jre\lib\crs-agent.jar;C:\Program Files\Zulu\zulu-8\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Zulu\zulu-8\jre\lib\ext\cldrdata.jar;C:\Program Files\Zulu\zulu-8\jre\lib\ext\dnsns.jar;C:\Program Files\Zulu\zulu-8\jre\lib\ext\jaccess.jar;C:\Program Files\Zulu\zulu-8\jre\lib\ext\legacy8ujsse.jar;C:\Program Files\Zulu\zulu-8\jre\lib\ext\localedata.jar;C:\Program Files\Zulu\zulu-8\jre\lib\ext\nashorn.jar;C:\Program Files\Zulu\zulu-8\jre\lib\ext\openjsse.jar;C
@AndreyKurilo
AndreyKurilo / gist:d119d97c85c48312bc6c833c847f0dad
Created October 13, 2021 15:00
class ForwardingCollection
@GwtCompatible
public abstract class ForwardingCollection<E> extends ForwardingObject implements Collection<E> {
// TODO(lowasser): identify places where thread safety is actually lost
/** Constructor for use by subclasses. */
protected ForwardingCollection() {}
@Override
protected abstract Collection<E> delegate();