Skip to content

A command line tool for pulling moztrap cases into plaintext files, make modifications and push them back.

Notifications You must be signed in to change notification settings

ctsung/moztrap-cli

 
 

Repository files navigation

MozTrap CLI

A command-line tool for downloading, editing and uploading test cases from/to MozTrap

Usage

Download a test case as plaintext file:

python moztrap.py clone case <case_id>

Download a test suite as plaintext file: (you can find the suite id in a suite's shareable link)

python moztrap.py clone suite <suite_id>

Then, edit the downloaded file with your favorite text editor

See the diff between your version and the latest remote version

python moztrap.py diff case_<case_id>.txt

Push the test case back to MozTrap

python moztrap.py push --force -u <username> -k <api_key> case_<case_id>.txt

Warning: this will force override the remote version

#Configuration Edit the config.py file to change:

  • Default product version
  • Diff tool
  • etc.

#Known issue

  • The default product is hardcoded to Firefox OS v2.2 right now
  • The default diff tool is hardcoded to vimdiff right now
  • The test case title and description may fail to update.

About

A command line tool for pulling moztrap cases into plaintext files, make modifications and push them back.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%