I’m testing a windows application using QTP. Each action in it involves multiple windows. Apparently, few actions may involve similar set of windows. I’m looking for a way to automate swift navigation between these windows. Kindly help
Question ID: 104867
0
0
Marked as spam
Posted by (Questions: 1, Answers: 3)
Asked on February 28, 2013 6:26 am
59 views
Answers (2)
1
Private answer

Look at the what differentiates each windows. Try to use object spy on each window and see whats unique and reusable about them, this is often the title (text property), index, style, object class, hwnd id, often the focus shift to the new window so you can use the focus property. Then, since these are dynamic windows you will probably have to write your test using descriptive programming.

Marked as spam
Posted by (Questions: 3, Answers: 12)
Answered on February 28, 2013 6:38 pm
0
Private answer

The problem is each window, pops up several windows within it. when I say pops up, I mean on click of every button in that particular window. so I'm finding it difficult to capture all the objects pertaining to an action. Is it better to capture each window as an action?

Marked as spam
Posted by (Questions: 1, Answers: 3)
Answered on February 28, 2013 8:19 pm
0
It really depends on what you are trying to accomplish. Are you trying to verify on each click, that x number of windows opened for a specific link? Do you care about the data in each popup? Are you just trying to close each popup? If you have multiple windows that opened and you need to verify something specific about a window you will need a way to uniquely identify it.Each window most likely has a specific title that you can use in your code. Worst case scenario is that there is nothing unique about each window, in this case I would ask your developer to add some hook or identity property.
( at February 28, 2013 8:59 pm)
0
Thanks for your repeated response.Verification includes if the right window was opened on click of a button and also if the functionality was accomplished. say for example- there is a ''change address'' button. when we click on it, the right window should be opened and after the implementation, the address change should be reflected.
( at February 28, 2013 10:08 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top