In Panaya’s codeless test automation platform, script cloning and component reuse are essential for efficiently scaling test coverage. Understanding how these features work—and their limitations—is key to maintaining robust, maintainable test assets.
How Script Cloning Works
Cloning a script creates a new, independent copy of the original script that has a new ID and a separate link.
The cloned script retains the same structure and steps and the references, meaning it continues to rely on the same shared components as the original at the time of cloning.
Important: Cloned scripts are not linked to the original script. Changes made to the original script after cloning will not affect the clone.
How Component Versioning Works
Panaya does not support multiple versions of a component. There is only one active version of each component.
When a component is updated and saved, all scripts using that component are immediately affected, regardless of whether the scripts were cloned or which cycle they belong to.
Synchronization is instant upon saving the component.
Best Practices for Cloning Scripts and Components
Clone scripts for reuse, not for versioning. Use cloning to adapt scripts for different test cycles or scenarios.
Document the purpose of each clone. Use naming conventions and comments to indicate why a script was cloned and what changes were made.
Avoid unnecessary component duplication as it can lead to several long-term issues in your test automation environment (e.g. increased maintenance overhead, loss of centralized control and reduced reusability and scalability. Reuse components where possible to maintain consistency and reduce maintenance overhead. Make sure you search before you create, review newly created components, retain documented purposes, usage and naming conventions, and assign ownership.
Test component changes in a sandbox. Before updating a shared component, validate the changes in a test script.
Use tags or folders to organize clones. This helps in tracking lineage and managing test assets efficiently.