Forum Discussion

ashly's avatar
ashly
Contributor
5 days ago
Solved

Reusing a keyword test (selecting different files)

Hi, I have reused a keyword test that is used in one project suite with another project suite. In one project suite I have created a keyword test to open a file like shown below. In a different ...
  • Marsha_R's avatar
    5 days ago

    You can make the keyword test work with a variable instead of the hard coded file name. That way you can set the variable in each test as needed.

    Instead of using the path name of the actual file, you will use a variable that you create and then put the path name in the variable. 

    https://support.smartbear.com/testcomplete/docs/keyword-testing/variables.html