Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 13-Dec-12 2:44am
Comments
Marcus Kramer at 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 at 14-Dec-12 1:34am
   
actually we calling the partial class file for identifying the field name and html control
sathyatv at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
sathyatv at 14-Dec-12 0:16am
   
i need proper conclusion.... pls give me the conclusion for coded ui or vsts2010 related
AmitKumarDutta at 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 at 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 at 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)

  Print Answers RSS
0 OriginalGriff 240
1 Kamal Rocks 184
2 PIEBALDconsult 150
3 BillWoodruff 148
4 Jochen Arndt 135
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100