{"id":15144441,"url":"https://github.com/tungbq/robotparser","last_synced_at":"2026-01-15T22:45:21.733Z","repository":{"id":220608437,"uuid":"752093091","full_name":"tungbq/robotparser","owner":"tungbq","description":"Covert robotframework output.xml result to output.json","archived":false,"fork":false,"pushed_at":"2024-07-28T05:27:16.000Z","size":173,"stargazers_count":1,"open_issues_count":15,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T19:09:03.651Z","etag":null,"topics":["docker","python","robotframework","tools"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tungbq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-03T02:18:13.000Z","updated_at":"2024-07-28T05:27:19.000Z","dependencies_parsed_at":"2024-02-03T03:37:07.303Z","dependency_job_id":"a0abd133-b5c5-436f-a818-29147a3ff0d5","html_url":"https://github.com/tungbq/robotparser","commit_stats":null,"previous_names":["tungbq/robotparser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungbq%2Frobotparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungbq%2Frobotparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungbq%2Frobotparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungbq%2Frobotparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tungbq","download_url":"https://codeload.github.com/tungbq/robotparser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128742,"owners_count":20888234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","python","robotframework","tools"],"created_at":"2024-09-26T10:41:19.813Z","updated_at":"2026-01-15T22:45:21.698Z","avatar_url":"https://github.com/tungbq.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# robotparser\n\nCovert Robotframework output.xml result to output.json\n\n## Context\n\nYou utilize the Robot Framework for testing your application, and while the test results currently exist in XML format, you require a JSON result file for additional data processing. Look no further – this script is designed to assist you in effortlessly converting an XML test result file into a JSON format.\n\n## Usage\n\n### 1. Prerequisite\n\n- `python`: You have `python` installed on your machine. See: https://www.python.org/downloads/\n\n### 2. Clone the repository\n\nRun `git clone git@github.com:tungbq/robotparser.git`\n\n### 3. Run `robotparser` script directly on your machine\n\nIf you want to run the tool directly on your machine, follow below steps:\n\n- Run\n\n```\n# Navigate to your cloned code\ncd robotparser\n\n# Install dependencies\npip install -r requirements.txt\n\n# Start the script\npython robotparser.py -i \u003cinput-outputxml-file\u003e -o \u003coutput-json-file\u003e\n```\n\n- Options explaination\n\n```\n  -i, --input-file Specify the input XML file generated by robot test (e.g., robot-result/output.xml)\n  -o, --output-file Specify the output JSON file (e.g., output/output.json)\n  -h, --help Display this help message\n```\n\n- Example\n\n```\npython3 robotparser.py -i samples/input/hello_robot.xml -o output/hello_robot.json\npython3 robotparser.py -i samples/input/output_5_0.xml -o output/output_5_0.json\npython3 robotparser.py -i samples/input/output_5_0.xml -o output/output_5_0.json\npython3 robotparser.py -i samples/input/robot_demo_keyword_driven.xml -o output/robot_demo_keyword_driven.json\n```\n\n### 4. Run the script in Docker (Optional)\n\nIf you want to run the script inside a Docker container, follow below steps:\n\n- Build the docker image\n\n```\ncd robotparser\ndocker build -t robotparser:latest .\n```\n\n- Start `robotparser` inside container\n  Update the YOUR_ROBOT_SCRIPT_PATH which contains your target output.xml\n\n```\ncd robotparser\nYOUR_ROBOT_SCRIPT_PATH=\"/home/user/testing/robot_result/\"\n# Mount your robot sccipt path to docker container. Note that `/app` is the workspace of docker container\ndocker run --rm --name my_robotparser \\\n -v ${YOUR_ROBOT_SCRIPT_PATH}:/app \\\n robotparser:latest \\\n -i /app/your_robot_filename_in.xml \\\n -o /app/your_robot_filename_out.json\n```\n\nOne completed, we can find the JSON result under `YOUR_ROBOT_SCRIPT_PATH`\n\n### 5. Run robot demo to generate sample output.xml files\n\nSee [ROBOT_DEMO](./ROBOT_DEMO.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftungbq%2Frobotparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftungbq%2Frobotparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftungbq%2Frobotparser/lists"}