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 of the following @Test attribute creates dependency in TestNG? dependsOnClasses dependsOnTest dependsOnMethods dependsOnGroups Which of the following are build tools? Hudson Jenkins Ant Maven Which data types is returned by the dataProvider method? Object[] Object Object[][] Object[][][] Why you download Hudson on windows, What file format are you expected to get? .war .bat .zip .exe What are the attributes of @Test? Enabled Groups Order Name Which test method uses the below DataProvider correctly? @DataProvider(.name = “data”) Public static Object[][] getData(){ - -- - - - - -- - - - - -- - - - - - - - - } @Test(dataProvider = “data”) @DataProvider(name = “getData”) @DataProvider(name = “data”) @Test(dataProvider = “getData”) Which data type is returned by Factory Method? Object[][] Object[] Object Object[][][] Which Annotation is used for parameterization in TestNG? @Parameter @Parameters @Argument @Arguments How does one configure a custom reporter to be used by TestNG? Configure it in testing.xml in tag Annotate the class with @Reporter d. Annotate the class with @IReporter Configure it in testing.xml in tag Which of the following statements are true about the TestNG dependency features? Assists in executing tests in a specific order on the same class Support regular expression Assist different class to execute in specific order Dependency must be defined via annotation Which of the following statements are true about TestNG grouping? Use can use @BeforeClass to execute pre-condition before running any group method User can group multiple Test method into a named group User can specify which method to exclude from group User can specify the groups container other groups Which option completes the code for testng.xml to run the method belonging to Group 1 and Group 3? <suite name = “Test Suite” verbose = “1”> <test name= “ My Test Using TestNG XML”> <groups> <run> -------------------------- </run> </groups> <classes> <class name = “com.mycompany.service.FirstTest”/> </classes> </test> </suite> Which of the following is true about the Factory Features? We can specify which test methods to execute in a test class interface We can specify the order or test method to execute in a factory method A Factory will execute test method inside a test class using separate Interface Annotation feature that creates tests dynamically at runtime Which of the following are hard assertion methods? assertMore assertExist asserEquals assertFalse Please fill in the comment box below.