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

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

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

Prepare Interview

모의 시험

홈페이지로 설정

이 페이지 북마크

이메일 주소 구독

TestNG 면접 질문과 답변

Ques 26. How can you group tests using regular expressions in TestNG?

Tests can be grouped using regular expressions in TestNG by specifying the 'groups' attribute in the testng.xml file with a regular expression pattern that matches the desired test groups.

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

Ques 27. Explain the purpose of the @Parameters annotation in conjunction with @Factory.

The @Parameters annotation in conjunction with @Factory allows you to pass parameters to the factory method, creating dynamic instances of the test class with different parameter values.

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

Ques 28. What is the purpose of the 'preserveOrder' attribute in the @Test annotation?

The 'preserveOrder' attribute in the @Test annotation, when set to 'true', ensures that the order of test methods is preserved as defined in the testng.xml file, even when parallel execution is enabled.

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

Ques 29. What is the purpose of the 'alwaysRun' attribute in the @Test annotation?

The 'alwaysRun' attribute in the @Test annotation ensures that the annotated method (such as @BeforeMethod or @AfterMethod) always runs, even if the test method fails.

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

Ques 30. Explain the concept of parameterization in TestNG.

Parameterization in TestNG allows you to run the same test method with different sets of data. This can be achieved using the @Parameters annotation or data providers.

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

Most helpful rated by users:

Copyright © 2026, WithoutBook.