TestNG: Iterate through array using the Dataprovider
I'm conducting automation testing using Selenium Webdriver. This code is for TestNG dataprovider. I am taking data from Excel sheet to data and it's working fine. When I'm debugging the code, I'm getting TestData as testGoogle1(String search1, String Search2). For 1st iteration it is Search1 = Webdriver, Search2 = Qtp, and so on. What I want is that it should directly return the array of values something like testGoogle1(String search[]) so that in the @Test itself I can add my function iterate all the rows and columns and test them. Can anyone please show me how to write it? Test Data sheet H
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.