Lagencie's avatar
Lagencie
Frequent Contributor
7 years ago
Status:
New Idea

Rightclick option to show all used steps

It would be nice to have this feature, for basically every single item available. 

Rightclick on a script -> search all usages to show in which keyword tests you used the specific script 
Rightclick on a mapped object -> search all usages to show where you already use this mapped object 

  • cunderw's avatar
    cunderw
    Community 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}
       }