Skip to content

Commit 89d8152

Browse files
authored
Merge pull request #1589 from MicrosoftDocs/master
3/13 AM Publish
2 parents 359f6ad + feb8c4d commit 89d8152

File tree

50 files changed

+6281
-6657
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+6281
-6657
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,6 +1802,11 @@
18021802
"redirect_url": "/visualstudio/code-quality/code-analysis-for-managed-code-overview",
18031803
"redirect_document_id": false
18041804
},
1805+
{
1806+
"source_path": "docs/test/analyzing-code-coverage-in-build-verification-tests.md",
1807+
"redirect_url": "/vsts/build-release/test/getting-started-with-continuous-testing",
1808+
"redirect_document_id": false
1809+
},
18051810
{
18061811
"source_path": "docs/test/index.md",
18071812
"redirect_url": "/visualstudio/test/improve-code-quality",

docs/debugger/using-breakpoints.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,31 @@ You can set breakpoints when you want to stop debugger execution, perhaps to see
6060

6161
You can set a breakpoint on any line of executable code. For example, in the C# code above you can set a breakpoint on the variable declaration, the `for` loop, or any code inside the `for` loop, but you cannot set a breakpoint on the namespace or class declarations or the method signature.
6262

63-
## <a name="BKMK_Set_a_breakpoint_in_a_source_file"></a> Setting Other Kinds of Breakpoints
63+
## <a name="BKMK_Set_a_breakpoint_in_a_source_file"></a> Setting a function breakpoint
64+
You can break execution when a function is called.
65+
66+
1. Open the **Breakpoints** window and choose **New > Function Breakpoint**.
67+
68+
2. Enter a function name in the **Function Name** box.
69+
70+
To narrow the function specification:
71+
72+
Use the fully qualified function name.
73+
Example: Namespace1.ClassX.MethodA()
74+
75+
Add the parameter types of an overloaded function.
76+
Example: MethodA(int, string)
77+
78+
Use the '!' symbol to specify the module.
79+
Example: App1.dll!MethodA
80+
81+
Use the context operator in native C++.
82+
{function, , [module]} [+&lt;line offset from start of method&gt;]
83+
Example: {MethodA, , App1.dll}+2
84+
85+
3. In the **Language** dropdown, choose the specific language of the function you want to break on.
86+
87+
## <a name="BKMK_Set_a_breakpoint_in_a_function"></a> Setting Other Kinds of Breakpoints
6488
You can also set breakpoints in the call stack, in the Disassembly window, and, in native C++ code, at a data condition or a memory address.
6589

6690
## <a name="BKMK_Set_a_breakpoint_in_the_call_stack_window"></a> Setting a Breakpoint in the Call Stack Window

docs/docfx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"ms.technology": "vs-ide-general",
4949
"ms.tgt_pltfrm": "dotnet",
5050
"searchScope": ["VS IDE"],
51-
"uhfHeaderId": "MSDocsHeader-VisualStudio"
51+
"uhfHeaderId": "MSDocsHeader-VisualStudio",
52+
"titleSuffix": "Visual Studio"
5253
},
5354
"template": [],
5455
"xref": ["missingapi.yml", "../dotnet-xref/_zip/dotnet.zip"],

docs/test/TOC.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
### [Run unit tests for UWP apps](run-unit-tests-for-store-apps-in-visual-studio.md)
5151
## [Use Code Coverage to Determine How Much Code is being Tested](using-code-coverage-to-determine-how-much-code-is-being-tested.md)
5252
### [Customize Code Coverage Analysis](customizing-code-coverage-analysis.md)
53-
### [Analyze Code Coverage in Build Verification Tests](analyzing-code-coverage-in-build-verification-tests.md)
5453
### [Troubleshoot Code Coverage](troubleshooting-code-coverage.md)
5554
## [Use emulators to isolate unit tests for Sharepoint 2010 applications](using-emulators-to-isolate-unit-tests-for-sharepoint-2010-applications.md)
5655
# [Live Unit Testing](live-unit-testing-intro.md)

docs/test/analyzing-code-coverage-in-build-verification-tests.md

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,108 @@
11
---
22
title: "Analyzing Coded UI Tests Using Coded UI Test Logs | Microsoft Docs"
3-
ms.custom: ""
43
ms.date: "11/04/2016"
5-
ms.reviewer: ""
6-
ms.suite: ""
74
ms.technology: vs-devops-test
8-
ms.tgt_pltfrm: ""
95
ms.topic: "article"
106
ms.author: gewarren
117
manager: ghogen
12-
ms.workload:
8+
ms.workload:
139
- "multiple"
1410
author: gewarren
1511
---
1612
# Analyzing Coded UI Tests Using Coded UI Test Logs
17-
Coded UI test logs filter and record important information about your coded UI test runs.
18-
19-
**Requirements**
20-
21-
- Visual Studio Enterprise
22-
23-
## Why should I do this?
24-
The logs are presented in a format that allows for debugging issues quickly.
25-
26-
## How do I do this?
27-
28-
### Step 1: Enable logging
29-
Depending on your scenario, use one of the following methods to enable the log.
30-
31-
- Target .NET Framework version 4 with no App.config file present in the test project
32-
33-
- Open the **QTAgent32_40.exe.config** file.
34-
35-
By default, this file is located in **\<drvie>:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE**.
36-
37-
Modify the value for EqtTraceLevel to the log level you want.
38-
39-
Save the file.
40-
41-
- Target .NET Framework version 4.5 with no App.config file present in the test project
42-
43-
- Open the **QTAgent32.exe.config** file.
44-
45-
By default, this file is located in **\<drvie>:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE**.
46-
47-
Modify the value of the EqtTraceLevel to the log level you want.
48-
49-
Save the file.
50-
51-
- App.config file present in the test project
52-
53-
- Open App.config file in the project.
54-
55-
Add the following code under the configuration node:
56-
57-
`<system.diagnostics> <switches> <add name="EqtTraceLevel" value="4" /> </switches> </system.diagnostics>`
58-
59-
- Enable logging from the test code itself
60-
61-
- <xref:Microsoft.VisualStudio.TestTools.UITesting.PlaybackSettings.LoggerOverrideState%2A> = HtmlLoggerState.AllActionSnapshot;
62-
63-
### Step 2: Run your coded UI test and view the log
64-
When you run a coded UI test with the modifications to the **QTAgent32.exe.config** file in place, you will see there is an output link in the Test Explorer results. Log files are produced not only when your test fails, but also for successful tests when the trace level is set to "verbose."
65-
66-
1. On the **TEST** menu, choose **Windows** and then select **Test Explorer**.
67-
68-
2. On the **BUILD** menu, choose **Build Solution**.
69-
70-
3. In Test Explorer, select the coded UI test you want to run, open its shortcut menu, and then choose **Run Select Tests**.
71-
72-
The automated tests will run and indicate if they passed or failed.
73-
13+
14+
Coded UI test logs filter and record important information about your coded UI test runs.
15+
16+
**Requirements**
17+
18+
- Visual Studio Enterprise
19+
20+
## Why should I do this?
21+
22+
The logs are presented in a format that allows for debugging issues quickly.
23+
24+
## How do I do this?
25+
26+
### Step 1: Enable logging
27+
28+
Depending on your scenario, use one of the following methods to enable the log.
29+
30+
- Target .NET Framework version 4 with no App.config file present in the test project
31+
32+
- Open the **QTAgent32_40.exe.config** file.
33+
34+
By default, this file is located in **\<drvie>:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE**.
35+
36+
Modify the value for EqtTraceLevel to the log level you want.
37+
38+
Save the file.
39+
40+
- Target .NET Framework version 4.5 with no App.config file present in the test project
41+
42+
- Open the **QTAgent32.exe.config** file.
43+
44+
By default, this file is located in **\<drvie>:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE**.
45+
46+
Modify the value of the EqtTraceLevel to the log level you want.
47+
48+
Save the file.
49+
50+
- App.config file present in the test project
51+
52+
- Open App.config file in the project.
53+
54+
Add the following code under the configuration node:
55+
56+
`<system.diagnostics> <switches> <add name="EqtTraceLevel" value="4" /> </switches> </system.diagnostics>`
57+
58+
- Enable logging from the test code itself
59+
60+
- <xref:Microsoft.VisualStudio.TestTools.UITesting.PlaybackSettings.LoggerOverrideState%2A> = HtmlLoggerState.AllActionSnapshot;
61+
62+
### Step 2: Run your coded UI test and view the log
63+
64+
When you run a coded UI test with the modifications to the **QTAgent32.exe.config** file in place, you see an output link in the Test Explorer results. Log files are produced not only when your test fails, but also for successful tests when the trace level is set to "verbose."
65+
66+
1. On the **TEST** menu, choose **Windows** and then select **Test Explorer**.
67+
68+
2. On the **BUILD** menu, choose **Build Solution**.
69+
70+
3. In Test Explorer, select the coded UI test you want to run, open its shortcut menu, and then choose **Run Select Tests**.
71+
72+
The automated tests run and indicate if they passed or failed.
73+
7474
> [!TIP]
75-
> To view Test Explorer from the **Test menu**, point to **Windows** and then choose **Test Explorer**.
76-
77-
4. Choose the **Output** link in the Test Explorer results.
78-
79-
![Output link in the Test Explorer](../test/media/cuit_htmlactionlog1.png "CUIT_HTMLActionLog1")
80-
81-
This displays the output for the test which will include a link to the action log.
82-
83-
![Results and output links from coded UI test](../test/media/cuit_htmlactionlog2.png "CUIT_HTMLActionLog2")
84-
85-
5. Choose the UITestActionLog.html link.
86-
87-
The log is displayed in your web browser.
88-
89-
![Coded UI test log file](../test/media/cuit_htmlactionlog3.png "CUIT_HTMLActionLog3")
90-
91-
## Q & A
92-
93-
### Q: What happened to the EnableHtmlLogger key?
94-
In previous versions of Visual Studio, there were two more configuration settings for enabling Html Logger in Coded UI Test:
95-
96-
```
97-
98-
<add key="EnableHtmlLogger" value="true"/>
99-
100-
<add key="EnableSnapshotInfo" value="true"/>
101-
102-
```
103-
104-
Both of these settings have been deprecated since Visual Studio 2012. EqtTraceLevel is the only setting which is required to be modified to enable HtmlLogger.
105-
106-
## See Also
107-
[Use UI Automation To Test Your Code](../test/use-ui-automation-to-test-your-code.md)
108-
[How to: Run Tests from Microsoft Visual Studio](http://msdn.microsoft.com/Library/1a1207a9-2a33-4a1e-a1e3-ddf0181b1046)
75+
> To view Test Explorer from the **Test menu**, point to **Windows** and then choose **Test Explorer**.
76+
77+
4. Choose the **Output** link in the Test Explorer results.
78+
79+
![Output link in the Test Explorer](../test/media/cuit_htmlactionlog1.png "CUIT_HTMLActionLog1")
80+
81+
This displays the output for the test, which includes a link to the action log.
82+
83+
![Results and output links from coded UI test](../test/media/cuit_htmlactionlog2.png "CUIT_HTMLActionLog2")
84+
85+
5. Choose the *UITestActionLog.html* link.
86+
87+
The log is displayed in your web browser.
88+
89+
![Coded UI test log file](../test/media/cuit_htmlactionlog3.png "CUIT_HTMLActionLog3")
90+
91+
## Q & A
92+
93+
### Q: What happened to the EnableHtmlLogger key?
94+
95+
In previous versions of Visual Studio, there were two more configuration settings for enabling Html Logger in Coded UI Test:
96+
97+
```xml
98+
<add key="EnableHtmlLogger" value="true"/>
99+
100+
<add key="EnableSnapshotInfo" value="true"/>
101+
```
102+
103+
Both of these settings have been deprecated since Visual Studio 2012. EqtTraceLevel is the only setting that is required to be modified to enable HtmlLogger.
104+
105+
## See also
106+
107+
- [Use UI Automation To Test Your Code](../test/use-ui-automation-to-test-your-code.md)
108+
- [How to: Run Tests from Microsoft Visual Studio](http://msdn.microsoft.com/Library/1a1207a9-2a33-4a1e-a1e3-ddf0181b1046)

0 commit comments

Comments
 (0)