You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/logic-apps/test-logic-apps-mock-data-static-results.md
+45-31Lines changed: 45 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -116,10 +116,10 @@ This article shows how to set up mock data on an action in a workflow for the [*
116
116
117
117
## Find runs that use mock data
118
118
119
-
To find earlier workflow runs where the actions use mock data, review that workflow's run history.
120
-
121
119
### [Consumption](#tab/consumption)
122
120
121
+
To find earlier workflow runs where the actions use mock data, review that workflow's run history.
122
+
123
123
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer.
124
124
125
125
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
140
140
141
141
### [Standard](#tab/standard)
142
142
143
+
To find other workflow runs where the actions use mock data, you have to check each run.
144
+
143
145
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer.
144
146
145
147
1. On the workflow menu, select **Overview**.
146
148
147
149
1. Under the **Essentials** section, select **Run History**, if not already selected.
148
150
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.
150
152
151
-
Any run that includes actions with mockdata output has the **Static Results** column set to **Enabled**, for example:
153
+

152
154
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 example:
156
+
157
+

154
158
155
159
---
156
160
@@ -170,7 +174,7 @@ If you have a previous workflow run with outputs, you can reuse these outputs as
170
174
171
175

172
176
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.
174
178
175
179
1. In the **Outputs** section, select **Show raw outputs**.
176
180
@@ -196,43 +200,25 @@ If you have a previous workflow run with outputs, you can reuse these outputs as
196
200
197
201
### [Standard](#tab/standard)
198
202
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 ().
212
-
213
-

214
-
215
-
1. Select **Disable Static Result** > **Done**.
216
-
217
-

218
-
219
-
### [Standard](#tab/standard)
220
-
221
203
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer.
222
204
223
205
1. On the workflow menu, select **Overview**.
224
206
225
207
1. Under the **Essentials** section, select **Run History**, if not already selected.
226
208
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
+

212
+
213
+
1. After the run details pane opens, select the action that has the outputs that you want.
228
214
229
215
1. In the **Outputs** section, select **Show raw outputs**.
230
216
231
217
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.
232
218
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.
234
220
235
-
1. After the **Testing**pane opens, choose either step:
221
+
1. After the **Testing**tab opens, choose either step:
236
222
237
223
* To paste a complete JSON object, next to the **Testing** label, select **Switch to JSON Mode** ():
238
224
@@ -250,6 +236,34 @@ Turning off static results on an action doesn't remove the values from your last
250
236
251
237
---
252
238
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 ().
248
+
249
+

250
+
251
+
1. Select **Disable Static Result** > **Done**.
252
+
253
+

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
+

264
+
265
+
---
266
+
253
267
## Reference
254
268
255
269
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