We can use a Data Provider to supply the values you need to test. A Data Provider is a method on your class that returns an array of array of objects. This method is annotated with @DataProvider:
we must call annotation dataprovider @Test(dataProvider=dataprovider's name).
If The "prime" method has twenty data, the test will execute twenty times. If our prime number method has five attributes, our test method should receive five parameters.
Using objects
In this case the parameter is a person object
To read a data in excel, first we should have access to workbook, sheet which we want to read as workbook contains multiple sheets and if you want to read a particular cell we need to location a Cell.
We need "jxl-2.6.12.jar" to read the file.









No hay comentarios:
Publicar un comentario