I have scripts that use [info homeDir] and I would like to override the value when executing itestRT. Is [info homeDir] set using an enviroment variable?
I have scripts that use [info homeDir] and I would like to override the value when executing itestRT. Is [info homeDir] set using an enviroment variable?
The command [info homeDir] returns the path to the Windows home directory of the current user which is the default path considered by iTest while installing. I believe we could not override the old path with new value as it is the default path and it might be not possible to set the environments variables to new path. But below workaround may helpful for you: 1. Instead of giving [info homedir], specify the home directory path as a parameter in the testcase. eg: home_dir C:\Users\xxx 2. In the tescase, for the required step insert the paramter value. eg: set a
3. Now export the itest file to the itar directory and execute the test case in iTestRT by passing the new "home directory" path as parameters which overrides the existing directory.Below is the command for your reference: C:\Program Files\Spirent Communications\iTest 4.4\iTestRT>itestrt --licenseServer XX.XX.XX.XX --itar <itar_path> --param param1="D:\iTest\XXX" --test project://my _project/test_cases/new_testcase4.fftc --format "project://resources/reports23/test_report_templates/HTML" --report "file://D:/XXX/Test/a.html"
20 People are following this question.