Need to use the relative paths in my SilkTest Project. How to change the absolute paths to relative paths?
Submitted by: AdministratorNeed 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,
Submitted by: Administrator
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,
Submitted by: Administrator
Read Online SilkTest Job Interview Questions And Answers
Top SilkTest Questions
☺ | How to search for html link? |
☺ | How to read .xls file contents without using the ddt wizard? |
☺ | Need help regd. silk test runing thr .bat file on cmd prompt? |
☺ | How to launch 2 web application windows simultaneously thru Silktest? |
☺ | Can SilkTest run on Mac? |
Top Application Program Categories
☺ | AutoCAD Interview Questions. |
☺ | Microsoft Office Interview Questions. |
☺ | Microsoft Outlook Interview Questions. |
☺ | Microsoft Excel Interview Questions. |
☺ | WPF Interview Questions. |