SP
Size: a a a
SP
A
A
SP
A
BO
MK
VB
VB
Ri
Selenide.open("/")и авторизация на продукте
Selenide.open("shitPage")
java.lang.IllegalStateException: No webdriver is bound to current thread: 25. You need to call open(url) first.Перемещаю вызов методов из обоих BeforeMethod в тест - ошибки нет.
AS
Selenide.open("/")и авторизация на продукте
Selenide.open("shitPage")
java.lang.IllegalStateException: No webdriver is bound to current thread: 25. You need to call open(url) first.Перемещаю вызов методов из обоих BeforeMethod в тест - ошибки нет.
A
AS
Ri
public class AddNewItem extends BaseTest {вывод в консоли
@BeforeMethod
public void ensurePreconditions() {
System.out.println("Thread.currentThread().getId()" + Thread.currentThread().getId());
ItemDoIt.open();
}
@Test()
public void ItemCanBeAddedByAdmin() {
System.out.println("Thread.currentThread().getId()" + Thread.currentThread().getId());
ItemDoIt.addNewItem(new ItemData());
}
}
S
MK
Ri
public class AddNewItem extends BaseTest {вывод в консоли
@BeforeMethod
public void ensurePreconditions() {
System.out.println("Thread.currentThread().getId()" + Thread.currentThread().getId());
ItemDoIt.open();
}
@Test()
public void ItemCanBeAddedByAdmin() {
System.out.println("Thread.currentThread().getId()" + Thread.currentThread().getId());
ItemDoIt.addNewItem(new ItemData());
}
}
BO
public class AddNewItem extends BaseTest {вывод в консоли
@BeforeMethod
public void ensurePreconditions() {
System.out.println("Thread.currentThread().getId()" + Thread.currentThread().getId());
ItemDoIt.open();
}
@Test()
public void ItemCanBeAddedByAdmin() {
System.out.println("Thread.currentThread().getId()" + Thread.currentThread().getId());
ItemDoIt.addNewItem(new ItemData());
}
}
BO