Welcome to the Selenium WebDriver TestNG Quiz. We’ve brought this quiz today because TestNG is the most frequently used automation testing framework. It is an open source and is built on the top of JUnit testing framework but isn’t a JUnit extension. The TestNG framework came into existence for eliminating the limitations of the JUnit framework. It bundles some of the very powerful features which are quite easy to use. Thousands if not millions 🙂 of the automation users have tried this framework just because of its advantages & advanced features. The tests in TestNG gets executed using the TestNG class. For executing the tests in TestNG framework, a test class is the main entry point.
This Selenium WebDriver TestNG quiz will make you answer questions like how does the TestNG fair against its arch rival and what are its benefits over JUnit. Just to be clear, we aren’t at all suggesting that you should get rid of JUnit, but you must consider using TestNG for your upcoming projects. Apparently, the TestNG framework is more feature rich and cleaner than the JUnit. TestNG comes with annotations which are really helpful in controlling the test case execution. These annotations are always prefixed by the ‘@’ symbol. With the help of annotations, you can launch parallel execution of test cases. You can even skip the test cases effortlessly while running the test cases. Please note that the TestNG framework is based on a special design to cover all types of testing flows like the Unit testing, Functional testing, Integration testing, and End-to-end execution etc. It is capable of generating the test reports in both HTML and XML formats. If you use ANT build tool with TestNG, then you can easily generate the basic TestNG reports.
Selenium WebDriver TestNG Quiz for QA Engineers.
0 of 10 questions completed
|For your information: Please note that this Selenium WebDriver TestNG quiz has only single choice questions. We suggest that you give your best to face all the questions. Click the <Start quiz> button to begin the online practice test.|
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
0 of 10 questions answered correctly
Time has elapsed
You have reached 0 of 0 points, (0)
We wish that you would have enjoyed the Selenium WebDriver TestNG quiz. If you liked it, then please don’t miss to share this post on facebook, twitter and other social media platforms of your choice.
1. Question10 points
Which of the following is not a valid TestNG annotation?CorrectIncorrect
2. Question10 points
TestNG has a more elegant way of handling parameterized tests with the data-provider concept. Is it true or false?CorrectIncorrect
3. Question10 points
Which of the following features TestNG doesn’t support?CorrectIncorrect
4. Question10 points
TestNG framework allows us to generate test reports in both HTML and XML formats. Is it true or false?CorrectIncorrect
5. Question10 points
TestNG doesn’t make it mandatory to declare @BeforeClass and @AfterClass, which is present in JUnit. Is it true or false?CorrectIncorrect
6. Question10 points
Which is not a valid setUp/tearDown level in TestNG framework?CorrectIncorrect
7. Question10 points
What is the correct way to exclude a test in TestNG?CorrectIncorrect
8. Question10 points
Which of the following statements is correctly defining the Time-out test in TestNG?CorrectIncorrect
9. Question10 points
Parallel execution of Selenium test cases is possible in TestNG. Is it true or false?CorrectIncorrect
10. Question10 points
Which of the following statements is false in the context of TestNG framework?CorrectIncorrect
If you would have enjoyed attempting the Selenium WebDriver TestNG quiz, then please make sure to discuss it with your friends. Also, share it on your social media accounts. And please ask questions, leave any tips or suggestions in the comment box given below. We’ll try to reply to all the readers as much as we can.
In the next article, we will take on an entirely new subject of your interest. So, stay tuned for the updates.
All the Best,