Get Line Number

This is pre-built Action located under the @Generic Element Name. It instructs the Avo Assure Client to fetch the line number of the content of desired .txt file and save the result in the given output variable.

Syntax

Input: <file path>;<content>

  • In Input value user need to provide file path (file which you want to fetch the line number from) and the content (which will retrieve the line number of this single string).

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

Usecase/Example

Scenario: Verifying Line Numbers in Files

When you are testing a review tool that allows users to upload files. It's important to ensure that the tool correctly identifies and displays line numbers for each line.

Input

C:\Users \Documents\About Avo Assure.txt;Features

Expected Result

This action needs to retrieve the line number of content which is provided as Input in Input value.

Output

This Action will store the line number of the fetched content of the file in {result} Variable, which can be utilized for display or other purposes.

Last updated

Was this helpful?