增加测试用例

This commit is contained in:
everywhere.z
2024-03-05 14:57:03 +08:00
parent 778cd5787e
commit 3d65d77730
2 changed files with 16 additions and 0 deletions

View File

@@ -43,4 +43,10 @@ public class ScriptPythonCommonELTest extends BaseTest {
Assertions.assertEquals("hi,jack", context.getData("td"));
}
@Test
public void testCommon2() {
LiteflowResponse response = flowExecutor.execute2Resp("chain2", "arg");
Assertions.assertTrue(response.isSuccess());
}
}

View File

@@ -25,9 +25,19 @@
</node>
<node id="s2" name="文件脚本" type="script" file="common/s2.py" language="python"/>
<node id="s3" name="普通脚本1" type="switch_script" language="python">
<![CDATA[
"a"
]]>
</node>
</nodes>
<chain name="chain1">
THEN(a, b, c, s1, s2);
</chain>
<chain name="chain2">
SWITCH(s3).TO(a,b);
</chain>
</flow>