robotframework / robotframework/robotframework

Variable file using `BuiltIn.run_keyword` can cause output.xml to be invalid

Open
#4,963 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
11.9k
Forks
2.6k
Avg merge
1d 18h
Merged PRs (30d)
10

Description

This happens only if path to tests is direct path to file. If the path is to parent dir then 'suite' tag is in the output between 'robot' and 'kw' tags.
I checked in rf6.1.1 and rf4.1.3 and it exists on both.
All the information to reproduce are visible on the screenshot:
vars_gen_issue

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using a direct path to a test file and compare it with running the parent directory, then inspect the generated output.xml. Trace the variable-file path involving BuiltIn.run_keyword; done means output.xml is valid XML in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.