Changes for page SetVar
Last modified by Outhman Moustaghfir on 2024/09/27 13:43
<
>
edited by Outhman Moustaghfir
on 2024/01/30 17:10
on 2024/01/30 17:10
edited by Outhman Moustaghfir
on 2024/01/30 15:58
on 2024/01/30 15:58
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -32,13 +32,13 @@ 32 32 }}} 33 33 34 34 {{code language="json"}} 35 -{ "var1": "value1", "var2": "${ Env.GetVar;variableName}" }35 +{ "var1": "value1", "var2": "${GetVar;variableName}" } 36 36 {{/code}} 37 37 38 38 39 39 === Dynamic Values === 40 40 41 -SetVar supports dynamic values using i XPath functions(GetVar, Date, GetTracking...).This allows you to reference the values of other variables within the JSON file.41 +SetVar supports dynamic values using expressions in the** ${GetVar;variableName}** format. This allows you to reference the values of other variables within the JSON file. 42 42 43 43 == Examples == 44 44 ... ... @@ -52,11 +52,11 @@ 52 52 {{/code}} 53 53 54 54 55 -=== Using Dynamic Values by GetVar function===55 +=== Using Dynamic Values === 56 56 57 57 58 58 {{code language="json"}} 59 -{ "username": "john_doe", "email": "${ Env.GetVar;Email}", "isAdmin": "false"}59 +{ "username": "john_doe", "email": "${GetVar;Email}", "isAdmin": "false"} 60 60 {{/code}} 61 61 62 62 ... ... @@ -63,7 +63,7 @@ 63 63 == Important Notes == 64 64 65 65 * Variables set by SetVar can be referenced within the same JSON file or in subsequent scenarios. 66 -* Ensure proper syntax for dynamic values using ** iXPath functions**.66 +* Ensure proper syntax for dynamic values using **${GetVar;variableName}**. 67 67 68 68 == Conclusion == 69 69
- var.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.omoustaghfir - Size
-
... ... @@ -1,1 +1,0 @@ 1 -14.3 KB - Content