Skip to content

Commit 775c3b2

Browse files
committed
Content changes for initial release
1 parent 88a3e25 commit 775c3b2

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

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

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

19-
An assertion is a condition or an expression that evaluates to true or false in a test. If the expression returns false, the test case will fail. Assertions are used to validate the expected result of a test or test step, against the actual result and to fail the test if the condition is false.
19+
An assertion is a condition or an expression that evaluates to true or false in a test. If the expression returns false, the test case will fail. Assertions are used to validate the expected result of a test or test step, against the actual result and to fail the test if the condition is false. Assertions can be used to validate the state of controls in your app such as label values, list box selections and other control properties.
20+
21+
Assertion messages, for both passed and failed assertions, are also contained in a Traces table in the TestCaseResult record.
2022

2123
## Syntax
2224

@@ -26,9 +28,11 @@ An assertion is a condition or an expression that evaluates to true or false in
2628
- *Message* – Not Required. A message that describes the assertion failure.
2729

2830

29-
## Example
31+
## Examples
3032

31-
```Assert(kudosAfterTest = kudosBeforeTest + 1, "Kudos count incorrect. Expected : " & kudosBeforeTest + 1 & " Actual :" & kudosAfterTest)```
33+
```Assert(lblResult.Text = "Success", "lblResult value Expected : Success , Actual : " & lblResult.Text)```<br>
34+
```Assert(ListBox1.Selected.Value = "Success", "ListBox1 selection Expected : Success, Actual : " & ListBox1.Selected.Value)```<br>
35+
```Assert(kudosAfterTest = kudosBeforeTest + 1, "Kudos count. Expected : " & kudosBeforeTest + 1 & " Actual :" & kudosAfterTest)```
3236

3337
### See Also
3438

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,15 @@ A control can't **Select** itself directly or indirectly through other controls.
8989

9090
## Select function for Test Studio
9191

92-
For tests, the select action will fail if the control you are trying to select is not available on the current screen.
93-
94-
The select function can also be used to specify the row to select in a gallery and the control to select within that row of the gallery.
92+
The select function can also 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.
9593

9694
### Syntax
9795

98-
*Select(Control, Row, Child Control)*
96+
*Select(Control, Row or column, Child Control)*
9997

10098
- *Control* – Required. The control to select on behalf of the user.
101-
- *Row* – Not required. The row in a gallery control to select on behalf of the user.
102-
- *Child Control* - Not required. The child control to select in the row of a gallery on behalf of the user.
99+
- *Row or column* – Not required. The row or column in a gallery control to select on behalf of the user.
100+
- *Child Control* - Not required. The child control of the control identified in the 'control' parameter to select.
103101

104102
### Examples
105103

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The SetProperty function simulates interactions with input controls as if the us
2020

2121
## Syntax
2222

23-
*Select(Control Property, value)*
23+
*SetProperty(Control Property, value)*
2424

2525
- *Control Property* – Required. The control property to set on behalf of the user.
2626
- *Value* – Required. The value of the property to set on behalf of the user.
@@ -38,12 +38,12 @@ The SetProperty function simulates interactions with input controls as if the us
3838
| DatePicker | SelectedDate | ```SetProperty(DatePicker1.SelectedDate, Date(2020,3,10))```
3939
| Radio | Selected | ```SetProperty(Radio1.Selected, "Yes")```
4040
| Radio | SelectedText | ```SetProperty(Radio1.SelectedText, "Yes")```
41-
| Dropdown | Selected | ```SetProperty(Dropdown1.Selected, {Value:"Sample Value"})```
42-
| Dropdown | SelectedText | ```SetProperty(Dropdown1.SelectedText, {Value:"value"})```
43-
| Combobox | Selected | ```SetProperty(Dropdown1.Selected, {Value:"Sample Value"})```
44-
| Combobox | SelectedItems | ```SetProperty(ComboBox1.SelectedItems, Table({Value:"Sample Value"},({Value:"Sample Value"}))```
45-
| ListBox | Selected | ```SetProperty(Listbox1.Selected, {'Value':"Sample Value"})```
46-
| ListBox | SelectedText | ```SetProperty(Listbox1. SelectedText, {'Value':"Sample text"})```
41+
| Dropdown | Selected | ```SetProperty(Dropdown1.Selected, {Value:"Sample value"})```
42+
| Dropdown | SelectedText | ```SetProperty(Dropdown1.SelectedText, {Value:"Sample value"})```
43+
| Combobox | Selected | ```SetProperty(Dropdown1.Selected, {Value:"Sample value"})```
44+
| Combobox | SelectedItems | ```SetProperty(ComboBox1.SelectedItems, Table({Value:"Sample value"},({Value:"Sample value"}))```
45+
| ListBox | Selected | ```SetProperty(Listbox1.Selected, {'Value':"Sample value"})```
46+
| ListBox | SelectedText | ```SetProperty(Listbox1. SelectedText, {'Value':"Sample value"})```
4747
| ListBox | SelectedItems | ```SetProperty(Listbox1.SelectedItems, Table({Value:"Sample value"},({Value:"Sample value"}))```
4848
| ListBox | SelectedItemsText | ```SetProperty(Listbox1.SelectedItemsText, Table({Value:"Sample value"},({Value:"Sample value"}))```
4949

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,6 @@ 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
9495
- Support for controls not listed in the [Select](./functions/function-select.md) and [SetProperty](./functions/function-setproperty.md) functions.
9596
- Person type columns in SharePoint.

0 commit comments

Comments
 (0)