가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

모의 시험

홈페이지로 설정

이 페이지 북마크

이메일 주소 구독

TestNG 면접 질문과 답변

Ques 11. What is the difference between @BeforeTest and @BeforeSuite annotations?

@BeforeSuite is executed before any test runs in the suite, while @BeforeTest is executed before any test method belonging to the specified tag in the testng.xml file.

도움이 되었나요? Add Comment View Comments
 

Ques 12. How can you disable a test method in TestNG?

To disable a test method in TestNG, you can use the 'enabled' attribute in the @Test annotation and set it to 'false'.

도움이 되었나요? Add Comment View Comments
 

Ques 13. Explain the concept of listeners in TestNG.

Listeners in TestNG allow you to customize and control the test execution process. Examples include TestListener, ITestListener, IAnnotationTransformer, and IInvokedMethodListener.

도움이 되었나요? Add Comment View Comments
 

Ques 14. What is the purpose of the @Parameters annotation?

The @Parameters annotation in TestNG is used to pass parameters to test methods. It is typically used in conjunction with the testng.xml file, where parameter values are specified.

도움이 되었나요? Add Comment View Comments
 

Ques 15. How can you perform data-driven testing in TestNG?

Data-driven testing in TestNG can be achieved by using the @DataProvider annotation or the dataProvider attribute in the @Test annotation, allowing you to supply different sets of data to the test method.

도움이 되었나요? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.