Skip to content

Reporter::loadExternalConfiguration with json file #184

Closed

Description

@anshooarora

Each reporter must now have the capability to apply external configuration using JSON files. Version 4 and earlier had the ability to consume XML files, which will be deprecated starting v5.0.

Activity

  1. added this to the 5.0.x milestone on Jun 9, 2020
  2. added a commit that references this issue on Jun 9, 2020
    ad4ca8c
  3. anshooarora commented on Jun 9, 2020

    @anshooarora
    MemberAuthor

    This request is now complete, to load configuration, use:

    final File CONF = new File("config/spark-config.json");
    ExtentSparkReporter spark = new ExtentSparkReporter("target/spark/spark.html");
    spark.loadConfig(CONF);
    

    Format of the configuration json (this can change for each reporter):

    {
        "theme": "standard",
        "encoding": "utf-8",
        "protocol": "HTTPS",
        "timelineEnabled": false,
        "offlineMode": true,
        "documentTitle": "ExtentReports",
        "reportName": "ExtentReports",
        "timeStampFormat": "MMM dd, yyyy HH:mm:ss a",
        "theme": "STANDARD",
        "js": "",
        "css": ""
    }
    
  4. added a commit that references this issue on Jun 13, 2020
    e7f00bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions