Skip to content

Instantly share code, notes, and snippets.

View AndreyKurilo's full-sized avatar

Andrei Kurylo AndreyKurilo

View GitHub Profile
@AndreyKurilo
AndreyKurilo / gist:c75fca98e9972b0f500da23ed2e81c2c
Created August 18, 2021 12:18
Проверка падает
@BeforeMethod
public void precondition(){
app.goTo().groupPage();
app.group().createIfNotExists();
/*List<GroupData> groups = app.group().list();
GroupData group = groups.get(0);*/
app.goTo().homePage();
//return group;
}
Если закоментить этот код, то тест падает - сообщение ниже, хотя контакты создаются
11:29:38.099 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
11:29:38.127 [main] DEBUG o.h.i.i.IntegratorServiceImpl - Adding Integrator [org.hibernate.cfg.beanvalidation.BeanValidationIntegrator].
11:29:38.130 [main] DEBUG o.h.i.i.IntegratorServiceImpl - Adding Integrator [org.hibernate.secure.spi.JaccIntegrator].
11:29:38.136 [main] DEBUG o.h.i.i.IntegratorServiceImpl - Adding Integrator [org.hibernate.cache.internal.CollectionCacheInvalidator].
11:29:38.163 [main] INFO org.hibernate.Version - HHH000412: Hibernate ORM core version 5.5.6.Final
11:29:38.166 [main] DEBUG org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
11:29:38.642 [main] DEBUG o.h.b.j.i.s.LocalXmlResourceResolver - Interpreting public/system identifier : [-//Hibernate/Hibernate Configuration DTD 3.0//EN] - [http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd]
11:29:38.642 [main] DEBUG o.h.b.j.i.s.LocalXmlResourceResolver - Recognized hibernate-configuration identifier
11:29:38.099 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
11:29:38.127 [main] DEBUG o.h.i.i.IntegratorServiceImpl - Adding Integrator [org.hibernate.cfg.beanvalidation.BeanValidationIntegrator].
11:29:38.130 [main] DEBUG o.h.i.i.IntegratorServiceImpl - Adding Integrator [org.hibernate.secure.spi.JaccIntegrator].
11:29:38.136 [main] DEBUG o.h.i.i.IntegratorServiceImpl - Adding Integrator [org.hibernate.cache.internal.CollectionCacheInvalidator].
11:29:38.163 [main] INFO org.hibernate.Version - HHH000412: Hibernate ORM core version 5.5.6.Final
11:29:38.166 [main] DEBUG org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
11:29:38.642 [main] DEBUG o.h.b.j.i.s.LocalXmlResourceResolver - Interpreting public/system identifier : [-//Hibernate/Hibernate Configuration DTD 3.0//EN] - [http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd]
11:29:38.642 [main] DEBUG o.h.b.j.i.s.LocalXmlResourceResolver - Recognized hibernate-configuration identifier
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :processTestResources UP-TO-DATE
> Task :testClasses
> Task :test FAILED
@AndreyKurilo
AndreyKurilo / gist:00b73e3dc8be12ba3e586e7a4f9c9a2f
Created October 2, 2021 18:34
Генератор контактов
package ru.stqa.pft.addressbook.generators;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
import com.google.gson.*;
import com.thoughtworks.xstream.XStream;
import ru.stqa.pft.addressbook.model.ContactData;
import ru.stqa.pft.addressbook.model.GroupData;
import java.io.File;
@AndreyKurilo
AndreyKurilo / testLog-20211007T125254.log
Created October 7, 2021 09:55
Лог файл по 5.10 ContactFeateresTestNew
12:52:55.104 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
12:52:55.154 [main] DEBUG o.h.i.i.IntegratorServiceImpl - Adding Integrator [org.hibernate.cfg.beanvalidation.BeanValidationIntegrator].
12:52:55.160 [main] DEBUG o.h.i.i.IntegratorServiceImpl - Adding Integrator [org.hibernate.secure.spi.JaccIntegrator].
12:52:55.171 [main] DEBUG o.h.i.i.IntegratorServiceImpl - Adding Integrator [org.hibernate.cache.internal.CollectionCacheInvalidator].
12:52:55.249 [main] INFO org.hibernate.Version - HHH000412: Hibernate ORM core version 5.5.6.Final
12:52:55.252 [main] DEBUG org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
12:52:55.734 [main] DEBUG o.h.b.j.i.s.LocalXmlResourceResolver - Interpreting public/system identifier : [-//Hibernate/Hibernate Configuration DTD 3.0//EN] - [http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd]
12:52:55.735 [main] DEBUG o.h.b.j.i.s.LocalXmlResourceResolver - Recognized hibernate-configuration identifier
@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();
"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
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