Giter Site home page Giter Site logo

performance-reports's Introduction

Performance Reports

It follows this flow:

  1. reads tests results data from Jenkins output (json or csv)
  2. creates a new folder to place the genarated files
  3. creates a spreadsheet from a template in a Google Drive folder (from item 2, above)
  4. fills the spreadsheet with data from datasource (Jenkins output)
  5. creates a document from a template in the same folder as the spreadsheet
  6. replaces data in the document (place holders)

Config

There is a .properties file in the * drools.reports.resources folder *. It is possible to setup:

  • input data params for the generated documents (template's place holders)
  • datasource paths (json and csv): Jenkins output files
  • template files IDs on Google Drive
  • folder ID to place the generated report
  • csv as alternative

Google Auth (User Account auth)

  1. Follow the instructions: [1]
  2. Download the Google API Key File (Json format)
  3. Rename the file to "client_secret.json"
  4. Place the file on this folder: src/main/java/org/benchmarks/reports/resources/client_secret.json
  5. Call GoogleAuthorizeAsUser.authorize() on GoogleService() constructor.

Google Auth (Service Account auth)

  1. Follow the instructions: [2]
  2. Download the Service Google API Key File (Json format)
  3. Rename the file to "service-account.json"
  4. Place the file on this folder: src/main/java/org/benchmarks/reports/resources/service-account.json
  5. Take note of the service account e-mail address (API Console -> learn more [2])
  6. Go to the sharing configurations on the Google Drive Folder where the reports and templates are
  7. Set the service account e-mail address as a "People" to share the folder
  8. Call GoogleAuthorizeAsService.authorize() on GoogleService() constructor.

TO-DO

  1. DONE | draw chats and place them in the document
  2. DONE | do the authentication process automated
  3. DONE | set the output of the project in a shared space in Google Docs
  4. Major | integrate it with the Jenkins jobs to have reports more often (once a day/night?)
  5. Optional | improvements in the code
  6. Optional | improvements in the templates
  7. Optional | suggestions and feedbacks are welcome

Links

performance-reports's People

Contributors

hellowdan avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.