TestRail Perl API

George S. Baugh d03ba72d1c Add perlcritic tests %!s(int64=11) %!d(string=hai) anos
dist 6110ef989f v0.011 - DZILified %!s(int64=11) %!d(string=hai) anos
lib 8e2680d553 More-or-less done DZILizing the module %!s(int64=11) %!d(string=hai) anos
t c6d7180715 Initial work on dzil conversion %!s(int64=11) %!d(string=hai) anos
.gitignore 5247c44245 Initial commit of distribution %!s(int64=11) %!d(string=hai) anos
.mailmap b7bf683722 Fix authorship/contrib %!s(int64=11) %!d(string=hai) anos
Changes 6110ef989f v0.011 - DZILified %!s(int64=11) %!d(string=hai) anos
MANIFEST.SKIP 6110ef989f v0.011 - DZILified %!s(int64=11) %!d(string=hai) anos
README.md 06e419c499 Correct README %!s(int64=11) %!d(string=hai) anos
dist.ini d03ba72d1c Add perlcritic tests %!s(int64=11) %!d(string=hai) anos
perlcriticrc d03ba72d1c Add perlcritic tests %!s(int64=11) %!d(string=hai) anos
tidyall.ini 0ad541ed21 Add DZIL tidying for next release %!s(int64=11) %!d(string=hai) anos
weaver.ini 30139d5bf7 More DZIL stuff %!s(int64=11) %!d(string=hai) anos

README.md

TestRail::API

Perl interface to TestRail's REST API

Doesn't implement every method provided (yet), just the ones I needed:

  • Making Projects,Suites,Sections,Cases,Plans and Runs
  • Getting the same
  • Deleting the same
  • Setting test run statuses

Basically everything needed to sync up automated test runs to the test management DB. TODO: alter tests so that you can keep in sync.

my $url = "http://some.testrail.install/";

my $user = 'JohnDoe';

my $pw = 'password';

my $apiClient = new TestRail::API($url,$user,$pass);

See POD for more info.