Giter Club home page Giter Club logo

moztrap-connect's Introduction

This is a connector that can be used to communicate with MozTrap. This is an easier way for external automation tools to provide results to Case Conductor than to use the REST API directly.

Documentation

http://readthedocs.org/docs/moztrap-connect/en/latest/

Authentication

You will need an API key from MozTrap to use this connector. You may have a user in MozTrap that is specifically an "automation bot" that uses this API key to submit results, or it could be any other user, too. Ask your MozTrap admin to generate an API key and provide it to you. If you ARE the MozTrap admin, then use the /admin panel, and create an API key in the Core / ApiKeys table for the user you want.

Installation

This package can be installed using
$ python setup.py install
or
$ python setup.py develop
It is also pip installable by putting the following line in your requirements.txt file.
git+https://github.com/camd/moztrap-connect.git

Notes:

on cmd line specify:

  • product version - need endpoint for all productversions for the product
  • environment - need endpoint for all environments for the productversion
  • tests submit (case_id, pass/fail/invalid, comment, step_number=1, bugurl=None)

TODO:

* after submit results, return a link to the "view results" for that test run
get list of test cases (product version, environment) with tags

* return a results url for the run in moztrap

Running the tests:

Running the tests for this project requires the following py.test flags:
--test-mt-username --test-mt-apikey

Troubleshooting:

if you get

try:
res = requests.get(url) res.raise_for_status() return res

except:

> print res.text E UnboundLocalError: local variable 'res' referenced before assignment

then fix the protocol at conftest.py line 56

moztrap-connect's People

Contributors

klrmn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moztrap-connect's Issues

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please reach out to [email protected].

(Message COC001)

Wiki changes

FYI: The following changes were made to this repository's wiki:

  • defacing spam has been removed

  • the wiki has been disabled, as it was not used

These were made as the result of a recent automated defacement of publically writeable wikis.

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.