<
From version < 2.1 >
edited by Outhman Moustaghfir
on 2024/01/30 15:01
To version < 3.3 >
edited by Outhman Moustaghfir
on 2024/01/30 15:03
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,6 +2,8 @@
2 2  
3 3  == Overview ==
4 4  
5 +[[image:setvar.png]]
6 +
5 5  The SetVar connector is designed to set variables within a scenario by utilizing a JSON file. This connector allows users to define variables and even use dynamic values using expressions.
6 6  
7 7  == Usage ==
... ... @@ -8,6 +8,8 @@
8 8  
9 9  === JSON Format ===
10 10  
13 +[[image:Capture d'écran 2024-01-30 150237.png]]
14 +
11 11  The JSON file for SetVar has a simple structure. It consists of key-value pairs, where the keys represent variable names, and the values can be either static values or dynamic expressions.
12 12  
13 13  ==== Example 1: ====
... ... @@ -15,12 +15,11 @@
15 15  {{{
16 16   }}}
17 17  
18 -{{code language="XML"}}
19 -SetVar(variable_name, value, global=False)
22 +{{code language="json"}}
23 +{ "var1": "value1", "var2": "true" }
20 20  
21 21  {{/code}}
22 22  
23 -{ "var1": "value1", "var2": "true" }
24 24  
25 25  ==== Example 2: ====
26 26  
Capture d'écran 2024-01-30 150237.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.omoustaghfir
Size
... ... @@ -1,0 +1,1 @@
1 +14.9 KB
Content
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian