Skip to content

Executetestcase function

This function is used to invoke a test case based on the page title which is defined in the excel file.
This function takes in three parameters and executed using RUN command.
First parameter: file-path is the mandatory parameter .
Second parameter: Orientation (either H for horizontal or V for vertical) Orientation is the optional parameter the default Orientation is ‘Horizontal’.
Third parameter: TestCaseCounter is an optional parameter and it is used to limit the number of test cases to execute from the sheet.

Syntax: ${__executetestcase(Filepath, Orientation,TestCaseCounter)}

Note: First test case should have the page title which is used in the second test case and similarly for the third test case.

Below is an sample excel sheet for this function which has page title and test case name.

Back To Top