Adding a prefix to data entered during a test recorded in Test Manager
-
15 august 2012 15:23
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.
For example:
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.
Thanks,
K Riehl
Ken Riehl
Toate mesajele
-
16 august 2012 06:20Moderator
Hi Ken,
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.
Best regards,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
-
16 august 2012 20:24Proprietar
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??
http://blogs.msdn.com/b/balagans/archive/2009/12/28/9941582.aspxUnderstanding 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.- Marcat ca răspuns de K Riehl 17 august 2012 13:59