Do we need to export all the constants declared in another unit in order to use it in another unit?
Hello,
I created several constants and functions in another unit in TestComplete using javascript as the scripting language. In order for me to use them in another unit, do I need to import & export them one by one? Is there a better method?
i.e (Constant Units)
/columns (RSR)
const colSelect_RSR = 0
const colSts_RSR = 10
const colAsset_RSR = 4
const colRsn_RSR = 11
const colUnits_RSR = 24
const colInv_RSR = 25
const colCap_RSR = 26
const colSvGrp_RSR = 28
Do I need to export them to be able t use in another unit? Help please!
//Export constants
module.exports.colSelect_RSR= colSelect_RSR;
module.exports.colSts_RSR= colSts_RSR;
module.exports.colAsset_RSR= colAsset_RSR;
module.exports.colRsn_RSR= colRsn_RSR;
module.exports.colUnits_RSR= colUnits_RSR;
module.exports.colInv_RSR= colInv_RSR;
module.exports.colInv_RSR= colSelect_RSR;
module.exports.colCap_RSR= colCap_RSR;
module.exports.colSvGrp_RSR= colSvGrp_RSR;
}