We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More

Forum Discussion

Larry_M's avatar
Larry_M
New Contributor
5 years ago
Solved

Script to verify DB Table workbook

Hello,

 

I'd like to verify that the DB Table project variables, of type Excel, are actually present on the file system. If a file is not present, I'm going to provide a friendly error message in the log and terminate the test.

 

I have a script that iterates over the project variables and checks for type 'DB Table'. I'm stuck trying to determine if the variable is for an Excel file and if it is, the workbook path + filename. In the project's Temporary Variables tab, the column labeled "Default Value" contains the data I want but the Project.Variables.GetVariableDefaultValue() method only seems to return a ColumnCount value, unfortunately.

Any pointers to TC API docs or examples is greatly appreciated.

 

Thanks in advance,

Larry

  • If the method is not working like these examples

    https://support.smartbear.com/testcomplete/docs/reference/program-objects/variables/getvariabledefaultvalue.html

     

    then you should contact Support directly

    https://support.smartbear.com/testcomplete/message

1 Reply

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3

    If the method is not working like these examples

    https://support.smartbear.com/testcomplete/docs/reference/program-objects/variables/getvariabledefaultvalue.html

     

    then you should contact Support directly

    https://support.smartbear.com/testcomplete/message