question

richardvanschaik avatar image
richardvanschaik asked Philip.Joung edited

Can [info homeDir] be set using environement variables before itestRT is executed.

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?

iTest Runtime (itestrt)environment variables
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
APavuluri avatar image
APavuluri answered

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"

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.