o error when no arguments are passed');
isnt( exception { capture { $tr->createCase() } },undef,'createCase returns error when no arguments are passed');
isnt( exception { capture { $tr->createMiles
ns error when no arguments are passed');
isnt( exception { capture { $tr->createPlan() } },undef,'createPlan returns error when no arguments are passed');
isnt( exception { capture { $tr->createProje
rns error when no arguments are passed');
isnt( exception { capture { $tr->createRun() } },undef,'createRun returns error when no arguments are passed');
isnt( exception { capture { $tr->createSectio
NamesToIds(@user_names);
cmp_deeply(\@cuser_ids,\@user_ids,"userNamesToIds functions correctly");
isnt(exception {$tr->userNamesToIds(@user_names,'potzrebie'); }, undef, "Passing invalid user name thr
{'id'},$section_name);
is($cids[0],$new_section->{'id'},"sectionNamesToIds returns correct IDs");
isnt(exception {$tr->sectionNamesToIds($new_project->{'id'},$new_suite->{'id'},"No such Section");},un
kip("Cannot create configurations programattically in the API like in mocks",2) if !$is_mock;
isnt($tr->getChildRunByName($namePlan,"Executing the great plan",['testConfig']),0,"Getting run by nam
er of non-existant cases shown (no-match, names-only)");
$opts->{'configs'} = ['testPlatform1'];
isnt(exception { TestRail::Utils::Find::getTests($opts,$tr) } , undef,"Correct number of non-existant
ual excl
$opts->{'match'} = $FindBin::Bin;
($cases) = TestRail::Utils::Find::getTests($opts,$tr);
isnt(exception {TestRail::Utils::Find::findTests($opts,@$cases)},undef,"match and no-match are mutuall
tch'};
$opts->{'orphans'} = $FindBin::Bin;
($cases) = TestRail::Utils::Find::getTests($opts,$tr);
isnt(exception {TestRail::Utils::Find::findTests($opts,@$cases)},undef,"match and orphans are mutually
pts->{'configs'} = ['testPlatform1'];
$res = exception { $tap = Test::Rail::Parser->new($opts) };
isnt($res,undef,"TR Parser explodes on instantiation when asking for run not in plan");
undef $tap;
$
'potzrebie'];
delete $opts->{'plan'};
$res = exception { $tap = Test::Rail::Parser->new($opts) };
isnt($res,undef,"TR Parser explodes on instantiation with invalid section");
undef $tap;
$opts->{'sou
t,qr/STORAGE TANKS SEARED/i,"Test steps in full test output");
isnt(ref $step_results, 'ARRAY', "step_results isnt ARRAY ref");
} else {
like($toutput,qr/STORAGE TANKS
ake -j TestProject -p GosPlan -r}, "Executing the great plan", qw{-m t --config testPlatform1});
isnt(exception {TestRail::Bin::Tests::run('browser' => $Test::LWP::UserAgent::TestRailMock::mockObject