{"id":26845576,"url":"https://github.com/automatedowl/allure-environment-writer","last_synced_at":"2025-04-30T20:26:33.753Z","repository":{"id":52241508,"uuid":"160184636","full_name":"AutomatedOwl/allure-environment-writer","owner":"AutomatedOwl","description":"Java library which allows to write environment.xml file into allure-results directory.","archived":false,"fork":false,"pushed_at":"2023-12-12T09:22:38.000Z","size":43,"stargazers_count":24,"open_issues_count":5,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-22T13:24:00.088Z","etag":null,"topics":["allure-report","java","reporting-tool","testing-tools","testng"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AutomatedOwl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-12-03T12:04:48.000Z","updated_at":"2024-12-01T22:35:42.000Z","dependencies_parsed_at":"2023-12-12T10:30:43.222Z","dependency_job_id":"8048192e-5e06-4d4a-a22a-bb1eaebc6ea5","html_url":"https://github.com/AutomatedOwl/allure-environment-writer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutomatedOwl%2Fallure-environment-writer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutomatedOwl%2Fallure-environment-writer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutomatedOwl%2Fallure-environment-writer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutomatedOwl%2Fallure-environment-writer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AutomatedOwl","download_url":"https://codeload.github.com/AutomatedOwl/allure-environment-writer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246372039,"owners_count":20766618,"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":["allure-report","java","reporting-tool","testing-tools","testng"],"created_at":"2025-03-30T19:37:03.293Z","updated_at":"2025-03-30T19:37:03.752Z","avatar_url":"https://github.com/AutomatedOwl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# allure-environment-writer\n\nJava library which allows to write environment.xml file into allure-results directory.\nCurrently, the library supports Allure report with either JUnit or TestNG. It would allow you:\n\n* Easily write the environment.xml file to allure-results directory in any stage of your test.\n* Flexible path of 'allure-results' directory.\n* Use ImmutableMap to create immutable set of values for the environment to contain.\n\n### Example of common usage (default path is target/allure-results):\n\n```\nimport static com.github.automatedowl.tools.AllureEnvironmentWriter.allureEnvironmentWriter;\n\npublic class SomeTests {\n\n    @BeforeSuite\n    void setAllureEnvironment() {\n        allureEnvironmentWriter(\n                ImmutableMap.\u003cString, String\u003ebuilder()\n                        .put(\"Browser\", \"Chrome\")\n                        .put(\"Browser.Version\", \"70.0.3538.77\")\n                        .put(\"URL\", \"http://testjs.site88.net\")\n                        .build());\n    }\n\n    @Test\n    void sanityOneTest() {\n        Assert.assertTrue(true);\n    }\n\n    @Test\n    void sanityTwoTest() {\n        Assert.assertTrue(true);\n    }\n}\n```\n\n### Example of usage with customized allure-results path:\n\n```\nimport static com.github.automatedowl.tools.AllureEnvironmentWriter.allureEnvironmentWriter;\n\npublic class SomeTests {\n\n    @BeforeSuite\n    void setAllureEnvironment() {\n        allureEnvironmentWriter(\n                ImmutableMap.\u003cString, String\u003ebuilder()\n                        .put(\"Browser\", \"Chrome\")\n                        .put(\"Browser.Version\", \"70.0.3538.77\")\n                        .put(\"URL\", \"http://testjs.site88.net\")\n                        .build(), System.getProperty(\"user.dir\")\n                        + \"/allure-results/\");\n    }\n\n    @Test\n    void someTest() {\n        Assert.assertTrue(true);\n    }\n}\n```\n\n### Sanpshot of received environment data in Allure report:\n\n![Bandwidth Logging](.github/allure-environment-data.png)\n\n### Maven dependencies\n\n```\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.github.automatedowl\u003c/groupId\u003e\n        \u003cartifactId\u003eallure-environment-writer\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomatedowl%2Fallure-environment-writer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautomatedowl%2Fallure-environment-writer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomatedowl%2Fallure-environment-writer/lists"}