feat(behave): add BehaveX parallel execution support#480
Merged
Conversation
Add parse_scenario_from_json() and parse_step_from_json() to utils.py that convert BehaveX consolidated JSON output into Qase Result/Step models. These functions will be used by the JSON formatter to process parallel execution results from BehaveX.
Make QaseFormatter dual-mode to support BehaveX parallel execution: - Standard behave mode (unchanged behavior) - BehaveX worker mode with lock file coordination for shared run - BehaveX post-execution mode via launch_json_formatter for consolidated JSON processing
Add filelock>=3.12.2 for BehaveX worker coordination.
BehaveX timestamps are from before run creation and rejected by API. Calculate timestamps from current time and duration instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
qase-behavevia--formatterflaglaunch_json_formatter()— BehaveX's post-execution formatter interfaceqase.id,qase.suite,qase.fields,qase.tags,qase.ignore,qase.project_id), statuses, duration, error messagesfilelock) for potential worker mode supportUsage
Known limitations
qase.attach()/qase.comment()not supported in BehaveX mode (post-execution processing)qase.config.json(no--define)Test plan