|
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. |