Skip to content

Commit cd380f7

Browse files
committedOct 5, 2021
Static result updates
1 parent 5b5c9de commit cd380f7

8 files changed

+45
-31
lines changed
 
Loading

‎articles/logic-apps/test-logic-apps-mock-data-static-results.md

Lines changed: 45 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ This article shows how to set up mock data on an action in a workflow for the [*
116116

117117
## Find runs that use mock data
118118

119-
To find earlier workflow runs where the actions use mock data, review that workflow's run history.
120-
121119
### [Consumption](#tab/consumption)
122120

121+
To find earlier workflow runs where the actions use mock data, review that workflow's run history.
122+
123123
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer.
124124

125125
1. On your logic app resource menu, select **Overview**.
@@ -140,17 +140,21 @@ To find earlier workflow runs where the actions use mock data, review that workf
140140

141141
### [Standard](#tab/standard)
142142

143+
To find other workflow runs where the actions use mock data, you have to check each run.
144+
143145
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer.
144146

145147
1. On the workflow menu, select **Overview**.
146148

147149
1. Under the **Essentials** section, select **Run History**, if not already selected.
148150

149-
1. In the **Run History** table, find the **Static Results** column.
151+
1. In the **Run History** table, select the run that you want to review.
150152

151-
Any run that includes actions with mock data output has the **Static Results** column set to **Enabled**, for example:
153+
![Screenshot showing the workflow run history.](./media/test-logic-apps-mock-data-static-results/select-run-standard.png)
152154

153-
1. To view that actions in a run that uses mock data, select the run that you want where the **Static Results** column is set to **Enabled**.
155+
1. On the run details pane, check whether any actions show the test beaker (![Icon for static result](./media/test-logic-apps-mock-data-static-results/static-result-test-beaker-icon.png)) icon, for example:
156+
157+
![Screenshot showing workflow run history with actions that use static result.](./media/test-logic-apps-mock-data-static-results/run-history-static-result-standard.png)
154158

155159
---
156160

@@ -170,7 +174,7 @@ If you have a previous workflow run with outputs, you can reuse these outputs as
170174

171175
![Screenshot showing workflow run history.](./media/test-logic-apps-mock-data-static-results/select-run.png)
172176

173-
1. After the **Logic app run** pane opens, expand the action that has the outputs that you want.
177+
1. After the run details pane opens, expand the action that has the outputs that you want.
174178

175179
1. In the **Outputs** section, select **Show raw outputs**.
176180

@@ -196,43 +200,25 @@ If you have a previous workflow run with outputs, you can reuse these outputs as
196200

197201
### [Standard](#tab/standard)
198202

199-
200-
201-
---
202-
203-
## Disable mock data
204-
205-
Turning off static results on an action doesn't remove the values from your last setup. So, if you turn on static result again on the same action, you can continue using your previous values.
206-
207-
### [Consumption](#tab/consumption)
208-
209-
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer. Find the action where you want to disable mock data.
210-
211-
1. In the action's upper-right corner, select the test beaker icon (![Icon for static result](./media/test-logic-apps-mock-data-static-results/static-result-test-beaker-icon.png)).
212-
213-
![Screenshot showing the action and the test beaker icon selected.](./media/test-logic-apps-mock-data-static-results/disable-static-result.png)
214-
215-
1. Select **Disable Static Result** > **Done**.
216-
217-
![Screenshot showing the "Disable Static Result" selected.](./media/test-logic-apps-mock-data-static-results/disable-static-result-button.png)
218-
219-
### [Standard](#tab/standard)
220-
221203
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer.
222204

223205
1. On the workflow menu, select **Overview**.
224206

225207
1. Under the **Essentials** section, select **Run History**, if not already selected.
226208

227-
1. After the workflow run pane opens, select the action that has the outputs that you want.
209+
1. In the **Run History** table, select the run that you want to review.
210+
211+
![Screenshot showing the workflow run history.](./media/test-logic-apps-mock-data-static-results/select-run-standard.png)
212+
213+
1. After the run details pane opens, select the action that has the outputs that you want.
228214

229215
1. In the **Outputs** section, select **Show raw outputs**.
230216

231217
1. On the **Outputs** pane, copy either the complete JavaScript Object Notation (JSON) object or the specific subsection you want to use, for example, the outputs section, or even just the headers section.
232218

233-
1. Review the earlier section about how to [set up mock data](#enable-mock-data) for an action, and follow the steps to open the action's **Testing** pane.
219+
1. Review the earlier section about how to [set up mock data](#enable-mock-data) for an action, and follow the steps to open the action's **Testing** tab.
234220

235-
1. After the **Testing** pane opens, choose either step:
221+
1. After the **Testing** tab opens, choose either step:
236222

237223
* To paste a complete JSON object, next to the **Testing** label, select **Switch to JSON Mode** (![Icon for "Switch to JSON Mode"](./media/test-logic-apps-mock-data-static-results/switch-to-json-mode-button.png)):
238224

@@ -250,6 +236,34 @@ Turning off static results on an action doesn't remove the values from your last
250236

251237
---
252238

239+
## Disable mock data
240+
241+
Turning off static results on an action doesn't remove the values from your last setup. So, if you turn on static result again on the same action, you can continue using your previous values.
242+
243+
### [Consumption](#tab/consumption)
244+
245+
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer. Find the action where you want to disable mock data.
246+
247+
1. In the action's upper-right corner, select the test beaker icon (![Icon for static result](./media/test-logic-apps-mock-data-static-results/static-result-test-beaker-icon.png)).
248+
249+
![Screenshot showing the action and the test beaker icon selected.](./media/test-logic-apps-mock-data-static-results/disable-static-result.png)
250+
251+
1. Select **Disable Static Result** > **Done**.
252+
253+
![Screenshot showing the "Disable Static Result" selected.](./media/test-logic-apps-mock-data-static-results/disable-static-result-button.png)
254+
255+
### [Standard](#tab/standard)
256+
257+
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer. Select the action where you want to disable mock data.
258+
259+
1. In the action details pane, select the **Testing** tab.
260+
261+
1. Select **Disable Static Result** > **Done**.
262+
263+
![Screenshot showing the "Disable Static Result" selected for Standard.](./media/test-logic-apps-mock-data-static-results/disable-static-result-button-standard.png)
264+
265+
---
266+
253267
## Reference
254268

255269
For more information about this setting in your underlying workflow definitions, see [Static results - Schema reference for Workflow Definition Language](logic-apps-workflow-definition-language.md#static-results) and [runtimeConfiguration.staticResult - Runtime configuration settings](logic-apps-workflow-actions-triggers.md#runtime-configuration-settings)

0 commit comments

Comments
 (0)
Please sign in to comment.