Forum Discussion

Bill_H's avatar
Bill_H
Occasional Contributor
4 months ago

Can I pass an argument to CheckExcelWorkbook for the name of the Stores Workbook?

Hi all,

Is there a way to pass an argument from BDD or some other way to the CheckExcelWorkbook function? something like below?

 

@then("the user compares the result to the {arg}> GoldCopy")
def step_impl(param1):
   Files.ARGUMENT.CheckExcelWorkbook(("S:\QA\Test\ImportStats*.xlsx")) 

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    If I remember correctly, you can not pass an object as a parameter.