cunderw
9 years agoCommunity Hero
While this would be a great feature for sure, here is a little powershell script that can do this for you as well.
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, *.mds -path <Test Asset Path> -recurse | select-string -pattern $searchString | select filename, path, line -unique | out-gridview
read-host "Press enter to continue..."
}
ELse
{
get-childitem -include *.tcKDTest, *.sj, *js, *.mds -path <Test Asset Path> -recurse | select-string -pattern $searchString | select filename, path, line -unique | out-GridView -passthru | ForEach-Object {start <Path To Text Editor> $_.Path}
}