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

1 / 25

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

Не верно!

Не верно!

Не верно!

Верно!

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

Верно!

Не верно!

Не верно!

Не верно!

Which annotation is used to enable the execution of a method before all the test methods in a class?

Не верно!

Не верно!

Верно!

Не верно!

How can you define a Data Provider in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

Which parameter of the @DataProvider annotation is used to specify the number of times the data provider method should be invoked?

Не верно!

Верно!

Не верно!

Не верно!

What happens if a test method has multiple dependencies and one of them fails?

Верно!

Не верно!

Не верно!

Не верно!

Can you ignore multiple test methods using a single @Ignore annotation in TestNG?

Не верно!

Не верно!

Верно!

Не верно!

What is the purpose of the AfterClass annotation in TestNG?

Не верно!

Верно!

Не верно!

Не верно!

Which attribute is used to enable parallel execution in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

Which of the following is true about test dependencies in TestNG?

Не верно!

Верно!

Не верно!

Не верно!

What is the order of execution for multiple BeforeMethod annotations in a TestNG test class?

Не верно!

Не верно!

Верно!

Не верно!

What is the behavior of List when using the @FindBys annotation?

Не верно!

Не верно!

Верно!

Не верно!

Which annotation is used to initialize elements in Page Factory?

Не верно!

Верно!

Не верно!

Не верно!

What is TestNG Page Factory?

Не верно!

Верно!

Не верно!

Не верно!

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

Не верно!

Не верно!

Верно!

Не верно!

What is the order of execution for multiple AfterTest annotations in a TestNG test class?

Не верно!

Верно!

Не верно!

Не верно!

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

Не верно!

Не верно!

Верно!

Не верно!

What is the order of execution for multiple AfterClass annotations in a TestNG test class?

Не верно!

Верно!

Не верно!

Не верно!

What are groups in TestNG?

Верно!

Не верно!

Не верно!

Не верно!

Can you view TestNG HTML reports in a web browser?

Верно!

Не верно!

Не верно!

Не верно!

What happens when a hard assertion fails in TestNG?

Не верно!

Верно!

Не верно!

Не верно!

What is the purpose of using the PageFactory.initElements() method?

Верно!

Не верно!

Не верно!

Не верно!

Which parameter of the @DataProvider annotation is used to specify the name of the data provider method?

Не верно!

Не верно!

Верно!

Не верно!

What is the main difference between hard and soft assertions in TestNG?

Не верно!

Верно!

Не верно!

Не верно!

How can you exclude specific test methods from execution using a TestNG XML file?

Не верно!

Верно!

Не верно!

Не верно!

Далее
0 из 25

Поздравляем с прохождением теста! Для улучшения знаний по TestNG и автоматизации тестирования – перейдите в наш канал “Автоматизация тестирования” по кнопке ниже

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