Synchronisation For Coded UI Test

Posted by SwatiV under ASP.NET category on | Points: 40 | Views : 4902
Problem: Whenever we are trying to automate any applciation through Coded UI Test, Say
Record a SQL server instance launching , providing the credentials , selecting the database , expanding a tree node in the object hierarchy and clicking on New Query

When tried to Play back the Coded Ui test, Test fails to expand the tree node and click on the selected database

Solution for this.:

It is failing due to lack of synchrinisation between each of the mouse clicks
Add the code under every mouse click as

Playback.PlaybackSettings.WaitForReadyLevel = WaitForReadyLevel.AllThreads;

This will help in navigating each request that we have recorded

Comments or Responses

Posted by: Tripati_tutu on: 3/25/2011 Level:Bronze | Status: [Member] | Points: 10
Please try to keep the code inside the code tag, then it will look good.

Posted by: SwatiV on: 3/25/2011 Level:Starter | Status: [Member] | Points: 10
Sure!! Thanks for the Suggestion..Updated accordingly
Posted by: Tripati_tutu on: 3/25/2011 Level:Bronze | Status: [Member] | Points: 10
Nice, thanks for your quick update.
Keep it up...
Posted by: Kalyan1403 on: 10/3/2012 Level:Starter | Status: [Member] | Points: 10
Im a learner for coded ui test. can u please guide me for one flow of the applciation.
In my application i have child items like in menu bar we have child items
1 (if we place the cursor on 1 it displays 2 )
2 (if we place the cursor on 2 it displays3,4,5,6 ) 3

now the query is i want to click 3
while rcording it is identified.but in playback it is not working

Posted by: Kalyan1403 on: 12/15/2012 Level:Starter | Status: [Member] | Points: 10
Im very new to coded ui automation. can u please suggest hw to prepare framework for one complete application

i have group of test cases hw to link and execute ata time
thanks in advance
Kalyan Santosh

Login to post response