veronica_glynn
11 years agoContributor
Setting up Excel driver and using variables
Hi! I am running into some difficulties setting up my new scripts with variables contained in my Excel worksheet. I am converting my Keyword tests into Scripts and need to pass in my values contained in the worksheet.
Here is what I know so far.
I need to set up the driver and provide the path to my spreadsheet. Do I just declare my variables as usual and then pass them in? Is that enough for Test Complete to link the two? I have attached a snippet of my script. I need to pass in 3 variables from my spreadsheet; questionTitle, questionStem and SelectAnswer.
Is there anything I am missing? I have read through all of the provided help online and cannot find a good example of the Excel driver getting setup AND data being passed into a test. It always just shows it getting posted to a log which does me no good.
Thank you so much for your help!
PS: Also, how do I call my Project variables ? Some are stored in Excel spreadsheets, some are declared on the Project itself.
Here is what I know so far.
I need to set up the driver and provide the path to my spreadsheet. Do I just declare my variables as usual and then pass them in? Is that enough for Test Complete to link the two? I have attached a snippet of my script. I need to pass in 3 variables from my spreadsheet; questionTitle, questionStem and SelectAnswer.
Is there anything I am missing? I have read through all of the provided help online and cannot find a good example of the Excel driver getting setup AND data being passed into a test. It always just shows it getting posted to a log which does me no good.
Thank you so much for your help!
PS: Also, how do I call my Project variables ? Some are stored in Excel spreadsheets, some are declared on the Project itself.