Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Testing Tools @ OneStopTesting : SilkTest @ OneStopTesting |
Topic: How to use "USE" and include-files |
|
Author | Message |
jack45
Newbie Joined: 31Mar2007 Online Status: Offline Posts: 27 |
Topic: How to use "USE" and include-files Posted: 31Mar2007 at 3:55am |
Could someone please explain to me how including inc-files works.
My AUT consists of several areas for different business divisions. I wanted to structure my window declarations and tests like that: All common windows in the frame.inc. All windows for division A in A.inc which include frame.inc (use "frame.inc"). All windows for division B in B.inc which include frame.inc (use "frame.inc"). All tests for division A in A.t which include A.inc (use "A.inc"). All tests for division B in B.t which include B.inc (use "B.inc"). Somehow this does not work. All new declaration are put in A.inc no matter which testfile I work in. Test from A.t use declaration from B.inc they shouldn’t know about. So what's the trick here? Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
jack45
Newbie Joined: 31Mar2007 Online Status: Offline Posts: 27 |
Posted: 31Mar2007 at 4:28am |
We use a Master include file. The master include file is nothing but an include file with USE statements in it. Use "A.inc"
Use "B.inc" We then put the master.inc file in the runtime use files path. Now you have access to all the definitions and methods you right no matter which .t you are running. But I use silk way different that most people. I treat it like a programming language and think outside the box. |
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.