Contributions
Re: MongoDB as a data source for data driven testing
Thank you SO much for your response, I appreciateit, at least I know that my approach is feasible. But still, the solution is not clear to me, sorry for my ignorance. Suppose that I have the following simple code: import com.gmongo.GMongo def mongo = new GMongo() def db = mongo.getDB('test') def results = db.myCollection.findOne() def username = results.USERNAME def city = results.CITY def password = results.PASSWORD I already sent the request to my data source (mongodb) and I already have the variables for my API test (username, city and password). How can I integrate USERNAME, CITY and PASSWORD to my test cases? Do I need to create a new script? Can I performmy request in the same script? Sorry for my ignorance, but I'm little lost, I don't know how to organize the structureof my test cases. Thank you again!1.8KViews0likes0CommentsMongoDB as a data source for data driven testing
I want to use MongoDB as a data source for data-driventesting. I'm able to connect to MongoDB via Groovy Scripts and I'm able to retrievedata. But I'm trying to figure out how to use that data as an input for my API validations... Because the SoapUI data source only allowsexecuting SQL sentences. In my case, I have all the data I need in Groovy variables, how can use now this data as a part of an API request? Thank you so much in advance, believeme, I've tried everything before asking...Solved1.9KViews0likes2CommentsRe: DB support
Hi, I'm having a similar question. I want to use MongoDB as a data source for data-driventesting. I'm able to connect so MongoDB via Groovy Scripts and I'm able to retrievedata. But I'm trying to figure out how to use that data as an input for my API validations... Because the SoapUI data source only allowsexecuting SQL sentences. In my case, I have all the data I need in Groovy variables, how can use now this data as a part of an API request? Thank you so much in advance1.4KViews0likes2Comments