Skip to content

Commit 5c2b695

Browse files
committed
add flow
1 parent 78af9a3 commit 5c2b695

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed

test/flow.side

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"id": "943ac74b-0cff-4c39-a49d-21bd3d6c7989",
3+
"version": "2.0",
4+
"name": "flow",
5+
"url": "https://www.baidu.com",
6+
"tests": [{
7+
"id": "63677d7b-5261-49b5-9e96-8b6e58d9711b",
8+
"name": "1-judge",
9+
"commands": [{
10+
"id": "cb7f95a5-789d-44ba-9263-bddca519c771",
11+
"comment": "",
12+
"command": "store",
13+
"target": "25",
14+
"targets": [],
15+
"value": "age"
16+
}, {
17+
"id": "58a50c0d-8296-475c-8960-bff54449dc52",
18+
"comment": "",
19+
"command": "if",
20+
"target": "${age} > 20",
21+
"targets": [],
22+
"value": ""
23+
}, {
24+
"id": "fb88e2dd-d4dc-4c73-baca-e0febaf016c2",
25+
"comment": "",
26+
"command": "echo",
27+
"target": "你是个男人",
28+
"targets": [],
29+
"value": ""
30+
}, {
31+
"id": "2c77ad4d-0675-4fac-ba3a-3519ab5e0923",
32+
"comment": "",
33+
"command": "else",
34+
"target": "",
35+
"targets": [],
36+
"value": ""
37+
}, {
38+
"id": "d3f382f4-4dfe-440b-b3c0-82553f4f3007",
39+
"comment": "",
40+
"command": "echo",
41+
"target": "你是个男孩",
42+
"targets": [],
43+
"value": ""
44+
}, {
45+
"id": "d7d0b091-bc2b-4ecc-9987-6f56ae3037db",
46+
"comment": "",
47+
"command": "end",
48+
"target": "",
49+
"targets": [],
50+
"value": ""
51+
}]
52+
}, {
53+
"id": "a6e3d9b7-a808-43eb-8188-7264fc06b3bf",
54+
"name": "2-loop",
55+
"commands": [{
56+
"id": "6172dec8-1ac0-4026-8541-288c9a06867a",
57+
"comment": "",
58+
"command": "executeScript",
59+
"target": "return 0;",
60+
"targets": [],
61+
"value": "n"
62+
}, {
63+
"id": "b188a6e1-4951-452e-8a53-39cd54c30274",
64+
"comment": "",
65+
"command": "times",
66+
"target": "10",
67+
"targets": [],
68+
"value": ""
69+
}, {
70+
"id": "7ef41673-bb7f-46dd-a1bc-ea6ff72ea737",
71+
"comment": "",
72+
"command": "echo",
73+
"target": "${n}",
74+
"targets": [],
75+
"value": ""
76+
}, {
77+
"id": "03fc33d1-1470-4d0f-97d8-8deb9c6eab40",
78+
"comment": "",
79+
"command": "executeScript",
80+
"target": "return ${n}+1;",
81+
"targets": [],
82+
"value": "n"
83+
}, {
84+
"id": "8eeac685-de57-453f-8629-5f0be903e36c",
85+
"comment": "",
86+
"command": "end",
87+
"target": "",
88+
"targets": [],
89+
"value": ""
90+
}]
91+
}],
92+
"suites": [{
93+
"id": "ed5a041f-9462-4c9b-ae41-2f23a5b4f9e2",
94+
"name": "Default Suite",
95+
"persistSession": false,
96+
"parallel": false,
97+
"timeout": 300,
98+
"tests": ["63677d7b-5261-49b5-9e96-8b6e58d9711b"]
99+
}],
100+
"urls": ["https://www.baidu.com/"],
101+
"plugins": []
102+
}

0 commit comments

Comments
 (0)