| || |
I have a question.
After creating test frame for main page of my web application i need to create windows declarations for each page in the same window. When do i need to stop? In other words, do i need to create windows declaration for ALL pages or maybe there is anothere procedure which will help me to do it faster?
Thank you all.
Just the declare the windows that you need to interact with. If the application is very large, I find that declaring windows in groups corresponding to the modules in the application is the best approach. Declare these groups of windows as you come to them rather than from the onset.
Thank you for information.
Can you please explain what's time box planing is?
In some cases, I don't find it useful to record window declarations at all. Think about what objects you're interacting with on each page. Remember the current page is always BrowserPage. This will work to refer to whatever page you're on, as long as your web site doesn't use frames. If it does, you can still just declare the frame, then manipulate dynamically-instantiated objects within each frame.
window BrowserChild ParentFrame
window BrowserChild MenuFrame
window BrowserChild DataFrame
You can refer to
MenuFrame.HtmlLink ("Reports").Click ()
DataFrame.HtmlTextField ("#1").SetText (sUser)
In this example, there are two frames, MenuFrame and DataFrame. If there were no frames, you could refer to
BrowserPage.HtmlLink ("Reports").Click ()
or BP.HtmlLink ("Reports").Click ()
if you declare
const BP = BrowserPage somewhere in your frame.
Hope this helps.
John W Green