Clear Cell in File

This is a pre-built Action located under the @Excel Element. The functionality of this Action in Avo Assure is to clear the content of a specific cell in the Excel sheet based on the row and column numbers provided in the Input Value column. The result of this operation is stored in a dynamic variable for further use during test execution.

Syntax

Input Value: <rowNum>;<ColNum>

Argument
Description

<rowNum> (Required)

Provide the row number of the Excel file from which you want to clear the cell value.

<ColNum> (Required)

Provide the column number of the Excel file from which you want to clear the cell value.

Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable>;<Dynamic Variable>(Optional)

Both dynamic variable stores the status as True or False.

Example: Clearing Specific Cell Content in an Excel File

In this example, we explain how to clear the content of a specific cell in an Excel file using the Clear Cell in File action.

  • Action: Clear Cell in File

  • Input Value: 5;2

    • The row number (5) specifies the row position in the Excel sheet from which the content needs to be cleared.

    • The column number (2) specifies the column position within the same sheet. Combined with the row number, these coordinates identify the exact cell (Row 5, Column 2) in the Excel file that will be cleared.

  • Output Value: {Status}

    • The execution status of the action is stored in this {Status} variable with the following possible values:

      • True: If the cell is cleared successfully.

      • False: If the cell is not cleared successfully.

  • Logical Explanation: The Clear Cell in File action takes the value from the Input value column 5;2 and clears the content of the specified cell located at row 5, column 2 in the configured Excel file. The execution status of this operation is stored in the {Status} variable as true.

Last updated

Was this helpful?