TestNG Quiz Advance Level May 20, 2021 Leave a Comment on TestNG Quiz Advance Level Welcome to your TestNG Quiz Advance Level For your information, please note that this TestNG quiz has only single choice questions. Read each and every questions carefully before you start answering.. You will have 10 min to complete the quiz. Press the Start quiz button to initiate the quiz. Once complete you press Finish button to complete the test. After completion of test you can see your quiz result with sharing option, You can share your quiz result to social media like Facebook, Instagram etc. Note: You can view all the answers at the end of this quiz. Best of luck for TestNG Quiz Basic Level Which data types is returned by the dataProvider method? Object Object[][][] Object[] Object[][] How does one configure a custom reporter to be used by TestNG? Configure it in testing.xml in tag Annotate the class with @Reporter Configure it in testing.xml in tag d. Annotate the class with @IReporter Which of the following are build tools? Hudson Jenkins Ant Maven Which of the following is true about the Factory Features? Annotation feature that creates tests dynamically at runtime A Factory will execute test method inside a test class using separate Interface We can specify the order or test method to execute in a factory method We can specify which test methods to execute in a test class interface Which option completes the code for testng.xml to run the method belonging to Group 1 and Group 3? -------------------------- Which test method uses the below DataProvider correctly? @DataProvider(.name = “data”) Public static Object[][] getData(){ - -- - - - - -- - - - - -- - - - - - - - - } @Test(dataProvider = “data”) @Test(dataProvider = “getData”) @DataProvider(name = “getData”) @DataProvider(name = “data”) Why you download Hudson on windows, What file format are you expected to get? .bat .zip .exe .war Which of the following statements are true about TestNG grouping? User can specify which method to exclude from group User can group multiple Test method into a named group Use can use @BeforeClass to execute pre-condition before running any group method User can specify the groups container other groups Which of the following are hard assertion methods? asserEquals assertFalse assertExist assertMore Which of the following statements are true about the TestNG dependency features? Assists in executing tests in a specific order on the same class Dependency must be defined via annotation Support regular expression Assist different class to execute in specific order Which of the following @Test attribute creates dependency in TestNG? dependsOnGroups dependsOnMethods dependsOnClasses dependsOnTest Which data type is returned by Factory Method? Object Object[][][] Object[] Object[][] Which Annotation is used for parameterization in TestNG? @Arguments @Parameter @Argument @Parameters What are the attributes of @Test? Enabled Groups Name Order Please fill in the comment box below.