Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

A series tools to operate Netgear jira..

Project description

ntgr-jira is a series tools to operate Netgear jira.

Quick start

  1. Import ntgr-jira as nj:

    >>> from NtgrJira.jira import NtgrJira as nj
    
  2. Create a session with Netgear jira:

    >>> s = nj(base_auth=(username, password))
    
  3. Get all test cases in a test plan, return a ‘TestPlan’ object:

    >>> cases = s.getAllTestCases("MS-P8")
    
  4. Filter the result, return a ‘TestPlan’ object:

    >>> f = cases.filter(environment=("Automation",), CaseType="CLI", Status=("Fail"))
    
  5. Transfer result to json:

    >>> f.to_json()
    
  6. Save as a excel file, only support xlsx:

    >>> f.to_xlsx("C:/MS-P8.xlsx")
    
  7. Get the ‘TestCase’ counts:

    >>> print(len(f))
    
  8. Walk the ‘TestPlan’:

    >>> for testcase in f.walk():
    >>>     print(testcase.to_json())
    
  9. Close the session:

    >>> s.close()
    
  10. Use as a context manager:

>>> with nj(base_auth=(username, password)) as s
>>>     cases = s.getAllTestCases("MS-P8")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
ntgr_jira-1.0.3-py3-none-any.whl (6.3 kB) Copy SHA256 hash SHA256 Wheel py3 May 30, 2018
ntgr-jira-1.0.3.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None May 30, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page