Home Page Icon
Home Page
Table of Contents for
Table of Contents
Close
Table of Contents
by S. Subashni, N. Satheesh Kumar
Software Testing using Visual Studio 2010
Software Testing using Visual Studio 2010
Table of Contents
Copyright
Credits
About the Authors
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Visual Studio 2010 Test Types
Software testing in Visual Studio 2010
Testing as part of the Software Development Life Cycle
Types of testing
Unit test
Manual test
Web Performance Tests
Coded UI test
Load Test
Ordered test
Generic test
Test management in VS 2010
Team Explorer
Testing tools introduction
Test View
Test List Editor
Test Results
Code coverage results
Overview of files used for test settings and testing in Visual Studio 2010
Microsoft Test Manager
Connecting to Team Project
Test Plans, Suites and Test Cases
Define test cases
Lab Center
Summary
2. Test Plan, Test Suite, and Manual Testing
Test Plan
Test Suite and Test Suite Types
Requirement-based Test Suite
Query-based Test Suite
Static Test Suite
Run Manual Tests
Action Recording
Shared steps and action recording for shared steps
Creating shared steps
Action recording for Shared steps
Add Parameters to Manual Tests
Summary
3. Automated Tests
Coded UI Test from Action Recording
Files generated for the Coded UI Test
CodedUITest1.cs
UIMap.Designer.cs
UIMap.cs
UIMap.uitest
Data Driven Coded UI Test
Adding controls and validation to the Coded UI Test
Summary
4. Unit Testing
Creating unit tests
Naming settings
General settings
Generated unit test code
Assert statements
Types of asserts
Assert
Assert.AreEqual
Assert.AreNotEqual
Assert.AreSame
Assert.AreNotSame
Assert.Fail
Assert.Inconclusive
Assert.IsTrue
Assert.IsFalse
Assert.IsNull
Assert.IsNotNull
Assert.IsInstanceOfType
StringAsserts
StringAssert.Contains
StringAssert.Matches
StringAssert.DoesNotMatch
StringAssert.StartsWith
StringAssert.EndsWith
CollectionAssert
CollectionAssert.AllItemsAreNotNull
CollectionAssert.AreEquivalent
CollectionAssert.AreNotEquivalent
CollectionAssert.AllItemsAreInstancesOfType
CollectionAssert.IsSubsetOf
CollectionAssert.IsNotSubsetOf
CollectionAssert.AllItemsAreUnique
CollectionAssert.Contains
CollectionAssert.DoesNotContain
CollectionAssert.AreEqual
CollectionAssert.AreNotEqual
AssertFailedException
UnitTestAssertionException
ExpectedExceptionAttribute
Unit tests and generics
Data-driven unit testing
Unit testing an ASP.NET application
Unit testing web services
Code coverage unit test
Summary
5. Web Performance Testing
Creating Web Performance Test
Recording a test
Adding comments
Cleaning the Recorded Tests
Copying the requests
Web Performance Test editor
Web Test Properties
Web Performance Test request properties
Other request properties
Form POST parameters
QueryString parameters
Extraction rules
Validation rules
Transactions
Toolbar properties
Add data source
Set credentials
Add recording
Parameterize web server
Context Parameters
Add web test plug-in
Add Request Plug-in
Performance session for the test
Debug/Running Web Performance Test
Settings in the .testsettings file
General
Web Performance Test
Roles
Test Timeouts
Deployment
Hosts
Setup and Cleanup scripts
Running the test
Web Browser
Request
Response
Context
Details
Summary
6. Advanced Web Testing
Dynamic parameters in Web Performance Testing
Coded Web Performance Test
Creating a coded test from a recorded test
Transactions in coded test
Custom code
Adding comment
Running the Coded Web Performance Test
Debugging the Coded Web Performance Test
Custom rules
Extraction rule
Validation rules
Summary
7. Load Testing
Creating Load Test
Load Test Wizard
Specifying a scenario
Think time
Load pattern
Constant load
Step load
Test mix model and test mix
Based on the total number of tests
Based on the number of virtual users
Based on user pace
Based on sequential test order
Network mix
Browser mix
Counter sets
Run settings
Threshold rules
Editing Load Tests
Adding context parameters
Results store
Running the Load Test
Working with the test result and analyzing test results
Graphical view
Summary view
Table view
Details view
Exporting to Excel
Using the test controller and test agents
Test controller configuration
Summary
8. Ordered and Generic Tests
Ordered tests
Creating an ordered test
Properties of an ordered test
Executing an ordered test
Generic tests
Creating a Generic Test
Summary results file
Properties of a generic test
Summary
9. Managing and Configuring a Test
Managing tests using Test Lists
Organizing the Test Lists
Test view
Enabling/Disabling tests
Toolbar options
Filtering tests
Group by
Configuring tests
Test settings
General
Roles
Data and Diagnostics
Deployment
Hosts
Setup and Cleanup scripts
Test Timeouts
Web Performance Test
Unit Test
Editing the test run configuration file
Editing the deployment section
Test properties
Summary
10. Command Line
MSTest utility
Running a test from the command line
/testcontainer
/testmetadata
/test
/unique
/noisolation
/testsettings
/resultsfile
/noresults
/nologo
/detail
Publishing test results
/publish
/publishbuild
/flavor
/platform
/publishresultsfile
Trace files
Publishing
Step 1: Create/use existing test project
Step 2: Running the test
Step 3: Create build
Step 4: Build project
Step 5: Publish result
Summary
11. Working with Test Results
Test Results
Test as part of Team Foundation Server Build
Build Report and Test Result
Creating Work Item from the result
Publish Test Results
Summary
12. Reporting
Team Foundation Server reports for testing
Bug status Report
Status on all iterations
Other out of box reports
Creating client report definition using Visual Studio 2010
SQL Server Business Intelligence Project
Analysis Services Project
Report server project
Create new Report using Microsoft Excel
Summary
13. Test and Lab Center
Connect to Team Project
Testing Center
Testing Center— Plan
Testing Center— Test
Test Center— Track
Test Center— Organize
Lab Center
Virtual Environments
Deployed Environments
Stored Templates
Stored Virtual Machines
Environments
Creating Environment from stored Virtual machines and Templates
Creating Environments from stored environments
Composed Environments
Summary
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Software Testing using Visual Studio 2010
Table of Contents
Copyright
Credits
About the Authors
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Visual Studio 2010 Test Types
Software testing in Visual Studio 2010
Testing as part of the Software Development Life Cycle
Types of testing
Unit test
Manual test
Web Performance Tests
Coded UI test
Load Test
Ordered test
Generic test
Test management in VS 2010
Team Explorer
Testing tools introduction
Test View
Test List Editor
Test Results
Code coverage results
Overview of files used for test settings and testing in Visual Studio 2010
Microsoft Test Manager
Connecting to Team Project
Test Plans, Suites and Test Cases
Define test cases
Lab Center
Summary
2. Test Plan, Test Suite, and Manual Testing
Test Plan
Test Suite and Test Suite Types
Requirement-based Test Suite
Query-based Test Suite
Static Test Suite
Run Manual Tests
Action Recording
Shared steps and action recording for shared steps
Creating shared steps
Action recording for Shared steps
Add Parameters to Manual Tests
Summary
3. Automated Tests
Coded UI Test from Action Recording
Files generated for the Coded UI Test
CodedUITest1.cs
UIMap.Designer.cs
UIMap.cs
UIMap.uitest
Data Driven Coded UI Test
Adding controls and validation to the Coded UI Test
Summary
4. Unit Testing
Creating unit tests
Naming settings
General settings
Generated unit test code
Assert statements
Types of asserts
Assert
Assert.AreEqual
Assert.AreNotEqual
Assert.AreSame
Assert.AreNotSame
Assert.Fail
Assert.Inconclusive
Assert.IsTrue
Assert.IsFalse
Assert.IsNull
Assert.IsNotNull
Assert.IsInstanceOfType
StringAsserts
StringAssert.Contains
StringAssert.Matches
StringAssert.DoesNotMatch
StringAssert.StartsWith
StringAssert.EndsWith
CollectionAssert
CollectionAssert.AllItemsAreNotNull
CollectionAssert.AreEquivalent
CollectionAssert.AreNotEquivalent
CollectionAssert.AllItemsAreInstancesOfType
CollectionAssert.IsSubsetOf
CollectionAssert.IsNotSubsetOf
CollectionAssert.AllItemsAreUnique
CollectionAssert.Contains
CollectionAssert.DoesNotContain
CollectionAssert.AreEqual
CollectionAssert.AreNotEqual
AssertFailedException
UnitTestAssertionException
ExpectedExceptionAttribute
Unit tests and generics
Data-driven unit testing
Unit testing an ASP.NET application
Unit testing web services
Code coverage unit test
Summary
5. Web Performance Testing
Creating Web Performance Test
Recording a test
Adding comments
Cleaning the Recorded Tests
Copying the requests
Web Performance Test editor
Web Test Properties
Web Performance Test request properties
Other request properties
Form POST parameters
QueryString parameters
Extraction rules
Validation rules
Transactions
Toolbar properties
Add data source
Set credentials
Add recording
Parameterize web server
Context Parameters
Add web test plug-in
Add Request Plug-in
Performance session for the test
Debug/Running Web Performance Test
Settings in the .testsettings file
General
Web Performance Test
Roles
Test Timeouts
Deployment
Hosts
Setup and Cleanup scripts
Running the test
Web Browser
Request
Response
Context
Details
Summary
6. Advanced Web Testing
Dynamic parameters in Web Performance Testing
Coded Web Performance Test
Creating a coded test from a recorded test
Transactions in coded test
Custom code
Adding comment
Running the Coded Web Performance Test
Debugging the Coded Web Performance Test
Custom rules
Extraction rule
Validation rules
Summary
7. Load Testing
Creating Load Test
Load Test Wizard
Specifying a scenario
Think time
Load pattern
Constant load
Step load
Test mix model and test mix
Based on the total number of tests
Based on the number of virtual users
Based on user pace
Based on sequential test order
Network mix
Browser mix
Counter sets
Run settings
Threshold rules
Editing Load Tests
Adding context parameters
Results store
Running the Load Test
Working with the test result and analyzing test results
Graphical view
Summary view
Table view
Details view
Exporting to Excel
Using the test controller and test agents
Test controller configuration
Summary
8. Ordered and Generic Tests
Ordered tests
Creating an ordered test
Properties of an ordered test
Executing an ordered test
Generic tests
Creating a Generic Test
Summary results file
Properties of a generic test
Summary
9. Managing and Configuring a Test
Managing tests using Test Lists
Organizing the Test Lists
Test view
Enabling/Disabling tests
Toolbar options
Filtering tests
Group by
Configuring tests
Test settings
General
Roles
Data and Diagnostics
Deployment
Hosts
Setup and Cleanup scripts
Test Timeouts
Web Performance Test
Unit Test
Editing the test run configuration file
Editing the deployment section
Test properties
Summary
10. Command Line
MSTest utility
Running a test from the command line
/testcontainer
/testmetadata
/test
/unique
/noisolation
/testsettings
/resultsfile
/noresults
/nologo
/detail
Publishing test results
/publish
/publishbuild
/flavor
/platform
/publishresultsfile
Trace files
Publishing
Step 1: Create/use existing test project
Step 2: Running the test
Step 3: Create build
Step 4: Build project
Step 5: Publish result
Summary
11. Working with Test Results
Test Results
Test as part of Team Foundation Server Build
Build Report and Test Result
Creating Work Item from the result
Publish Test Results
Summary
12. Reporting
Team Foundation Server reports for testing
Bug status Report
Status on all iterations
Other out of box reports
Creating client report definition using Visual Studio 2010
SQL Server Business Intelligence Project
Analysis Services Project
Report server project
Create new Report using Microsoft Excel
Summary
13. Test and Lab Center
Connect to Team Project
Testing Center
Testing Center— Plan
Testing Center— Test
Test Center— Track
Test Center— Organize
Lab Center
Virtual Environments
Deployed Environments
Stored Templates
Stored Virtual Machines
Environments
Creating Environment from stored Virtual machines and Templates
Creating Environments from stored environments
Composed Environments
Summary
Index
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset