Wednesday, August 15, 2012 3:23 PM
I've recorded a test using Test Manager, and then created a coded UI test in VS2010. What I am trying to do is to append a prefix to the begining of the recorded data to get past test run failure do to data already existing.I have 30 or so product types that need to be created during each test run.
In my test, I entered the value "Power Only" in the product name field. Because each "product name" must be unique, I want to append a value to the beginning of the value I recorded, such as "v1.0.3+rev.3095-TR1" (version+build+testrun number).
I also want to be able to easily change the value to append as needed and thought that if it could be changed manually in one place of the test code, prior to each test run, it would be easy to maintain.
Thursday, August 16, 2012 6:20 AMModerator
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thank you for your understanding and support.
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
Thursday, August 16, 2012 8:24 PMOwner
You can change the control search properties and use wild cards for the values. For more info please see
How does “Coded UI test” finds a control??
Understanding the code generated by “Coded UI Test” – Part 2
Understanding the Window Search and Windowed Properties
Trevor Hancock (Microsoft)
Please remember to "Mark As Answer" the replies that help.
- Marked As Answer by K Riehl Friday, August 17, 2012 1:59 PM