SilkTest Question:
Download Questions PDF

Need to use the relative paths in my SilkTest Project. How to change the absolute paths to relative paths?

Answer:

Need to use the relative paths in my SilkTest Project. How to change the absolute paths to relative paths. 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.


Answer1:
Say you have following organization of files
C:TestScriptScript.t
C:TestWDecWDec.inc
Now in Scrpt.t file to include WDec.inc, code following
1. use " C:TestWDecWDec.inc" --> Absolute
OR
2. use "..WDecWDec.inc" --> Relative [Move one level up from Script folder, then go to WDec folder]

Answer2:
I think if you work with Silk Project, it offers 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, ..configconfig.inc etc etc,

Download SilkTest Interview Questions And Answers PDF

Previous QuestionNext Question
When I try to enable extensions for my browser i.e. IE, the following error occurs?I am trying to run a remote application in Windows 2003. But everytime time I am getting the following error: