Hello @segujja_joseph can you check @DataProvider functionality from TESTNG? this will help you to use dummy data parameterized into the test method.
How you do this?
Create a method and name it anything you want, annotate it with @DataProvider annotation from TESTNG and then return your dummy data you want from it to be used to different test classes dynamically.
Here is the example:
@DataProvider
private static final object getMoney() {
return new object {
{10, “USD”},
{20, “EUR”}
};
}
hello @valens
thank you for this sugestion, alhtough in making intergration we are testing the service class against an actual data base that is to say we need to load data to the actual data base then call all the service method
unless i have got it correctly but using @DataProvider acts on in memory not the data base i may be wrong this but thats what i know of TestNG
you can enlighten me more of if otherwise and how we can relate with an actual data base