public class TestBuilder extends Object
TestBuilder is responsible for creating JUnit tests from JSON test descriptions.| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_CASE_ATTRIBUTE |
static String |
JSON_CASE_POSITIVE |
static String |
JSON_CASE_SELECTOR |
static String |
JSON_CASE_VALUE |
static String |
JSON_EXPECTED_MARKUP |
static String |
JSON_EXPECTED_STATUS_CODE |
static String |
JSON_GROUP_CASES |
static String |
JSON_GROUP_NAME |
static String |
JSON_GROUPS |
static String |
JSON_METHOD |
static String |
JSON_SUITE |
static String |
JSON_URL |
| Constructor and Description |
|---|
TestBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static List<junit.framework.TestCase> |
getTests(org.json.JSONObject testDescription)
Creates a JUnit tests from a JSON test description.
|
public static final String JSON_SUITE
public static final String JSON_URL
public static final String JSON_EXPECTED_MARKUP
public static final String JSON_METHOD
public static final String JSON_GROUPS
public static final String JSON_GROUP_NAME
public static final String JSON_GROUP_CASES
public static final String JSON_CASE_SELECTOR
public static final String JSON_CASE_VALUE
public static final String JSON_CASE_POSITIVE
public static final String JSON_CASE_ATTRIBUTE
public static final String JSON_EXPECTED_STATUS_CODE
public static List<junit.framework.TestCase> getTests(org.json.JSONObject testDescription)
src/main/resources/testfiles/definitions folder.testDescription - a JSON object encapsulating a test descriptionCopyright © 2020. All rights reserved.