Reply
Regular Contributor
dclaar
Posts: 1,128
Registered: 09-18-2008
0
Accepted Solution

Determine path of itest executable from within itest?

Is there any way from within iTest of determining the path to itest? For example, if I have both 3.2 and 3.4 on my system, and I start a test in 3.2, I would like to use the 3.2 itestcli; if I start in 3.4, then its version. I didn't see anything in info; firing up a tclsh and using info doesn't work, because it is using the system's tcl.

 

 

Community Leader
PaulD
Posts: 1,214
Registered: 09-02-2008

Re: Determine path of itest executable from within itest?

One suggestion is to modify the startup for each iTest to fill in an appropriate environment variable, or to update the PATH variable.  Will that suffice?

Regular Contributor
dclaar
Posts: 1,128
Registered: 09-18-2008
0

Re: Determine path of itest executable from within itest?

I guess I could prepend the appropriate path, and then the right one will execute. Really I only need to do that to the one I'm testing...yeah, sounds good. Thanks!

Expert
KumarS
Posts: 2,233
Registered: 08-30-2008
0

Re: Determine path of itest executable from within itest?

It may not be a bad idea to add an info command option to provide the path of installation directory of the iTest.

Regular Contributor
dclaar
Posts: 1,128
Registered: 09-18-2008
0

Re: Determine path of itest executable from within itest?

I'd agree; it would be nice to have an info for that.