==========================================================================
Visual Studio Team System: Overview of Authoring and Running Tests
==========================================================================
This overview describes the features for authoring and running tests in
Visual Studio Team System and Visual Studio Team Edition for Software Testers.
Opening Tests
-------------
To open a test, open a test project or a test metadata file (a file with
extension .vsmdi) that contains the definition of the test. You can find
test projects and metadata files in Solution Explorer.
Viewing Tests
-------------
To see which tests are available to you, open the Test View window. Or,
if you have installed Team Edition for Software Testers, you can also open
the Test List Editor window to view tests.
To open the Test View window, click the Test menu, point to Windows, and
then click Test View. To open the Test List Editor window (if you have
installed Team Edition for Software Testers), click Test, point to Windows,
and then click Test List Editor.
Running Tests
-------------
You can run tests from the Test View window and the Test List Editor window.
See Viewing Tests to learn how to open these windows. To run one or more
tests displayed in the Test View window, first select the tests in that
window; to select multiple tests, hold either the Shift or CTRL key while
clicking tests. Then click the Run Tests button in the Test View window
toolbar.
If you have installed Visual Studio Team Edition for Software Testers, you can
also use the Test List Editor window to run tests. To run tests in Test List Editor,
select the check box next to each test that you want to run. Then click the
Run Tests button in the Test List Editor window toolbar.
Viewing Test Results
--------------------
When you run a test or a series of tests, the results of the test run will be
shown in the Test Results window. Each individual test in the run is shown on
a separate line so that you can see its status. The window contains an
embedded status bar in the top half of the window that provides you with
summary details of the complete test run.
To see more detailed results for a particular test result, double-click it in
the Test Results window. This opens a window that provides more information
about the particular test result, such as any specific error messages returned
by the test.
Changing the way that tests are run
-----------------------------------
Each time you run one or more tests, a collection of settings is used to
determine how those tests are run. These settings are contained in a “test
run configuration” file.
Here is a partial list of the changes you can make with a test run
configuration file:
- Change the naming scheme for each test run.
- Change the test controller that the tests are run on so that you can run
tests remotely.
- Gather code coverage data for the code being tested so that you can see
which lines of code are covered by your tests.
- Enable and disable test deployment.
- Specify additional files to deploy before tests are run.
- Select a different host, ASP.NET, for running ASP.NET unit tests.
- Select a different host, the smart device test host, for running smart device unit tests.
- Set various properties for the test agents that run your tests.
- Run custom scripts at the start and end of each test run so that you can
set up the test environment exactly as required each time tests are run.
- Set time limits for tests and test runs.
- Set the browser mix and the number of times to repeat Web tests in the
test run.
By default, a test run configuration file is created whenever you create a
new test project. You make changes to this file by double-clicking it in
Solution Explorer and then changing its settings. (Test run configuration
files have the extension .testrunconfig.)
A solution can contain multiple test run configuration files. Only one of
those files, known as the “Active” test run configuration file, is used to
determine the settings that are currently used for test runs. You select
the active test run configuration by clicking Select Active Test Run
Configuration on the Test menu.
-------------------------------------------------------------------------------
Test Types
----------
Using Visual Studio Team Edition for Software Testers, you can create a number
of different test types:
Unit test: Use a unit test to create a programmatic test in C++, Visual C# or
Visual Basic that exercises source code. A unit test calls the methods of a
class, passing suitable parameters, and verifies that the returned value is
what you expect.
There are three specialized variants of unit tests:
- Data-driven unit tests are created when you configure a unit test to be
called repeatedly for each row of a data source. The data from each row
is used by the unit test as input data.
- ASP.NET unit tests are unit tests that exercise code in an ASP.NET Web
application.
- Smart device unit tests are unit tests that are deployed to a smart device
or emulator and then executed by the smart device test host.
Web Test: Web tests consist of an ordered series of HTTP requests that you
record in a browser session using Microsoft Internet Explorer. You can have
the test report specific details about the pages or sites it requests, such
as whether a particular page contains a specified string.
Load Test: You use a load test to encapsulate non-manual tests, such as
unit, Web, and generic tests, and then run them simultaneously by using
virtual users. Running these tests under load generates test results,
including performance and other counters, in tables and in graphs.
Generic test: A generic test is an existing program wrapped to function as a
test in Visual Studio. The following are examples of tests or programs that
you can turn into generic tests:
- An existing test that uses process exit codes to communicate whether the
test passed or failed. 0 indicates passing and any other value indicates
a failure.
- A general program to obtain specific functionality during a test scenario.
- A test or program that uses a special XML file (called a “summary results
file”), to communicate detailed results.
Manual test: The manual test type is used when the test tasks are to be
completed by a test engineer as opposed to an automated script.
Ordered test: Use an ordered test to execute a set of tests in an order you
specify.
-------------------------------------------------------------------------------
没有合适的资源?快使用搜索试试~ 我知道了~
图像上传自由缩放,剪切源码asp.net MVC
共71个文件
cs:12个
js:9个
aspx:8个
4星 · 超过85%的资源 需积分: 9 45 下载量 94 浏览量
2011-05-16
12:37:37
上传
评论
收藏 1.71MB RAR 举报
温馨提示
图像上传自由缩放,剪切源码asp.net MVC 图像上传自由缩放,剪切源码asp.net MVC 图像上传自由缩放,剪切源码asp.net MVC 图像上传自由缩放,剪切源码asp.net MVC
资源推荐
资源详情
资源评论
收起资源包目录
图像上传自由缩放,剪切源码asp.net MVC demo.rar (71个子文件)
MvcApplication1
MvcApplication1.suo 28KB
Controllers
AccountController.cs 13KB
HomeController.cs 486B
Templates
images
tieria.erde.jpg 361KB
lolita.gif 30KB
lulu.jpg 37KB
lockon.stratos.jpg 143KB
c.c.jpg 727KB
Thumbs.db 73KB
portraits
fe48d0143d0f4eb899b0e3b0fb7c3ba4.png 39KB
13a62b1cdf124b0191a8b00e905214d1.png 41KB
App_Data
obj
Debug
MvcApplication1.pdb 42KB
MvcApplication1.csproj.FileListAbsolute.txt 344B
MvcApplication1.dll 21KB
TempPE
bin
MvcApplication1.pdb 42KB
MvcApplication1.dll 21KB
Views
Home
About.aspx 390B
Index.aspx 1KB
Account
ChangePasswordSuccess.aspx 453B
ChangePassword.aspx 2KB
Register.aspx 2KB
LogOn.aspx 1KB
Shared
Site.Master 1KB
LogOnUserControl.ascx 365B
Error.aspx 439B
Web.config 2KB
Default.aspx.cs 825B
Content
images
resize.gif 61B
opts.png 5KB
indicator.gif 462B
generate.png 6KB
pointer.png 258B
Thumbs.db 14KB
Site.css 5KB
jquery.bitmapcutter.css 3KB
Web.config 12KB
Default.aspx 268B
Global.asax.cs 974B
Scripts
MicrosoftAjax.debug.js 304KB
jquery.bitmapcutter.js 20KB
MicrosoftMvcAjax.debug.js 12KB
MicrosoftAjax.js 97KB
jquery-1.3.2-vsdoc.js 198KB
jquery-1.3.2.min.js 58KB
jquery-1.3.2.min-vsdoc.js 198KB
MicrosoftMvcAjax.js 5KB
jquery-1.3.2.js 124KB
MvcApplication1.sln 1KB
MvcApplication1.csproj 7KB
Global.asax 107B
MvcApplication1.csproj.user 1KB
Handlers
BitmapScissors.cs 1KB
Callback.cs 3KB
Helper.cs 4KB
Properties
AssemblyInfo.cs 1KB
Models
Cutter.cs 4KB
MvcApplication1.Tests
Controllers
AccountControllerTest.cs 21KB
HomeControllerTest.cs 1KB
obj
Debug
ResolveAssemblyReference.cache 15KB
MvcApplication1.Tests.pdb 42KB
TempPE
MvcApplication1.Tests.csproj.FileListAbsolute.txt 648B
MvcApplication1.Tests.dll 16KB
bin
Debug
MvcApplication1.pdb 42KB
MvcApplication1.Tests.dll.config 302B
MvcApplication1.dll 21KB
MvcApplication1.Tests.pdb 42KB
MvcApplication1.Tests.dll 16KB
App.config 302B
MvcApplication1.Tests.csproj 3KB
Properties
AssemblyInfo.cs 1KB
AuthoringTests.txt 7KB
共 71 条
- 1
资源评论
- Softboy0822012-03-30调试能够通过 功能还行 不过不是我想要的
- rina02013-01-11不太好用`````
- lgh33282013-01-25不太好用`````
深黑色的猫
- 粉丝: 36
- 资源: 54
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功