| || |
Get Script/Test path (location)
Is there anyway to within the script return the script name and path?
p.s. Im currently using TC 3.0 hopefully upgrading soon and C++Script.
Re: Get Script/Test path (location)
Unfortunately, TestComplete does not allow getting the path to the currently executed script unit. You can only get the path to the folder where the project resides by using the Options.Project.Directory property.
If you run a script routine as a test suite, you can use the TestSuites object to get its name. The routine name will be in the "UnitName.RoutineName" format. For example, the following line of code displays the name of the currently executed routine:
<font class="small">Code:</font><hr /><pre>