--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/38b8ad54-1b14-4818-82a1-a97863cc875d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi ,You can add one column with Name run in excel and give value Y or N in that column. Fetch records for which you want to run Test case. Suppose you have two rows with Y. Two rows will be fetched in 2 D array. Which will be input to data provider and your test will run twice for two test data.ThanksSahil
On Wed, May 16, 2018 at 12:06 PM, karthik <sapsdkar...@gmail.com> wrote:
Dear Gurus,I'm using TestNG @DataProvider as we need to run the same test method multiple times with different data sets. Also every run would display a different output message (based on the input from the excel) on the web front end.Ex:1 . First record - The display message is " Customer info is correct" (Smith, john, 45, testaddress 123, customer info is correct)2. Second record - The display message is " Cusomter info is incorrect"3. Third record - The display message is " Customer info has been already entered"How do I handle my TestNG to PASS/FAIL based on the expected message(The message mentioned against the specific record on the excel sheet) against / actual message being displayed on the page.Can we use the assertions (multiple assertions ?) on the Switch Case ?Kindly advisePS: Attached the excel sheet for your reference.Thanks,Karthik<<@Test(dataProvider = "abc", dataProviderClass = DataFactory.class)public void donortoolcalc(String donorname, String donorage,......, String expectedMessage) throws Throwable {
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
This message is eligible for Automatic Cleanup! (sapsdkar...@gmail.com) Add cleanup rule | More info