Forum Discussion

fons_vandeweerd's avatar
fons_vandeweerd
Occasional Contributor
11 years ago

replace Imagename value for all items

I received some test scripts from an outsource partner. In the keyword tests the 'ImageName' is used, for which the value is filled in the automated tests. The value of the 'imagename' is pointing to a local folder from our partner. Can I replace this value for all tests where a local folder is used? Find/replace is not working.

3 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi,


     


    Find/Replace can search through the Value column in the KeywordTest editor. So, if you specify the current path (assigned to ImageName) and the new path in the dialog - TestComplete should replace all values.


     

  • fons_vandeweerd's avatar
    fons_vandeweerd
    Occasional Contributor
    When I try to replace the folder name I get the error message: "Cannot replace text in the Current Document or Panel"

    I'm using version: 9.20.2460.7
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi,


     


    It looks like, in this case, the only way is to modify the keyword test file by using some external utility, for example, Notepad++. The file is located here: 


    <ProjectSuite>\<Project>\KeywordTests\<Test>.tcKDTest