Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingSilkTest @ OneStopTesting

Message Icon Topic: How to use "USE" and include-files

Post Reply Post New Topic
Author Message
jack45
Newbie
Newbie


Joined: 31Mar2007
Online Status: Offline
Posts: 27
Quote jack45 Replybullet 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 IP Logged
jack45
Newbie
Newbie


Joined: 31Mar2007
Online Status: Offline
Posts: 27
Quote jack45 Replybullet 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 IP Logged
Post Reply Post New Topic
Printable version Printable version

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



This page was generated in 0.094 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting