binnu
5 years agoOccasional Contributor
How to export a function from one unit to another unit in JavaScript.
Hi Everyone, I'm trying to export a function from one unit to another unit, i used "module.exports.Test1 = Test1;" command in the unit1 to export Test1 function and used "var objin = require("Dat...
- 5 years ago
Ah...
So, rather than a for loop to iterate through your driver, a better way is to do a "while" loop because it is an iteratiive collection that you need to move a point for.
In fact, looking at your code, I'm not sure why you need the two functions.
See the example at https://support.smartbear.com/testcomplete/docs/reference/program-objects/ddt/exceldriver.html on how to use a driver.