Difference between Copy and Duplicate ?

Difference between Copy and Duplicate ?

Leapwork provides the functionality to copy or duplicate the flows/sub-flows. Here are descriptions of both the copy and duplicate features:

Copy
The copy option is used to make a copy of a flow/sub-flow. This feature will copy only the flow/sub-flow, leaving references to the original locators (images, web/desktop elements, sub-flows, files). Copy uses a mechanism called a shallow copy that simply creates a reference to the flow. If any amendment is made to the flow, it reflects into all its references. The flow can be pasted into the same project and across projects.

Duplicate
This feature duplicates the flow/sub-flow, all locators (images, web/desktop elements, sub-flows, files, etc.). The duplicate feature uses a mechanism called “deep copy”. The new flow/sub-flow has no reference back to its origin and is not impacted by any updates made to the original flow. The flow can be pasted into the same project and across projects.

Here is an example of how to copy and duplicate flows in Leapwork.

For any clarification, please contact our Priority Support.