Ask a Question

Pass a variable to a SQL Query in a Keyword Test

mhbrayton72
Occasional Contributor

Pass a variable to a SQL Query in a Keyword Test

How can I use one of my variables in a Keyword SQL Query. Is that built in yet? I see others asking in 2014 and in 2019, but thought I would check again. I would like to do something like this:

select user_name from user_list where user_id = Project.Variables.UID

Thanks for your time!

Mike

1 REPLY 1
rraghvani
Champion Level 2

It can be done with Code Expression, but you will have to write the code to connect to the database, see Working With Databases by Using ADO - Examples

cancel
Showing results for 
Search instead for 
Did you mean: