views:

939

answers:

2

Been playing with both for a couple hours.

You use a Coded UI test to record some actions and verify them through assertions..

You use a Web Performance test to record some actions and verify them through validation tests/extraction tests... basically same thing... then you can convert to code optionally like the Coded UI Tests

But it seem you can only add a WEB PERFORMACE TEST to a loadTest...

But arent they both pretty much the same thing?? What am I not understand?? Why not allow a Coded UI Test to be inside a load test?

A: 

Coded UI tests are new to 2010. They validate against the actual UI (placement in the DOM, visibility etc.) of the application where the other does not. The Web Performance Test validates against the HTTP/HTTPS connection against the server.

This talks about functional UI testing and shows the use of the Coded UI test.

http://channel9.msdn.com/shows/10-4/10-4-Episode-18-Functional-UI-Testing/

Kevin
I see.. But why not allow load tests on coded UI tests?Is there any changes in Load Tests/Profiling from VS2008-->VS2010 ?
punkouter
Is there a FAQ for Load testing/Profiling ? I only work on small projects so I don't have to worry about too much data for the server.. But it would be interesting to simulate many users and see what class method is taking up alot of time.. or what page..
punkouter
Well probably two reasons. 1. You don't need to test the load on the UI as it will a copy of it for each person. 2. It's not really necessary to test load on a server, and would take up processor time and memory on the machine running the load test agent.
Kevin
Is it possible to run the profiler on a LOAD TEST? Ive been trying to do it now and it just starts and opens IE and waits for me manually to do some things and close it .. But I want the profiler to profile the LOAD TEST. Im not clear on your answer to #1... Are you saying Coded UI tests are really just made for testing values in the DOM as the user performs actions on the DOM?? While Web Performance tests are about going from page to page .. and its not really about testing for client side errors.. that sort of thing ?
punkouter
I tihnk I got it!! Profiler is for the actual code running on a single machine single user and what piece of code is slowing you down... and load tests is for a web application and how scaling affects your web app.... so it doesnt really make sense after all to profile a LOAD TEST..
punkouter
A: 

Coded UI tests are for automated functional testing. These tests will simulate user interaction against the UI, such as button clicks and entering text. Coded UI tests require an interactive desktop environment, because they actually interact with the windows and objects of your application. Coded UI Tests in VS2010 are the equivalent of using something like HP QuickTest Pro or Selenium to drive your automated functional regression tests.

Load tests record and drive your application at the HTTP level. These tests simulate headless user interaction against your app server by sending HTTP requests directly, without a UI. Load tests typically assume that your application works correctly for 1 user, but aim to see if it functions under a heavy user load. Load tests are headless because simulating thousands of users with an interactive UI is not practical. By being headless, a single load agent machine can simulate hundreds or thousands of users. VS load tests are the equivalent of using HP LoadRunner or JMeter to drive virtual user load.

Functional and performance testing are two distinct types, with different strategies and processes. On a given project, you might have hundreds of automated functional tests (coded ui, for example), but only dozens of automated performance tests. You have so many more functional tests because you are testing your app in many different scenarios relative to your business requirements. Whereas with performance tests, you take your top dozen most commonly used transactions and run them under load.

Tom E