here is the senario:
I navigate from the main page to another page with the link on the main page ..then comeback to the main page and navigate to yet another page following another link from the main page.then come back again to the main page.
When i try to record a testcase
I got the the error stating that:
window XXX is already defined at line(something)
so i went to the frame file and changed the window XXX to XXX1.
now when i try to record the test it records fine but does not run.
How can i change the .inc fine(include file) that contains the code for the testcase?
Eventually you're going to want to get away from using the Recorder and just hand code your tests. I realize it is a very helpful thing as you are learning to work the tool, but eventually you are going to find that the recorder is somewhat "in the way."
About the only time I use the recorder is as a last resort when I just flat can't get Silk to manipulate an object, and I record actions to see what the tool "sees" as I act on the object.
In your case, window xxx is defined and should only be defined once. When you go back to it Browser.Back.Click, you should be returning to and interacting with window xxx, the same window you just left.
A useful trick that I stumbled across on accident (for recording window declarations):
Try putting all your declarations in a file other than frame.inc.
Keep frame.inc around but always leave it completely blank. This way, when SilkTest adds new declarations to your project they go into a 'scratch file' that you can cut and paste from into your 'real declarations file'.