Forum Discussion

wdc's avatar
Occasional Contributor
7 years ago

Data-Driven Loop

I have created a Data-Driven loop to read a .csv file.  For each record read, I want to use the data as a parameter for a TestedApp. I have tried many different things to no avail.  Any suggestions? ...
  • tristaanogre's avatar
    7 years ago

    OK... I see your problem.  Change the line I've marked in bold


    Data Driven Loop (I read 5 records in the csv file.For each loop 

        Run Code Snippet:  TestedApps.WWCabinetDoorOrder.Params.ActiveParams.CommandLineParameters =      KeywordTests.TransferOrders.Variables.LoopOrdersToTransfer.Value(0)  

        Run Code Snippet: TestedApps.WWCabinetDoorOrder.Run()


    Note the parenthesis on the "Run" method.  In my reproduction, if you don't have that, the application runs, but it doesn't use the parameters.