GithubHelp home page GithubHelp logo

cmwky / zephyr-reports Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 79 KB

A .NET application that integrates Jira & ZephyrScale APIs to export ZephyrScale's traceability matrix report to Excel.

C# 88.75% PowerShell 11.25%
jira test-coverage traceability-matrix zephyrscale

zephyr-reports's Introduction

ZephyrScale Traceability Matrix (Test Coverage) Report


The Problem

ZephyrScale doesn't offer the ability to export their Traceability Matrix report. What's more is that if your Jira/ZephyrScale projects contain a significant amount of issues/test cases, ZephyrScale strictly paginates the report and you have to click "Load More" quite a bit each time.

Additionally, the traceability matrix report doesn't indicate which jira issues aren't covered by a test case (this feature doesn't exist yet either within this application but it's the next to be developed).

Solution

A .NET (desktop) application that integrates Jira and ZephyrScale APIs to collect test case coverage data and export to an .xlsx file for further custom reporting.

How It Works

The first step is to get all ZephyrScale test cases that we want within the report. By default, we grab all test cases that belong to a singular project. The reason why we start on the ZephyrScale "side" of things is because Jira issues don't sufficiently contain links to the test cases but the test cases do for the issues.

Second, we take all the "linked" Jira issues and fetch their details. Additionally, we create a distinct list of Jira issue keys. This allows us to more easily populate the report file, however, in the near future more details will be provided in the report and so, a collection of JiraIssues will be passed to ExcelExport.

The third and final step is to parse through the data collected in the first two steps and output that to an Excel file, followed up by a PowerShell script that reads the file and fills out the traceability matrix. The reasoan for going with PowerShell is that it's just easier to work with Excel files than with a C# library (specifically, when formatting the cells with color and other types of styling).

The end result is a .xlsx workbook that contains two worksheets, one being a "raw" list of test cases and their linked issues, and the other being the actual traceability test coverage matrix.

How To Use

  1. Install PowerShell module ImportExcel.
  2. After cloning the repo, copy & paste App.config.template and rename the copied file to App.config, then fill out all the Jira and ZephyrScale values specific to your own setup.
  3. Launch the program.
  4. View the generated report at \Reports\Output.xlsx.

Things To Note

  • As it currently stands, the PowerShell script does not attempt to address any ExecutionPolicy settings for the machine it's being ran from. That said, before running this application please verify that your machine can freely run PowerShell scripts. See about Execution Policies for more information about this.

  • Test case status / color styling is not yet implemented. Once they are though, only out-of-box test case statuses are supported (Pass, Not Executed, Blocked, In Progress).

  • Only supports exporting 100 Zephyr Scale test cases and/or 100 Jira Issues due to API pagination.

  • Exported report does not overwrite any previously existing reports (i.e., \Reports must not already contain Output.xlsx when generating new report).

zephyr-reports's People

Contributors

cmwky avatar

Watchers

 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.