Wednesday, August 15, 2012 8:45 AM
I wanna to have some hard code as well as some recoded methods in my .cs file of my test case.But it doesn't allow me for the same.
Can some one help me on this in details.
Thursday, August 16, 2012 4:17 AM
Hi DK Nayak,
Please give us more details,What error you are getting if you do hand coding in .CS file
Thanks and Regards -Rajendra
Saturday, August 18, 2012 6:34 PM
Thank you for your immediate responce.....
Actually sometimes handling some of the control becomes impossible(difficult).So at that I did recording for that control and called the RecordedMethod at required sequence in the[ TestMethod].Say the case below:
1)Launch the url
2)Give login credentials
3)Click on ComposeMail button
4)Entering the mail id in the UIToEdit textbox
5)Entering the subject UISubject textbox
6)While entering the body to a htmlframe control I recorded the flow(including the text of the body)and generated the code.
4)Finally click on Send button to send the mail
But when I execute the test project it gives up a system generated soung when the control reaches to RecodedMethod .
Thus the mail is sent but the body do not have the text that is entered through the RecordedMethod.
Tuesday, August 21, 2012 6:26 AMModerator
Thank you for posting in the MSDN forum.
We often refer this blog to Hand-coding a Coded UI Test. But if possible, I suggest you record the UI test for your app, and then generate it to code, as you said that sometimes it is hard to write handle code for an app, if you record a UI test for it, you could also get much more useful information for you to handle code, and then you could add your code in it.
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Friday, August 24, 2012 4:30 AM