Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use UIMap Coded UI Test Builder for local testing

I have been playing around with testing a simple webforms ASP.NET website application and have come across the UIMap tool in Visual Studio 2010. However I do not know how to use it correctly and it never seems to work.

  • Do I need to be running my application in debug mode while recording?
  • Once the test is generated is there any way of visually seeing the steps as they are being performed?
  • Should I have the browser open before I begin recording, or should I do that once I start and browse to the page that way?
  • Can I use Chrome for the browser, or does it have to be IE?
  • Does using Dual Screens affect the running of the test?

Thanks for your help!

like image 740
Matthew Pigram Avatar asked Apr 27 '26 03:04

Matthew Pigram


1 Answers

Do I need to be running my application in debug mode while recording?

No. You can not use debug/release mode of Visual Studio and do an record at same time. Start the application separately. This has the big advantage that you can test different versions of our application with one set of tests.

Once the test is generated is there any way of visually seeing the steps as they are being performed?

No. You can get a log from test-run and of course you see the test-run in self, but there is no static graphic ... to be honest I never miss such feature.

Should I have the browser open before I begin recording, or should I do that once I start and browse to the page that way?

That you can do as you please. Of course you can record the browser start. We start browser before, because browser start is not really a part of the test.

Can I use Chrome for the browser, or does it have to be IE?

At the moment IE is the forced browser. But there are ways to use other browsers.

Does using Dual Screens affect the running of the test?

No. All fine with dual screen. But don't forget when test is running you can't use your mouse and keyboard - you will fight the CUIT ;). We use a separate PC for long CUIT.

Here are some links which may be helpful for you:

  • should the coded ui test project share a solution or not?
  • Unit Testing Frameworks for Visual Studio 2012 Cons/Pros
  • Which Unit Test framework to use for the projects that requires User Input
like image 66
Micha Avatar answered Apr 28 '26 19:04

Micha