Passing query instead of findTestData?

Hi, is it possible to pass a query instead of findTestData?

My script currently uses

DBData dbTestData = findTestData('Unique Data Source/Unique - User Registration Database')

and I’d like it to be

DBData dbTestData = CustomKeywords.'com.helper.database.DatabaseConnect.executeQuery'("select * from tableA")

so I can pass in variables into my query but this doesn’t work. Another option is to pass in variables into the built in findTestData Connection URL but I do not know how to do that.

You need to create your own reader. Just extend the custom class from DBData. Override the required method. Its just a POC. You need to explore