==========================================================================
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.
-------------------------------------------------------------------------------
没有合适的资源?快使用搜索试试~ 我知道了~
对大文件的读写的两个类C#
共128个文件
dll:37个
pdb:37个
cs:16个
4星 · 超过85%的资源 需积分: 33 170 下载量 118 浏览量
2008-12-31
21:30:31
上传
评论 3
收藏 399KB RAR 举报
温馨提示
对大文件的分块读写,包括线程的使用,实现了文件的同步拷贝,并且定义了两个事件来对文件块读取进行提示。主要体现了Event 和FileStream的应用
资源推荐
资源详情
资源评论
收起资源包目录
对大文件的读写的两个类C# (128个子文件)
Warensoft.IO.accessor 27B
ResolveAssemblyReference.cache 8KB
ResolveAssemblyReference.cache 4KB
test.csproj.GenerateResource.Cache 847B
ClassDiagram.cd 1KB
BlockFileStreamReaderTest.cs 7KB
BulkCopyTest.cs 6KB
BlockFileStreamWriterTest.cs 6KB
BlockFileStreamReader.cs 5KB
BulkCopy.cs 4KB
BlockFileStreamWriter.cs 3KB
BlockTransferedEventArgsTest.cs 3KB
Form1.Designer.cs 3KB
Resources.Designer.cs 3KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
Form1.cs 1KB
Settings.Designer.cs 1KB
BlockTransferedEventArgs.cs 969B
Program.cs 476B
test.csproj 4KB
Warensoft.IO Test.csproj 3KB
Warensoft.IO.csproj 2KB
Warensoft.IO_Accessor.dll 24KB
Warensoft.IO_Accessor.dll 24KB
Warensoft.IO_Accessor.dll 24KB
Warensoft.IO_Accessor.dll 24KB
Warensoft.IO_Accessor.dll 24KB
Warensoft.IO_Accessor.dll 24KB
Warensoft.IO_Accessor.dll 24KB
Warensoft.IO_Accessor.dll 24KB
Warensoft.IO_Accessor.dll 24KB
Warensoft.IO_Accessor.dll 24KB
warensoft.io test.dll 10KB
warensoft.io test.dll 10KB
warensoft.io test.dll 10KB
warensoft.io test.dll 10KB
warensoft.io test.dll 10KB
warensoft.io test.dll 10KB
warensoft.io test.dll 10KB
Warensoft.IO.dll 9KB
warensoft.io test.dll 9KB
Warensoft.IO.dll 9KB
Warensoft.IO.dll 9KB
Warensoft.IO.dll 9KB
Warensoft.IO.dll 9KB
Warensoft.IO.dll 9KB
Warensoft.IO.dll 9KB
Warensoft.IO.dll 9KB
Warensoft.IO.dll 9KB
Warensoft.IO.dll 9KB
Warensoft.IO Test.dll 9KB
Warensoft.IO.dll 9KB
Warensoft.IO Test.dll 9KB
wa_lab.IO.dll 8KB
Warensoft.IO.dll 8KB
Warensoft.IO.dll 8KB
Warensoft.IO.dll 7KB
Warensoft.IO.dll 6KB
Warensoft.IO.dll 6KB
test.vshost.exe 14KB
test.exe 9KB
test.exe 9KB
test.vshost.exe.manifest 473B
Warensoft.IO Test.pdb 36KB
Warensoft.IO Test.pdb 36KB
Warensoft.IO Test.pdb 36KB
Warensoft.IO Test.pdb 36KB
Warensoft.IO Test.pdb 36KB
Warensoft.IO Test.pdb 36KB
Warensoft.IO Test.pdb 36KB
Warensoft.IO Test.pdb 34KB
Warensoft.IO.pdb 34KB
Warensoft.IO.pdb 34KB
Warensoft.IO.pdb 34KB
Warensoft.IO.pdb 34KB
Warensoft.IO.pdb 34KB
Warensoft.IO.pdb 34KB
Warensoft.IO.pdb 34KB
Warensoft.IO.pdb 34KB
Warensoft.IO.pdb 34KB
Warensoft.IO Test.pdb 32KB
Warensoft.IO Test.pdb 32KB
Warensoft.IO.pdb 30KB
Warensoft.IO.pdb 30KB
wa_lab.IO.pdb 26KB
Warensoft.IO.pdb 26KB
Warensoft.IO.pdb 26KB
test.pdb 24KB
test.pdb 24KB
Warensoft.IO.pdb 22KB
Warensoft.IO_Accessor.pdb 18KB
Warensoft.IO_Accessor.pdb 18KB
Warensoft.IO_Accessor.pdb 18KB
Warensoft.IO_Accessor.pdb 18KB
Warensoft.IO_Accessor.pdb 18KB
Warensoft.IO_Accessor.pdb 18KB
Warensoft.IO_Accessor.pdb 18KB
Warensoft.IO_Accessor.pdb 18KB
共 128 条
- 1
- 2
kflh59
- 粉丝: 2
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页