Below is my testcase sample
@TestConfigPath("/config/ipp_test_configurations.json")
@Test(enabled=true, dataProvider = "from-json", dataProviderClass = WebDriverProvider.class)
public void disconnectBigTimeExpressFromAppCenter(WebDriver driver)
throws Exception { }
This is how my current test case look like. The annotation given over here will set configurations for running the testcase which happens from a json file.
I don't want to disturb these annotations because they are build and given to us by a third party for running our testcases on their infrastructures or machines
Now I am looking forward to pass one more dataprovider for supplying my testdata which is stored in excel to testcases . Basically, I am looking for some simple strategies like below :-
@Test(enabled=true, dataProvider = "from-json","myNewDP", dataProviderClass = WebDriverProvider.class).
Yes I know the above will throw compiler error. But is there any other way to pass Multiple data providers to one testcase at a time.
I have gone through couple of articles in Internet. They all are trying to merge their dataproviders which wont work in my case .
Thanks in advance,
Bala