how to automate progress bar in windows application using coded ui?
-
Tuesday, September 18, 2012 2:35 PM
Hi,
The below is the one of the window from my application.
In the above windows, I am entering Timeline code as PMK01 and then click on OK button. Once OK button is clicked, the application imports some data. while importing, the application displays the progress bar to show the status of the import process. Now I want to automate this scenario. How to handle the Progress bar in Coded UI so that the code should be wait until the progress bar gets completed.
I need the dynamic way without using any Thread or Playback code.
Please help me on this.
Thanks
Selvaraj C
Selvaraj
All Replies
-
Tuesday, September 18, 2012 2:39 PM
Hi,
In addition to the above, my application is developed using Delphi
Selvaraj
-
Thursday, September 20, 2012 9:18 AMModerator
Hi Selvaraj,
Thank you for posting in the MSDN forum.
We couldn’t see the screen shot, and maybe you could share it with the sky driver. It would be better you could share us the error message when you run the test.
Now I want to automate this scenario. How to handle the Progress bar in Coded UI so that the code should be wait until the progress bar gets completed.
If want to run our coded UI test normally, we need to make sure that the progress bar finished. So you could apply some wait features provided in the playback. For detailed information, see “How To: Make playback wait for certain event?”, hope it could help.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
-
Thursday, September 20, 2012 10:36 AM
Hi,
I have gone through the above link, but my problem is Coded UI Test Builder is not able to recognize the progress bar in my application. I also tried with Spy++ to spy the progress bar but nothing helps.
Thanks
Selvaraj C
Selvaraj
-
Friday, September 21, 2012 5:48 AMModerator
Hi Selvaraj,
Glad to receive your reply.
Do you mean that you couldn’t add assertions for this control in the coded UI test?
I also tried with Spy++ to spy the progress bar but nothing helps.
As you said that if it couldn’t find the control with the Spy++, I’m afraid that it doesn’t support this control in the coded UI test like this thread.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Wednesday, September 26, 2012 9:05 AM

