Forum Discussion

kyork's avatar
kyork
Occasional Contributor
6 days ago
Solved

Copy Keyword Test from one suite to another

Hi, is there an easy way to copy a TestComplete keyword test from one project suite to another so that I don't have to re-record it?  
  • scot1967's avatar
    6 days ago

    Hello Kyork,  

    I will echo what Hassan​ wrote.  I will add and agree that the NameMap merge isn't easy.  The NameMapping gets messy it doesn't scale up well.  We went to script driven tests and stopped using the name map for this reason.  Keyword Tests and the Name Map are really good until you start trying to extend scope to other projects and scale.

    If you can copy and paste your test file and "Add Existing Item" or just copy the test text into the new project file, keep the name maps seperate, and just remap what you need that would be the cleanest way to go.

    The closest we came to a workable solution was a suite with a 'Master' or 'Template' project and a name map we would use to merge into new projects and a few other various things I don't currently remember.  Every project in that suite initially merged with the common NameMap and needed to be re-merged involving conflict resolution if changes needed to be made from or to the master project NameMap.

    • The merge is a one time operation.  It does not remained linked. It must be repeated if you want to update one file or the other file.
    • It is also a one way merge.  You choose the source and destination and then manually resolve the conflicts as they occur.  That is where it gets messy especially with several projects.

    Always use a version control system like git.  You will need it.

    ... If you find my posts helpful drop me a Like👍 Be sure to mark the post as the Solution✅ when you get one to help others out and to credit the one who helped you. 😎