Coder Social home page Coder Social logo

azrimangsor / cypress-zephyr-scale-integration Goto Github PK

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

Update Zypher Scale Test Cyle Execution from Cypress Test

License: MIT License

JavaScript 100.00%
cypress cypress-io zephyr-scale javascript jira qa qa-automation test-automation

cypress-zephyr-scale-integration's Introduction

Cypress & Zephyr Scale Integration Cypress.io

Problem Statement ๐Ÿ˜ต

I have a project in which the project team wanted to view the test execution of the Cypress test. We also utilise Zephyr as our test case management. I have been searching for ways to integrate these two, Zephyr & Cypress; however, I can't find a proper solution that fits my need

Solution ๐Ÿ’ก

I have developed a work-in-progress project to enhance Zephyr Scale integration with Cypress. My goal is to introduce a user-friendly update that adds a test cycle every time a cypress test is performed. This update will ensure that each associated test case is promptly updated with a status of either 'Passed,' 'Failed,' or 'Skipped'. With these improvements, it aims to streamline the testing process and provide clearer insights into the test results.

Will make further enhancements when time permits.

What does it do? โœ”๏ธ

  • Create a test cycle every time cypress test is executed by utilise Cypress hook ( before() & eachAfter() )
  • Only update the status of associated test cases

What is it not? โŒ

  • Does not update the test step
  • Does not update beyond these initial setup statuses 'Passed,' 'Failed,' or 'Skipped'
  • Does not update the start and end time of each test

Requirement:

  • Valid Zephyr Scale API Access Token
  • Valid Zephyr Test Case ID

How it works:

A valid Zephyr Scale API access token is required for the integration to work. The token can be obtained by clicking on your profile icon in Zephyr

image

Click on the Create access token button to generate the access token

image

Once the button click, a pop-up will appear with the access token

image

Copy the token and place it inside the cypress environment file. In this project, I refer to bearer token variable

graph LR
A((Test Start)) --> B[Before Hook] --> C{Create Test Cycle} -- Yes --> D(Cypress Test Execute) --> F[After Each Hook] --> G{Status} -- status --> H[Zephyr Test Case]
C -- No --> E[Error Exception]
Loading

For this integration to work, the test case reference require in each of the Cypress test title. Following are examples of how can you write the title

tag = 'PROJ-T1'
it(`${tag} - User Details - Fields Validation`, () => {
    ...
})

or

it(`PROJ-T1 - User Details - Fields Validation`, () => {
  ...
})

cypress-zephyr-scale-integration's People

Contributors

azrimangsor avatar

Stargazers

 avatar

Watchers

 avatar

cypress-zephyr-scale-integration's Issues

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.