04-23-2018, 06:48 PM
I test a web application and it has about 34 screens that are similar but unique base on user selections. I have mapped out all the unique items on each screen and have a sub-routine that checks/verifies what screen I am on using .Exist and . GetROProperty("visible").
The problem is, the developers are sloppy and sometimes they just hide a screen (I'm guessing this is what is happening) because I get a .Exist = True and/or GetROProperty("visible") = True when I cannot see those objects at all. This is all due to poor programming, but all I want to do is determine what screen I am on and run the sub-routines that test that screen.
There are many combinations/ways to get to the same screen in this web application, so it makes sense to test it this way. Plus the user has First, <<Previous Next>> and Last as well as Back and Forward buttons they can click at any time and I need to test all these functions. Plus there are selections on each screen that can take them to other screens or even take them back to screens they've already been on. I know it sounds very kludgy and it is but they have complete redesign in the works but for the next two years, this UFT automation has to work.
Fortunately all of the screens have a unique title or some other object that lets me determine where I am so I can compare this with the expected result I have mapped.
Besides using. Exist and GetROProperty("visible"), is there another way? Or maybe there is a completely different way to recognize screens. I noticed that with the exception of one screen, all 34 screens also have unique URLs. Maybe I could use that?
Thank you
The problem is, the developers are sloppy and sometimes they just hide a screen (I'm guessing this is what is happening) because I get a .Exist = True and/or GetROProperty("visible") = True when I cannot see those objects at all. This is all due to poor programming, but all I want to do is determine what screen I am on and run the sub-routines that test that screen.
There are many combinations/ways to get to the same screen in this web application, so it makes sense to test it this way. Plus the user has First, <<Previous Next>> and Last as well as Back and Forward buttons they can click at any time and I need to test all these functions. Plus there are selections on each screen that can take them to other screens or even take them back to screens they've already been on. I know it sounds very kludgy and it is but they have complete redesign in the works but for the next two years, this UFT automation has to work.
Fortunately all of the screens have a unique title or some other object that lets me determine where I am so I can compare this with the expected result I have mapped.
Besides using. Exist and GetROProperty("visible"), is there another way? Or maybe there is a completely different way to recognize screens. I noticed that with the exception of one screen, all 34 screens also have unique URLs. Maybe I could use that?
Thank you