cbeck
4 years agoSenior Member
I found another feature request where cunderw provided a script which seems to work for finding usage within a project - https://community.smartbear.com/t5/TestComplete-Feature-Requests/Variables-Find-Unused-show-where-used/idi-p/132393
It's a powershell script outside of TestComplete but is still helpful.
write-host "This script searches all TestComplete Script and Key Word Test files for specified Search String"
$searchString = Read-Host "Enter the string to search for: "
if ($PSVersionTable.PSVersion.Major -LT 3)
{
get-childitem -include *.tcKDTest, *.sj -path <path to test repository> -recurse | select-string -pattern $searchString | select filename, path, line -unique | out-gridview
read-host "Press enter to continue..."
}
ELse
{
get-childitem -include *.tcKDTest, *.sj -path <path to test repository> -recurse | select-string -pattern $searchString | select filename, path, line -unique | out-GridView -passthru | ForEach-Object {start "C:\Program Files (x86)\Notepad++\notepad++.exe" $_.Path}
}
Related Content
- 5 years ago
- 10 years ago