How to use "USE" and include-files
Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: SilkTest @ OneStopTesting
Forum Discription: SilkTest is an automation tool for testing the functionality of enterprise applications in most versions of Windows, Sun Solaris 9 & 10, and Red Hat Enterprise Linux WS 2.1 & 3.0.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=408
Printed Date: 17Nov2024 at 4:52am
Topic: How to use "USE" and include-files
Posted By: jack45
Subject: How to use "USE" and include-files
Date 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?
|
Replies:
Posted By: jack45
Date 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.
|
|