| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 34a91fa commit b666b06
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ | |||
| 21 | 21 | from allure_behave.utils import get_status, get_status_details | |
| 22 | 22 | from allure_behave.utils import scenario_links | |
| 23 | 23 | from allure_behave.utils import scenario_labels | |
| 24 | + from allure_behave.utils import get_fullname | ||
| 24 | 25 | ||
| 25 | 26 | ||
| 26 | 27 | BEFORE_FIXTURES = ['before_all', 'before_tag', 'before_feature', 'before_scenario'] | |
@@ -93,6 +94,7 @@ def start_scenario(self, scenario): | |||
| 93 | 94 | ||
| 94 | 95 | test_case = TestResult(uuid=self.current_scenario_uuid, start=now()) | |
| 95 | 96 | test_case.name = scenario_name(scenario) | |
| 97 | + test_case.fullName = get_fullname(scenario) | ||
| 96 | 98 | test_case.historyId = scenario_history_id(scenario) | |
| 97 | 99 | test_case.description = '\n'.join(scenario.description) | |
| 98 | 100 | test_case.parameters = scenario_parameters(scenario) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,6 +91,12 @@ def get_status(exception): | |||
| 91 | 91 | return Status.PASSED | |
| 92 | 92 | ||
| 93 | 93 | ||
| 94 | + def get_fullname(scenario): | ||
| 95 | + name_with_param = scenario_name(scenario) | ||
| 96 | + name = name_with_param.rsplit(" -- ")[0] | ||
| 97 | + return "{filename}:{name}".format(filename=scenario.filename, name=name) | ||
| 98 | + | ||
| 99 | + | ||
| 94 | 100 | def step_status_details(result): | |
| 95 | 101 | if result.exception: | |
| 96 | 102 | # workaround for https://github.com/behave/behave/pull/616 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments