Ask a Question

Ability to Duplicate Tests

0 Kudos

Ability to Duplicate Tests

I have a test that simulates user Logon and Logoff

The test in between performs various other page check actions

 

This KW test is a base for all other tests.

 

I would like the ability to duplicate a test save me and my team rewriting the base components every time

 

The duplication would replicate each part of the test - not link (unless there is a function call)

 

I know this can be done a long way round using File Explorer but I was looking for something more user friendly

4 Comments
Marsha_R
Community Hero

@Lee_M We just wrote a login test and a logout test that are separate from everything else and we call those from the other tests when we need them.

Lee_M
Community Leader

To write any test you need to first login

 

I am trying to write a template that others in my team can copy from

Marsha_R
Community Hero

I would argue that you need to login and logout to run a test but not to write it.

 

If you don't want to make a separate test/function for login and logout that everyone can use, then just write a test with login and logout and whatever you want in the middle and put it where everyone can find it.  They can use Select All, Copy, and Paste to get their own copy of it into their test and start from there.

Lee_M
Community Leader

That is the way I am building my tests

 

KW tests have 'modules' that users can drag and drop depending on what they want to test

I can't put login with an event handler OnStartTest which was an idea because that EH start if you call a test from within a test

 

I think the duplicate test feature would be very handy e.g. if you were to write lots of A/B tests

Announcements
Welcome to the TestComplete Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Join us and watch the welcome video:
Announcements