Forum Discussion

ml's avatar
ml
Contributor
2 years ago
Solved

Copy´n´paste keywordtests?

Hey all,

is it possible to create new keywordtests out of existing ones?

I need to make a bunch of new keywordtests and i dont want to create them all by hand, easier would be to copy existing tests and just changing some objects/variables afterwards. How can i archive this? Does anyone know?

 

Greetz

  • I found a solution:

    - copy the files in windows file explorer 

    - mass rename them with Visual Studio Code find & replace for files

    - add them into TestComplete via Project Explorer -> Add -> Existing items

4 Replies

  • ml's avatar
    ml
    Contributor

    I found a solution:

    - copy the files in windows file explorer 

    - mass rename them with Visual Studio Code find & replace for files

    - add them into TestComplete via Project Explorer -> Add -> Existing items

  • Hi ml 

     

    Within a project this is easy. 

     

    You can click on your specific keyword test. 

     

    Select the line or all the items in your keyword test, to copy> right click copy and then paste into you new test. 

     

    TestComplete supports keyboard shortcuts too (ctrl c + ctrl p) 

     

    Kr 

     

    Vinnie

    • ml's avatar
      ml
      Contributor

      Hey Vinnie,

      i want to copy a large bunch of Keywordtests with its items.

       

      Keywordtest_A -> Keywordtest_A1

      Keywordtest_B -> Keywordtest_B1

      Keywordtest_C -> Keywordtest_C1

      • Hey ml 

         

        Yeah thats doable following my approach. 

         

        rather than selecting just one line you would select all , copy from Keywordtest_A and then paste into  Keywordtest_A1

         

        KR

        Vinnie