Copy Excel Workbook
This is a pre-built Action located under the @Excel Element. The functionality of this Action in Avo Assure is to copy the content from one Excel file to another. The result of this operation is stored in a dynamic variable for further use during test execution.
Syntax
Input Value: <FilePath1>;<FilePath2>;<Option>(Optional);<text/special>(Optional)
<FilePath1> (Required)
Provide the path of the source Excel workbook (first Excel file).
<FilePath2> (Required)
Provide the path of the destination Excel workbook (second Excel file).
<Option>
Option (Optional) Defines the sheet copy behavior.
0 or empty: Appends unique sheets and overwrites common sheets.
For more information on how to use the Option parameter, refer to the note section below.
<text/special> (Optional)
Copy method
text: copies only data
special: copies data with formatting (Windows OS only).
For more information on how to use the text/special parameter, refer to the note section below.
Output Value: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
Both dynamic variable stores the status as True or False.
Example: Copying Data from One Excel Workbook to Another
In this example, we explain how to copy content from one Excel workbook to another using the Copy Excel Workbook action.
Action: Copy Excel Workbook
Input Value: C:\Test\Source.xlsx;C:\Test\Destination.xlsx
The input value (C:\Test\Source.xlsx;C:\Test\Destination.xlsx) specifies the source and destination Excel file paths. The action copies all the content from the source workbook (Source.xlsx) to the destination workbook (Destination.xlsx).
Output Value: {Status}
The execution status of the action is stored in this {Status} variable with the following possible values:
True: If the workbook is copied successfully.
False: If the workbook is not copied successfully.
Logical Explanation: The Copy Excel Workbook action reads the value from the Input Value column C:\Test\Source.xlsx;C:\Test\Destination.xlsx and performs a copy operation from the specified source file to the destination file. After execution, the result of this operation is stored in the {Status} variable as true.

Last updated
Was this helpful?