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

1 / 20

What is the purpose of the AfterTest annotation in TestNG?

Не верно!

Не верно!

Верно!

Не верно!

Which of the following annotations is used to mark a method that should be executed before each test method in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

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

Не верно!

Не верно!

Не верно!

Верно!

What is the purpose of using the Page Object Model in TestNG?

Не верно!

Не верно!

Не верно!

Верно!

Which annotation is used to indicate that a method is a test case in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

Can you use TestNG Page Factory with other testing frameworks like JUnit?

Верно!

Не верно!

Не верно!

Не верно!

Which annotation is used to prioritize the execution order of methods in TestNG?

Не верно!

Не верно!

Верно!

Не верно!

Which TestNG annotation is commonly used to mark methods in the base class for setup operations?

Не верно!

Не верно!

Верно!

Не верно!

How can you specify a reason for ignoring a test method in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

Which TestNG version is compatible with Java 11?

Не верно!

Не верно!

Верно!

Не верно!

In TestNG, can a class have multiple AfterTest annotations?

Верно!

Не верно!

Не верно!

Не верно!

Which parallel mode executes test cases within the same test class in parallel?

Не верно!

Верно!

Не верно!

Не верно!

Which annotation in TestNG is used to mark a method to be run before all tests in a test suite?

Верно!

Не верно!

Не верно!

Не верно!

Which attribute is used to specify the number of threads to be used for parallel test execution in a TestNG XML file?

Не верно!

Не верно!

Верно!

Не верно!

How can you ensure that all soft assertions are validated at the end of a TestNG test?

Верно!

Не верно!

Не верно!

Не верно!

How can you initialize Page Factory in a TestNG test class?

Не верно!

Верно!

Не верно!

Не верно!

What is the purpose of the @BeforeMethod annotation in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

How can you group test cases in TestNG?

Не верно!

Не верно!

Верно!

Не верно!

Which method of the Assert class is used to perform a hard assertion for equality?

Верно!

Не верно!

Не верно!

Не верно!

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

Верно!

Не верно!

Не верно!

Не верно!

Далее
0 из 20

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

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