Browse Source

修改测试用例

everywhere.z 2 years ago
parent
commit
4510ba7fec

+ 4 - 3
liteflow-testcase-el/liteflow-testcase-el-script-python-springboot/src/test/resources/common/flow.xml

@@ -5,10 +5,11 @@
         <node id="s1" name="普通脚本1" type="script" language="python">
             <![CDATA[
                 import json
-                x='{"name": "Jack", "age": 75, "nationality": "China"}'
+
+                x='{"name": "杰克", "age": 75, "nationality": "China"}'
                 jsonData=json.loads(x)
-                temperature=jsonData['name']
-                print(temperature)
+                name=jsonData['name']
+                defaultContext.setData("name", name.decode('utf-8'))
 
 
                 a=6