Subject: | ERROR: Could not find test case: 0 |
Date: | Tue, 10 Nov 2015 21:25:04 -0600 |
To: | bug-TestRail-API [...] rt.cpan.org |
From: | Marco <marco [...] cpanel.net> |
Referred to you by Dan.
This used to work before I started using the subsection ‘Selenium’.
I've tried it with sections passed by command line as well as in the rc (plus a few other variations).
marco ~ $ cat .testrailrc
apiurl=http://testrail.cpanel.qa
user=marco
password=*******
project=Systems Development and Infrastructure
step_results=sr_sys_name
sections=Selenium
encoding=UTF-8
marco ~ $
marco ~/dev/projects/idev-selenium/t/store (comodo/sprint-5.7)$ prove -v 03-my_account.t -m -PTestRail="run=StoreTest,version=one"
# PROCESSING RESULTS FROM TEST FILE: 03-my_account.t
03-my_account.t ..
1..24
ok 1 - An object of class 'Idev::Tester' isa 'Idev::Tester'
ok 2 - 'td' isa 'Idev::Selenium::Driver'
ok 3 - An object of class 'Idev::Application::Store' isa 'Idev::Application::Store'
ok 4 - No cookies are present in browser session
ok 5 - got login page
ok 6 - login form is present
ok 7 - session cookie is present
ok 8 - login was successful
ok 9 - Email is reported correctly
ok 10 - logout was successful
# Looks like you planned 24 tests but ran 10.
# Setting results...
# Test elapsed: 0m 29s
# Attempting to find case by title '03-my_account.t in run 2061'...
ERROR: Could not find test case: 0 at /Users/marco/perl5/lib/perl5/Test/Rail/Parser.pm line 522.
Test::Rail::Parser::_set_result(2061, '03-my_account.t', 5, 'ok 1 - An object of class \'Idev::Tester\' isa \'Idev::Tester...', 'HASH(0x7fba331d60a0)', undef) called at /Users/marco/perl5/lib/perl5/Test/Rail/Parser.pm line 498
Test::Rail::Parser::EOFCallback('Test::Rail::Parser=HASH(0x7fba33355f50)') called at /System/Library/Perl/5.18/TAP/Base.pm line 110
TAP::Base::_make_callback('Test::Rail::Parser=HASH(0x7fba33355f50)', 'EOF', 'Test::Rail::Parser=HASH(0x7fba33355f50)') called at /System/Library/Perl/5.18/TAP/Parser.pm line 1429
TAP::Parser::__ANON__() called at /System/Library/Perl/5.18/TAP/Parser.pm line 312
TAP::Parser::next('Test::Rail::Parser=HASH(0x7fba33355f50)') called at /System/Library/Perl/5.18/TAP/Harness.pm line 580
TAP::Harness::_aggregate_single('Test::Rail::Harness=HASH(0x7fba30c84940)', 'TAP::Parser::Aggregator=HASH(0x7fba33078d10)', 'TAP::Parser::Scheduler=HASH(0x7fba33095ad0)') called at /System/Library/Perl/5.18/TAP/Harness.pm line 670
TAP::Harness::aggregate_tests('Test::Rail::Harness=HASH(0x7fba30c84940)', 'TAP::Parser::Aggregator=HASH(0x7fba33078d10)', '03-my_account.t') called at /System/Library/Perl/5.18/TAP/Harness.pm line 485
TAP::Harness::__ANON__() called at /System/Library/Perl/5.18/TAP/Harness.pm line 498
TAP::Harness::runtests('Test::Rail::Harness=HASH(0x7fba30c84940)', '03-my_account.t') called at /System/Library/Perl/5.18/App/Prove.pm line 554
App::Prove::_runtests('App::Prove=HASH(0x7fba31003110)', 'HASH(0x7fba3228d210)', 'Test::Rail::Harness', '03-my_account.t') called at /System/Library/Perl/5.18/App/Prove.pm line 512
App::Prove::run('App::Prove=HASH(0x7fba31003110)') called at /usr/bin/prove5.18 line 12
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 14/24 subtests
Test Summary Report
-------------------
03-my_account.t (Wstat: 65280 Tests: 10 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 24 tests but ran 10.
Files=1, Tests=10, 31 wallclock secs ( 0.13 usr 0.05 sys + 1.49 cusr 0.12 csys = 1.79 CPU)
Result: FAIL
marco ~/dev/projects/idev-selenium/t/store (comodo/sprint-5.7)$
The case is there:
https://testrail.cpanel.qa/index.php?/cases/view/1434052&group_by=cases:section_id&group_order=asc&group_id=7252 <https://testrail.cpanel.qa/index.php?/cases/view/1434052&group_by=cases:section_id&group_order=asc&group_id=7252>
"In section Selenium <https://testrail.cpanel.qa/index.php?/suites/view/54&group_by=cases:section_id&group_id=7252>."
Message body not shown because it is not plain text.