Fanfare Home | Community Home | Contact Us  

13560 -- Relative URI in rendered Tcl scripts

Space Search
Searching iTest 3.4 Release Notes
Table of Contents

The Tcl iTest lib resolves relative URIs as relative to local file path if the file exists.

Relative URIs can be used in the Tcl itest library to specify a testbed or parameter file in the runtime arguments (-b <path_or_uri> and -p <path_or_uri>) and an exported test case is now rendered to use a relative project URI in the Tcl script for the testbed (for example "my_testbed" if the testbed is in the same project folder as the test case).

For backward compatibility with iTest 3.3, the Tcl library still checks if a file exists for a <path_or_uri> relative to the current tclsh directory, and if it does not exist then the URI is resolved relative to root_path in the rendered script (which comes from the test case location).

You need to be aware that if a testbed or parameter file exists in relative file path, then this file will be used instead of a testbed or parameter file that is relative to the rendered test case project URI.

Labels

3_4 3_4 Delete
tcl_rendering tcl_rendering Delete
backward_compatibility backward_compatibility Delete
fixed_in_3_4_1 fixed_in_3_4_1 Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.