This may help you ......
Create a Function/Sub in TestComplete which is read your config (Text file or excel file) data and supply it to necessary TestCases.
Lets say you have 100 TC in your TestSuite but you want to run specific data base on the execution flag mention(Y/N) in configuration file. your function should read Y/N and Supply it to TestCase.
Run that function (.vbs or .js or .py) in your TestExecute (Command Like -
"C:\Program Files (x86)\SmartBear\TestExecute 11\Bin\TestExecute.exe" "C:\Work\My Projects\MySuite.pjs" /r /p:MyProj /t:"Script|Unit1|Main"
Function TCConfig(strDatasheetPath)
Set objExo = CreateObject("Excel.Application")
Set objWbo = objExo.Workbooks.open(strDatasheetPath)
objWbo.Application.Visible = True
set objwso = objWbo.Worksheets("Sheet1")
intRows = objwso.UsedRange.Rows.Count
intCols = objwso.usedRange.Columns.Count
For intRow = 2 to intRows
'read Test Case Execution flag, test Case Execution flag in 1st column
strExecutionFlag = objwso.Cells(intRow,1)
If uCase(strExecutionFlag) = "YES" Then
'read Test Case Name here, test Case in 2nd column
strTestCaseName = objwso.Cells(intRow,2)
For introw = 1 to intRows
'Take Required action here for your test case
Next
End If
Next
End Function
"C:\Program Files (x86)\SmartBear\TestExecute 11\Bin\TestExecute.exe" "C:\Work\My Projects\MySuite.pjs" /r /p:MyProj /u:Unit1 /rt:Main"