(raw_testsuite)
return raw_testsuite
load testsuite with testcase references.

    Args:
        raw_testsuite (dict): raw testsuite content loaded from JSON/YAML file:
            {
                "config": {
                    "name": "",
                    "request": {}
                }
                "testcases": {
                    "testcase1": {
                        "testcase": "/path/to/testcase",
                        "variables": {...},
                        "parameters": {...}
                    },
                    "testcase2": {}
                }
            }

    Returns:
        dict: loaded testsuite content
            {
                "config": {},
                "testcases": [testcase1, testcase2]
            }
load testsuite with testcase references.
load testsuite with testcase references .
def load_testsuite(raw_testsuite):
    """ load testsuite with testcase references.

    Args:
        raw_testsuite (dict): raw testsuite content loaded from JSON/YAML file:
            {
                "config": {
                    "name": "",
                    "request": {}
                }
                "testcases": {
                    "testcase1": {
                        "testcase": "/path/to/testcase",
                        "variables": {...},
                        "parameters": {...}
                    },
                    "testcase2": {}
                }
            }

    Returns:
        dict: loaded testsuite content
            {
                "config": {},
                "testcases": [testcase1, testcase2]
            }

    """
    testcases = raw_testsuite["testcases"]
    for name, raw_testcase in testcases.items():
        __extend_with_testcase_ref(raw_testcase)
        raw_testcase.setdefault("name", name)

    return raw_testsuite
def load_testsuite ( raw_testsuite ) : testcases = raw_testsuite [ "testcases" ] for name , raw_testcase in testcases . items ( ) : __extend_with_testcase_ref ( raw_testcase ) raw_testcase . setdefault ( "name" , name ) return raw_testsuite