Тест по TestNG (en). Часть 8

1 / 20

Which exception is thrown when an element is not found using Page Factory?

Не верно!

Не верно!

Не верно!

Верно!

How many times will a method annotated with @AfterClass be executed in TestNG?

Не верно!

Верно!

Не верно!

Не верно!

How do you define web elements in a Page Library class?

Не верно!

Не верно!

Верно!

Не верно!

Which annotation is used to exclude a test from execution in TestNG?

Не верно!

Не верно!

Не верно!

Верно!

In TestNG, can a class have multiple BeforeSuite annotations?

Не верно!

Верно!

Не верно!

Не верно!

What is the purpose of the BeforeClass annotation in TestNG?

Не верно!

Верно!

Не верно!

Не верно!

Can a base class have its own test methods in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

What is the purpose of the BeforeTest annotation in TestNG?

Не верно!

Не верно!

Верно!

Не верно!

How can you create a flow library in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

How can you define parameters for a test method in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

Which tool is commonly used to install TestNG?

Не верно!

Не верно!

Верно!

Не верно!

How do you assign a test method to a group in TestNG?

Не верно!

Верно!

Не верно!

Не верно!

Can a class have multiple methods annotated with @BeforeMethod in TestNG?

Не верно!

Не верно!

Верно!

Не верно!

How do you create a SoftAssert object in TestNG?

Не верно!

Не верно!

Не верно!

Верно!

Which of the following statements about including and excluding methods in a TestNG XML file is true?

Верно!

Не верно!

Не верно!

Which attribute of the @Test annotation is used to specify the time-out period for a test method?

Не верно!

Верно!

Не верно!

Не верно!

What annotation is used to specify a test method dependency in TestNG?

Не верно!

Не верно!

Не верно!

Верно!

Which annotation is used to initialize the elements of a page object using Page Factory in TestNG?

Не верно!

Не верно!

Верно!

Не верно!

Which TestNG annotation is used to mark a method as a BeforeTest?

Не верно!

Не верно!

Не верно!

Верно!

What is the benefit of using a flow library in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

Далее
0 из 20

Поздравляем с прохождением теста! А теперь предлагаем почитать статьи по тестированию на нашем сайте!

Интересно, хочу попробовать