Skip to content

Commit f3c8ee7

Browse files
authored
Merge pull request #2255 from craigcaseyMSFT/vcraic0629-3
More CATS fixes for test folder
2 parents f824675 + 6039094 commit f3c8ee7

10 files changed

+23
-83
lines changed

docs/test/counters-panel-in-load-test-analyzer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The Counters panel provides the following features:
4141

4242
### Scenario Name Node in Counters Panel
4343

44-
|||
44+
|Counters Panel|Description|
4545
|-|-|
4646
|![Counter panel's scenario name node](../test/media/ltest__namenode.png)|1. All performance counters associated with Scenario1 of the load test appear under this node.<br />2. All tests of a scenario are located beneath the scenario node. The label indicates the test name.<br />3. Leaf nodes under a test node are load test test case counters, where the instance name for the counter is the test name.<br />4. All load test page counter instances associated with a Web performance test branch. At this node, all the load test pace counter instances associated with page Login GET (Reporting name) of the IBuyBrowse Web performance test in Scenario1 of the load test are contained here.<br />5. Leaf nodes under a page node are load test page counters.<br />6. All load test requests counter instances associated with a Web performance test are contained within a Web performance test branch. At this node, all request counter instances associated with the request Login GET (Reporting name) of IBuyBrowse Web performance test in Scenario1 o the load test contained here.<br />7. Leaf nodes under a request node are load test request counters.<br />8. All load test transaction counter instances associated with a Web performance test are contained within a Web performance test branch. At this node, all transaction counter instances associate with the transaction named Transaction1 of the IBuyBrowse Web performance test in Scenraio1 of the load test are contained here.<br />9. Leaf nodes under a transaction node are load test transaction counters.<br />10. Unit test node.|
4747

docs/test/edit-load-test-scenarios.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ Any initial configuration options and settings that you specify when you create
2727

2828
Scenarios contain the following components:
2929

30-
|||
31-
|-|-|
3230
|Term|Definition|
31+
|-|-|
3332
|Browser Mix|Simulates that virtual users access a Web site through a variety of Web browsers.|
3433
|Load Pattern|Specifies the number of virtual users that are active during a load test, and the rate at which new users are started. For example: step, constant, and goal-based.|
3534
|Test Mix Model|Specifies the probability of a virtual user running a given test in a load test scenario. For example: 20% chance to run TestA and 80% chance to run TestB. The test mix model should reflect the objectives of your test for a particular scenario.|

docs/test/how-to-view-web-page-response-time-in-a-load-test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ If you run your Web performance test under stress in a load test, you will be ab
3939

4040
3. The data for each page is displayed in the grid. The following columns are ordinarily displayed.
4141

42-
|||
42+
|Column Heading|Description|
4343
|-|-|
4444
|**Page**|The name of the Web page.|
4545
|**Scenario**|The name of the scenario. Important if you have more than one scenario in your Web performance test.|

docs/test/how-to-write-unit-tests-for-cpp-dlls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ author: mikeblome
108108

109109
3. Edit the Include and Library directories:
110110

111-
|||
111+
|Directory|Property|
112112
|-|-|
113113
|**Include Directories** | **$(VCInstallDir)UnitTest\include;$(IncludePath)**|
114114
|**Library Directories** | **$(VCInstallDir)UnitTest\lib;$(LibraryPath)**|

docs/test/live-unit-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ If you have older MSTest based test projects that are referencing `Microsoft.Vis
5252

5353
In some cases, you may need to explicitly restore the NuGet packages referenced by the projects in the solution in order for Live Unit Testing to work. You can do this either by doing an explicit build of the solution (select **Build**, **Rebuild Solution** from the top-level Visual Studio menu) or by restoring packages in the solution (right-click on the solution and select **Restore NuGet Packages**) before enabling Living Unit Testing.
5454

55-
# Configuring Live Unit Testing
55+
## Configuring Live Unit Testing
5656

5757
You can configure Live Unit Testing by selecting **Tools**, **Options** from the top-level Visual Studio menu, and then selecting **Live Unit Testing** in the left pane of the **Options** dialog. The following figure shows the Live Unit Testing configuration options available in the dialog.
5858

docs/test/run-unit-tests-with-test-explorer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The pass/fail bar at the top of the Test Explorer window is animated as the test
4848

4949
### Run tests after every build
5050

51-
|||
51+
|Button|Description|
5252
|-|-|
5353
|![Run after build](../test/media/ute_runafterbuild_btn.png)|To run your unit tests after each local build, choose **Test** on the standard menu, and then choose **Run Tests After Build** on the Test Explorer toolbar.|
5454

@@ -148,7 +148,7 @@ To filter by a different criteria:
148148

149149
To exclude a subset of the results of a filter, use the following syntax:
150150

151-
```
151+
```cpp
152152
FilterName:"Criteria" -FilterName:"SubsetCriteria"
153153
```
154154

docs/test/unit-test-basics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ It is often quicker to generate the unit test project and unit test stubs from y
9090

9191
![The unit tests are created](../test/media/createunittestsstubs.png)
9292

93-
4. Now jump ahead to learn how to [add code to the unit test methods](#BKMK_Writing_your_tests) to make your unit test meaningful, and any extra unit tests that you might want to add to thoroughly test your code.
93+
4. Now jump ahead to learn how to [add code to the unit test methods](#write-your-tests) to make your unit test meaningful, and any extra unit tests that you might want to add to thoroughly test your code.
9494

9595
**Create your unit test project and unit tests manually**
9696

@@ -220,7 +220,7 @@ The Test Explorer toolbar helps you discover, organize, and run the tests that y
220220
> [!WARNING]
221221
> Running unit tests after every build is supported only in Visual Studio Enterprise.
222222
223-
|||
223+
|Button|Description|
224224
|-|-|
225225
|![Run after build](../test/media/ute_runafterbuild_btn.png)|To run your unit tests after each local build, choose **Test** on the standard menu, choose **Run Tests After Build** on the Test Explorer toolbar.|
226226

@@ -230,7 +230,7 @@ When you have a large number of tests, you can Type in Test Explorer search box
230230

231231
![Search filter categories](../test/media/ute_searchfilter.png)
232232

233-
|||
233+
|Button|Description|
234234
|-|-|
235235
|![Test Explorer group button](../test/media/ute_groupby_btn.png)|To group your tests by category, choose the **Group By** button.|
236236

docs/test/using-html5-controls-in-coded-ui-tests.md

Lines changed: 7 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,7 @@ Coded UI tests include support for some of the HTML5 controls that are included
2626
> If you create a coded UI test in Internet Explorer 10, it might not run using Internet Explorer 9 or Internet Explorer 8. This is because Internet Explorer 10 includes HTML5 controls such as Audio, Video, ProgressBar and Slider. These HTML5 controls are not recognized by Internet Explorer 9, or Internet Explorer 8. Likewise, your coded UI test using Internet Explorer 9 might include some HTML5 controls that also will not be recognized by Internet Explorer 8.
2727
2828

29-
## Supported HTML5 Controls
30-
Coded UI tests include support for record, playback, and validation of the following HTML5 controls:
31-
32-
- [Audio Control](#UsingHTML5ControlsCodedUITestsAudio)
33-
34-
- [Video Control](#UsingHTML5ControlsCodedUITestsVideo)
35-
36-
- [Slider](#UsingHTML5ControlsCodedUITestsSlider)
37-
38-
- [ProgressBar](#UsingHTML5ControlsCodedUITestsProgressBar)
39-
40-
### <a name="UsingHTML5ControlsCodedUITestsAudio"></a> Audio Control
29+
## Audio Control
4130
**Audio control:** Actions on the HTML5 Audio control are correctly recorded and played back.
4231

4332
![HTML5 Audio control](../test/media/codedui_html5_audio.png)
@@ -51,27 +40,7 @@ Coded UI tests include support for some of the HTML5 controls that are included
5140
|**Unmute audio**<br /><br /> Directly from control, or from controls context menu.|Unmute \<name> Audio|HtmlAudio.Unmute()|
5241
|**Change volume of audio**|Set volume of \<name> Audio to 79%|HtmlAudio.SetVolume(float)|
5342

54-
The following properties are available for HtmlAudio and you can add an assertion on all of them:
55-
56-
```
57-
string AutoPlay
58-
string Controls
59-
string CurrentSrc
60-
string CurrentTime
61-
string CurrentTimeAsString
62-
string Duration
63-
string DurationAsString
64-
string Ended
65-
string Loop
66-
string Muted
67-
string Paused
68-
string PlaybackRate
69-
string ReadyState
70-
string Seeking
71-
string Src
72-
string Volume
73-
74-
```
43+
See [HTMLAudioElement](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement) for a list of properties on which you can add an assertion.
7544

7645
**Search properties:** The search properties for `HtmlAudio` are `Id`, `Name` and `Title`.
7746

@@ -81,7 +50,7 @@ string Volume
8150
> The amount of time for Seek and Pause can be significant. During playback, the coded UI test will wait until the specified time in `(TimeSpan)` before Pausing the audio. If by some special circumstance, the specified time has passed before hitting the Pause command, an exception will be thrown.
8251
8352

84-
### <a name="UsingHTML5ControlsCodedUITestsVideo"></a> Video Control
53+
## Video Control
8554
**Video control:** Actions on the HTML5 Video control are correctly recorded and played back.
8655

8756
![HTML5 Video control](../test/media/codedui_html5_video.png)
@@ -95,14 +64,7 @@ string Volume
9564
|**Unmute video**<br /><br /> Directly from control, or from controls context menu.|Unmute \<name> Video|HtmlVideo.Unmute()|
9665
|**Change volume of video**|Set volume of \<name> Video to 79%||
9766

98-
All the properties of HtmlAudio are available for HtmlVideo. In addition, the following three properties are also available. Assertion can be added on all of them.
99-
100-
```
101-
string Poster
102-
string VideoHeight
103-
string VideoWidth
104-
105-
```
67+
See [HTMLVideoElement](https://developer.mozilla.org/docs/Web/HTML/Element/video) for a list of properties on which you can add an assertion.
10668

10769
**Search properties:** The search properties for `HtmlVideo` are `Id`, `Name` and `Title`.
10870

@@ -111,35 +73,14 @@ string VideoWidth
11173
> [!NOTE]
11274
> If you rewind or fast forward the video using -30s or +30s labels, this will be aggregated to seek to the appropriate time.
11375
114-
115-
### <a name="UsingHTML5ControlsCodedUITestsSlider"></a> Slider
116-
**Slider control:** Actions on the HTML5 Slider control are correctly recorded and played back.
117-
118-
![HTML5 Slider control](../test/media/codedui_html5_slider.png)
119-
120-
|Action|Recording|Generated Code|
121-
|------------|---------------|--------------------|
122-
|**Set a position in the slider**|Set position to \<x> in \<name> slider|HtmlSlider.ValueAsNumber=\<x>|
123-
124-
The following properties are available for HtmlSlider and assertion can be added on all of them:
125-
126-
```
127-
string Disabled
128-
string Max
129-
string Min
130-
string Required
131-
string Step
132-
string ValueAsNumber
133-
```
134-
135-
### <a name="UsingHTML5ControlsCodedUITestsProgressbar"></a> ProgressBar
136-
**ProgreesBar control:** The ProgressBar is a non-interactable control. You can add assertions on the `Value` and `Max` properties of this control.
76+
## ProgressBar
77+
**ProgressBar control:** The ProgressBar is a non-interactable control. You can add assertions on the `Value` and `Max` properties of this control. For more information, see [HTMLProgressElement](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress).
13778

13879
![HTML5 ProgressBar control](../test/media/codedui_html5_progressbar.png)
13980

14081
## See also
14182

142-
- [HTML Elements](http://go.microsoft.com/fwlink/?LinkID=232441)
83+
- [HTML Elements](https://developer.mozilla.org/docs/Web/HTML/Element)
14384
- [Use UI Automation To Test Your Code](../test/use-ui-automation-to-test-your-code.md)
14485
- [Creating Coded UI Tests](../test/use-ui-automation-to-test-your-code.md)
14586
- [Supported Configurations and Platforms for Coded UI Tests and Action Recordings](../test/supported-configurations-and-platforms-for-coded-ui-tests-and-action-recordings.md)

docs/test/walkthrough-using-a-configuration-file-to-define-a-data-source.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Examine the *app.config* file. It contains at least the XML declaration and a ro
6262

6363
The **section** element should look similar to this:
6464

65-
```
65+
```xml
6666
<section name="microsoft.visualstudio.testtools" type="Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection, Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
6767
```
6868

@@ -89,15 +89,15 @@ The connection strings define provider-specific information for accessing data s
8989

9090
In the second **add** element, create the following attributes and values for a connection to a Microsoft Excel spreadsheet:
9191

92-
|||
92+
|Attribute|Values|
9393
|-|-|
9494
|`name`|`"MyExcelConn"`|
9595
|`connectionString`|`"Dsn=Excel Files;dbq=data.xlsx;defaultdir=.\; driverid=790;maxbuffersize=2048;pagetimeout=5"`|
9696
|`providerName`|`"System.Data.Odbc"`|
9797

9898
The **connectionStrings** element should look similar to this:
9999

100-
```
100+
```xml
101101
<connectionStrings>
102102
<add name="MyJetConn" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\testdatasource.accdb; Persist Security Info=False;" providerName="System.Data.OleDb" />
103103
<add name="MyExcelConn" connectionString="Dsn=Excel Files;dbq=data.xlsx;defaultdir=.\; driverid=790;maxbuffersize=2048;pagetimeout=5" providerName="System.Data.Odbc" />
@@ -137,7 +137,7 @@ In this section, you'll define two data sources to use in a unit test.
137137

138138
In the second **add** element, create the following attributes and values for a Microsoft Excel data source:
139139

140-
|||
140+
|Attribute|Values|
141141
|-|-|
142142
|`Name`|`"MyExcelDataSource"`|
143143
|`connectionString`|`"MyExcelConn"`|

docs/test/walkthrough-writing-unit-tests-for-cpp-dlls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ This walkthrough describes how to develop a native C++ DLL using test-first meth
296296

297297
1. Simplify the central calculation in the SquareRoot function:
298298

299-
```
299+
```cpp
300300
// old code:
301301
// result = result - (result*result - v)/(2*result);
302302
// new code:
@@ -324,7 +324,7 @@ This walkthrough describes how to develop a native C++ DLL using test-first meth
324324
## See also
325325
326326
- [Adding unit tests to existing C++ applications](../test/unit-testing-existing-cpp-applications-with-test-explorer.md)
327-
- [Using Microsoft.VisualStudio.TestTools.CppUnitTestFramework](../test/using-microsoft-visualstudio-testtools-cppunittestframework.md)
327+
- [Using Microsoft.VisualStudio.TestTools.CppUnitTestFramework](how-to-use-microsoft-test-framework-for-cpp.md)
328328
- [Debugging Native Code](../debugger/debugging-native-code.md)
329329
- [Walkthrough: Creating and Using a Dynamic Link Library (C++)](/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp)
330330
- [Importing and Exporting](/cpp/build/importing-and-exporting)

0 commit comments

Comments
 (0)