Solved
Forum Discussion
sriram_sig
Contributor
Thank you tristaanogre . I did refer the testcomplete documentation and understood how it is being done
https://support.smartbear.com/testcomplete/docs/reference/program-objects/storages/ini.html
I would also like to know the best way to implement it, lets say i have two script units - A and B
In UnitA if create a object to read the INI file and then trying to use it in a different unit
[UNITA] def Test: ini = Storages.INI("C:\MyFile.ini")
What would be the best way to use it in UNITB?
- Assign "ini" object to Project variable and make use of it elsewhere instead of trying to read it again
- Or Call [UNITA].Test() and fetch the object using the return statement
tristaanogre
6 years agoEsteemed Contributor
Six one way, half a dozen the other.
Personally, I lean away from using global variables and prefer to reference code units.
- sriram_sig6 years agoContributor
Thank you
Related Content
Recent Discussions
- 13 hours agodhundley