GithubHelp home page GithubHelp logo

ado_sync's Introduction

Azure DevOps Sync

These scripts allow you to sync the test cases under a test suite.

Usage

Open the ado_config.json file and replace the fields with the desired configurations.

Example:

{
  "paths": {
    "features": "features",
    "tests": "tests"
  },
  "credentials": {
    "personal_access_token": "",
    "organization_name": "<your organization name>",
    "project_name": "<your project name>"
  },
  "constants": {
    "TestPlanId": "<your test plan id>",
    "System.TeamProject": "<your team project ~~name~~>"
  }
}

After that, you can save your feature files under the folder features. Save your files using Gherkin and with the extension .feature.

After that, you can navigate to the ado_sync folder and run the following command line

python scripts/sync_folder.py

If you provided a Personal Access Token (PAT) on the ado_config.json file, you do not need any further parameter to run. If you didn't provided any value for the PAT, you can pass it through the command line like this

python scripts/sync_folder.py YOUR_PAT

After that, the script will synchronize all your test cases.

Reading test cases

If you want to gather all the test cases under a test plan you can use the command bellow

python scripts/get_tests_on_suite.py

It will gather all the test suites and the test cases within each test suite, and save them on .feature files under the tests folder in your local machine. You can do this to initialize your repository.

Pipelines

You can use the azure-pipelines.yml file as an example to start your own pipeline.

ado_sync's People

Watchers

Hendrig Wernner 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.