Skip to content

Commit 706f3ad

Browse files
committed
ISSUE-659 Added a new test to the http module(Green)
1 parent 39a2f4e commit 706f3ad

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package org.jsmart.zerocode.testhelp.tests.helloworldnamedcsvparam;
2+
3+
import org.jsmart.zerocode.core.domain.Scenario;
4+
import org.jsmart.zerocode.core.domain.TargetEnv;
5+
import org.jsmart.zerocode.core.runner.ZeroCodeUnitRunner;
6+
import org.junit.Test;
7+
import org.junit.runner.RunWith;
8+
9+
@TargetEnv("github_host.properties")
10+
@RunWith(ZeroCodeUnitRunner.class)
11+
public class HelloWorldNamedCsvParamsTest {
12+
13+
@Test
14+
@Scenario("parameterized_csv/hello_world_test_named_parameterized.json")
15+
public void testNamedParameterized() throws Exception {
16+
}
17+
18+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"scenarioName": "Named Parameterized Scenario for ---> ${0}",
3+
"steps": [
4+
{
5+
"name": "get_user_details",
6+
"url": "/users/${PARAM.USERID}",
7+
"method": "GET",
8+
"request": {
9+
},
10+
"assertions": {
11+
"status": 200,
12+
"body": {
13+
"login" : "${PARAM.USERID}",
14+
"type" : "User",
15+
"name" : "${PARAM.USERNAME}",
16+
"location" : "${PARAM.ADDRESS}",
17+
"id" : "(int)${PARAM.USERNO}",
18+
"site_admin" : "(boolean)${PARAM.ISADMIN}"
19+
}
20+
}
21+
}
22+
],
23+
"parameterized": {
24+
"csvSource":[
25+
"|USERID|, |USERNAME|, |ADDRESS|, |USERNO|, |ISADMIN|",
26+
"octocat, The Octocat, San Francisco, 583231, false",
27+
"siddhagalaxy, Sidd, UK, 33847730, false"
28+
]
29+
}
30+
}

0 commit comments

Comments
 (0)