Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have done the script for creating a new company through codedui in vsts2010.
In database,
1. i given the value for 'company name' as 'ABcd' but while running the script the application typing as 'abcd' then throw the exceptions(Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException)

2. I given the value for 'Email' as 'xyz@gmail.com' but while running the script the application typing as 'xyz2gmail.com'


Pls give me the proper conclusion.

Thanks in advance,
sathya..
Posted
Comments
fjdiewornncalwe 13-Dec-12 8:58am    
Perhaps you could add a code snippet of your script. Without that, we won't really know what is going on.
1) Are you performing inserts directly to the table, or are you calling a stored procedure.
2) Are you sure the system isn't performing some string manipulation before insert?
Without seeing your code, we can't really give you much more help.
sathyatv 14-Dec-12 1:34am    
actually we calling the partial class file for identifying the field name and html control
sathyatv 14-Dec-12 1:44am    
system not allowing to enter the uppercase in the 'companyname' field. If i given the lowercase value then it taken

1 solution

May be because of the system taking key code,
Try using a resource file or xml file to keep your data and use the same at the required location.
 
Share this answer
 
Comments
sathyatv 14-Dec-12 0:16am    
i need proper conclusion.... pls give me the conclusion for coded ui or vsts2010 related
AmitDutta_Bokaro 14-Dec-12 0:43am    
To resolve this you can opt from many posibilities like
a) search the string 'ABcd' and /or 'xyz2gmail.com' in the generated code and change what you like there.

b) add aresource file, put texts for company name and email id over there and use the text present in resource file
its code will be ResourceClassName.Key and use that where ever applicable

c) Define your tags in any xml file and using linq fetch the required data at the desired location.

Suggestion: opt a or b, it will be easy for you.
sathyatv 14-Dec-12 1:42am    
No, actually i can get the value from db while running the script , but while entering the words in the field it taken as all words are lower case and throw the exceptions.
sathyatv 14-Dec-12 1:44am    
system not allowing to enter the uppercase in the 'companyname' field. If i given the lowercase value then it taken

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900