kezhenxu94 commented on a change in pull request #58:
URL: 
https://github.com/apache/skywalking-infra-e2e/pull/58#discussion_r732813412



##########
File path: docs/en/setup/Configuration-File.md
##########
@@ -193,6 +195,28 @@ cases:
      expected: path/to/expected.yaml   # excepted content file path
 ```
 
+#### Environment
+
+You could be using `environment` to replace variables from include cases. 
+In the include file, you could declare `${var}` or `$var` to show which 
environment need to be replaced.
+
+```yaml
+# verify file
+- include:
+    - path/to/include
+  environment:
+    # The key and value only accept string value
+    customKey: customValue  
+
+# include file
+cases:
+  - query: echo "$customKey"
+  
+# Executing verify case, replace environment data
+cases:
+   - query: echo "customValue"
+```

Review comment:
       Bear in mind the doc will serve as a guideline and demonstrate to users 
the typical use case of this feature, so you'd better mock some "real" 
scenarios instead of giving random configs like `echo $customKey`, `echo 
"customValue"`




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to