Hi @aakashjain8693,
Given the example you provided, your use case makes more sense now.
I personally haven’t worked with those options, but I know @vdespa has made a great video on using DreamFactory API.
Here you can make a request in your test script to pull the data you are looking for, and then to validate the data of the response of your API.
Though, given what @allen.helton just said, that is likely to be a better approach, where you have complete test data initialization, and test data tear down. This is what you see very often in the testing industry, and I would opt for his suggestion as well, as adding more services can complicate things.
If you absolutely need to do connect to a database, for different testing purposes, then feel free to watch the video above.