I have a series of stores that I am testing in an ecommerce platform, and each store has a series of properties that I am looking at automating a test for. Is it possible to have a data provider that gives data across a test suite instead of just a test in TestNG? I'm trying not to use the testNG.xml file as mechanism because these properties are coming directly from a database call.
["StoreName", "username", "password", "credit-enabled", "items-store", "shipping-location", ]
What I need the automation to do is the following:
- @Test Login with the username and password in the current dataset row.
- @Test Verify the StoreName and items-store
- @Test Navigate to the administration and verify that credit-enabled setting for the store and the shipping location of the store is correct given the items-store value.
But each step here would have to be its separate test.