Skip to main content

Posts

Showing posts from April, 2019

JAVA Revise Before Interview

1) 12 Most Frequently Occurring Exceptions In Java With Examples https://javaconceptoftheday.com/frequently-occurring-exceptions-in-java-with-examples/ 2) Strings:  https://javaconceptoftheday.com/introduction-strings/ https://javaconceptoftheday.com/java-interview-programs-on-strings/ 3)  Why Collection Framework? https://javaconceptoftheday.com/collection-framework-class-hierarchy/ 4) OOPS Concept https://www.geeksforgeeks.org/association-composition-aggregation-java/ https://javaconceptoftheday.com/method-overloading-in-java/

Data Provider: AUTOMATION TESTING FACTS

================================================= Data Provide TestNG: Parameters from Testng.xml can be suite or test level Parameter from DataProvider can take Method and ITestContext as the parameter. ============================================================= Test Level TestNG.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite name="TestSuite" thread-count="3" > <parameter name="author" value="Guru99" /> <parameter name="searchKey" value="India" /> <test name="testGuru"> <parameter name="searchKey" value="UK" /> <classes> <class name="parameters.ParameterWithTestNGXML"> </class> </classes> </test> </suite> ================================== Data provider returns a two-dimensional JAV