Interview Questions

How to change the absolute paths to relative paths?

SilkTest Questions and Anwsers


(Continued from previous question...)

125. How to change the absolute paths to relative paths?

Need to use the relative paths in my SilkTest Project. How to change the absolute paths to relative paths? (Note:The purpose is that, when package the project, that package can be used on any other machine, irrespective of the paths defined, it should run on that machine too.)


Silk Projectoffers you some out of the box solution for this. If your suite is not implemented as a project, the best option is to use relative path in the Runtime options dialogbox, with the Root of the suite hardcoded.
i.e. Use Path = S:\Suite << S maps to root of the automation suite
and use files are relative .i.e. frame.inc, ..\config\config.inc etc etc,

(Continued on next question...)

Other Interview Questions