I have a Window(Application) in which you type a customers First and Last Name and the window will display all the information about the customer ie his address, Phone # etc
The name of the window changes with the customers name,so i am not able to close the window when i try to use the window for different set of customers using Data Sheet(Parametrization), this is because the name of the window changes so i am not able to close it to type the name of the next customer.
The code is below, Customer is Grady Brian and window name is JetSearch.
Try spying on one of these windows and get a combination of other proerties that you could use for all customers. Let's say you get the property "regexpwndclass" and it's value is "abc" then you could substitue the above statement as:
Make sure you use the':' and '=' without any spaces. Another way to handle this would be store the name of the customer in a variable. Assuming you have the customer names read from a DataTable, construct a variable with the last and first name so you have a variable 'cust_name'.
cust_name = "Grady, Brian" ...construct using values from DataSheet
You will have to verify this using Object Spy, but most likely "JetSearch: Grady, Brian" is going to be the 'text' property of the window. If so use a statement like this one:
Hope I dind't confuse you too much [img]images/icons/blush.gif[/img]
(I'm hiring Software Development Engineers in Test in Seattle, WA)
I'm trying something similar in a test i have. I've gone into the OR and added title as a page parameter, and made put a regex in the constant for the title value, ie Version\d SomePage. The test is extremely slow after doing this. Any pointers?