# NOTE: Generated By HttpRunner v{{ version }}
# FROM: {{ testcase_path }}

{% if imports_list and diff_levels > 0 %}
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__){% for _ in range(diff_levels) %}.parent{% endfor %}))
{% endif %}

{% if parameters %}
import pytest
from httprunner import Parameters
{% endif %}

from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
{% for import_str in imports_list %}
{{ import_str }}
{% endfor %}

class {{ class_name }}(HttpRunner):

	{% if parameters %}
	@pytest.mark.parametrize("param", Parameters({{parameters}}))
	def test_start(self, param):
		super().test_start(param)
	{% endif %}

	config = {{ config_chain_style }}

	teststeps = [
		{% for step_chain_style in teststeps_chain_style %}
			{{ step_chain_style }},
		{% endfor %}
	]


if __name__ == "__main__":
	{{ class_name }}().test_start()
