Skip to content

Commit 46aa368

Browse files
committed
Updates to docs for test studio.
1 parent 07a707e commit 46aa368

File tree

4 files changed

+33
-16
lines changed

4 files changed

+33
-16
lines changed

powerapps-docs/maker/canvas-apps/functions/function-select.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ If you want one or more controls in the gallery to perform different actions fro
2626

2727
**Select** queues the target **OnSelect** for later processing, which may happen after the current formula has finished being evaluated. **Select** doesn't cause the target **OnSelect** to evaluate immediately, nor does **Select** wait for **OnSelect** to finish being evaluated.
2828

29-
**Select** can't cross the boundaries of container controls, such as a gallery or a form. Controls within a container control can only be the subject of a **Select** function in formulas that are inside the same container control. You can't use **Select** across screens.
29+
You can't use **Select** across screens.
3030

3131
You can use **Select** only with controls that have an **OnSelect** property.
3232

3333
You can use **Select** only in [behavior formulas](../working-with-formulas-in-depth.md).
3434

3535
A control can't **Select** itself directly or indirectly through other controls.
3636

37-
The select function can also be used in repeating container controls such as gallery. For example, it can be used to specify the row or column to select in a gallery and the control to select within that row or column of the gallery.
37+
The select function can also be used with a gallery. For example, it can be used to specify the row or column to select in a gallery and the control to select within that row or column of the gallery. When you select a row or column, the gallery selection changes and the **OnSelect** formula on the gallery control is evaluated. If a control within the row or column is provided, the **OnSelect** formula for the child control will be evaluated.
3838

3939
## Syntax
4040
**Select**( *Control* )
@@ -55,15 +55,15 @@ The select function can also be used in repeating container controls such as gal
5555

5656
- *Gallery*
5757

58-
```Select(Gallery1, Row1)```
58+
```Select(Gallery1, 1)```
5959

60-
Simulates a user selecting Row1 in Gallery1.
60+
Simulates a user selecting row 1 or column 1 in Gallery1.
6161

6262
- *Gallery*
6363

64-
```Select(Gallery1, Row1, ChildControl1)```
64+
```Select(Gallery1, 1, ChildControl1)```
6565

66-
Simulates a user selecting ChildConttrol1 in Row1 of Gallery1.
66+
Simulates a user selecting ChildConttrol1 in row 1 or column 1 of Gallery1.
6767

6868
#### Basic usage
6969

@@ -109,4 +109,13 @@ The select function can also be used in repeating container controls such as gal
109109

110110
Use individual controls in the gallery to take actions that differ from the gallery's default action.
111111

112-
![An animation that shows the default value of the OnSelect property for a gallery control, as well as a control that takes a different action](media/function-select/gallery-select.gif)
112+
![An animation that shows the default value of the OnSelect property for a gallery control, as well as a control that takes a different action](media/function-select/gallery-select.gif)
113+
114+
7. On the same screen, add a **Button** control, and set its **OnSelect** property to this formula:
115+
116+
**Select( Gallery1,2,Image1 )**
117+
118+
8. While holding down the Alt key, select the button.
119+
120+
A **Image Selected** notification appears across the top of your app. The button click simulated selecting the image in row 2 of the gallery.
121+

powerapps-docs/maker/canvas-apps/functions/function-setproperty.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ search.app:
1616
---
1717
# SetProperty function in Power Apps Test Studio
1818

19-
The SetProperty function simulates interactions with input controls as if the user had entered or set a value on the control. The following properties can be set using the SetProperty function.
19+
The SetProperty function simulates interactions with input controls as if the user had entered or set a value on the control. This function is only available if you are writing tests in the Power Apps Test Studio. The following properties can be set using the SetProperty function.
2020

2121
## Syntax
2222

@@ -43,7 +43,9 @@ The SetProperty function simulates interactions with input controls as if the us
4343
| Combobox | Selected | ```SetProperty(Dropdown1.Selected, {Value:"Sample value"})```
4444
| Combobox | SelectedItems | ```SetProperty(ComboBox1.SelectedItems, Table({Value:"Sample value"},({Value:"Sample value"}))```
4545
| ListBox | Selected | ```SetProperty(Listbox1.Selected, {'Value':"Sample value"})```
46-
| ListBox | SelectedText | ```SetProperty(Listbox1. SelectedText, {'Value':"Sample value"})```
4746
| ListBox | SelectedItems | ```SetProperty(Listbox1.SelectedItems, Table({Value:"Sample value"},({Value:"Sample value"}))```
48-
| ListBox | SelectedItemsText | ```SetProperty(Listbox1.SelectedItemsText, Table({Value:"Sample value"},({Value:"Sample value"}))```
4947

48+
### See Also
49+
50+
[Test Studio Overview](../test-studio.md) <br>
51+
[Working with Test Studio](../working-with-test-studio.md)

powerapps-docs/maker/canvas-apps/functions/function-trace.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,20 @@ search.audienceType:
1414
search.app:
1515
- PowerApps
1616
---
17-
# Trace function in Power Apps Test Studio
17+
# Trace function
1818

19-
Trace is an optional test expression that can be used to provide additional information in your test results from the **OnTestCaseComplete** event. Trace event messages, as well as any messages for both passed and failed assertions, are contained in a Traces table in the TestCaseResult record. The Traces table has two properties, Message and Timestamp.
19+
When used with Test Studio, Trace is an optional expression that can be used to provide additional information in your test results from the **OnTestCaseComplete** event. Trace event messages, as well as any messages for both passed and failed assertions, are contained in a Traces table in the TestCaseResult record. The Traces table has two properties, Message and Timestamp.
20+
21+
If you have allowed your app to send telemetry data to Azure Application Insights, the Trace function can also be used to send custom event or diagnostic information to your Application Insights resource. You can inspect this data in Application Insights to help diagnose problems or understand usage of your apps and features. Trace information used in Tests will also be recorded in Application Insights. All Trace messages can also be viewed in the Power Apps Monitor tool, which will help in debugging or identifying issues for real-time diagnostic sessions for your app.
2022

2123
## Syntax
2224

23-
*Trace(message)*
25+
*Trace(message, severity, custom_record )*
2426

25-
- *Message* – Required. A text value that creates a record in the Traces table in the TestCaseResult record.
27+
- *Message* – Required. The information to be traced. In tests, this creates a record in the Traces table in the TestCaseResult record.
28+
- *Severity* - Optional. The severity level of the Trace recorded in Application Insights. Options are Information, Warning or Error.
29+
- *custom_record* - Optional. A record containing custom data that will be recorded in Application Insights.
30+
2631

2732
### See Also
2833

powerapps-docs/maker/canvas-apps/test-studio.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ While work to provide full control coverage in Power Apps Test Studio is in prog
9191
- Components.
9292
- Code components written in the Power Apps Component Framework.
9393
- Nested galleries.
94-
- Media controls
94+
- Media controls.
95+
- Formula-level-error management experimental feature needs to be turned on for the app.
9596
- Support for controls not listed in the [Select](./functions/function-select.md) and [SetProperty](./functions/function-setproperty.md) functions.
96-
- Person type columns in SharePoint.
97+
- Person type columns.

0 commit comments

Comments
 (0)