Skip Menu |

This queue is for tickets about the TestRail-API CPAN distribution.

Report information
The Basics
Id: 108688
Status: resolved
Priority: 0/
Queue: TestRail-API

People
Owner: Nobody in particular
Requestors: marco [...] cpanel.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>."
Download smime.p7s
application/pkcs7-signature 3.4k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #108688] ERROR: Could not find test case: 0
Date: Wed, 11 Nov 2015 19:30:54 +0000
To: bug-TestRail-API [...] rt.cpan.org
From: Doge <doge [...] teodesian.net>
Sounds like a bug. Will add as issue on github milestone 0.033. Do be careful next time when posting potentially revealing test artifacts to public servers in the future , Marco. GSB On November 10, 2015 9:25:17 PM CST, Marco via RT <bug-TestRail-API@rt.cpan.org> wrote: Show quoted text
>Tue Nov 10 22:25:16 2015: Request 108688 was acted upon. >Transaction: Ticket created by marco@cpanel.net > Queue: TestRail-API > Subject: ERROR: Could not find test case: 0 > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: marco@cpanel.net > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=108688 > > > >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>."
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Marco, I believe I have fixed this issue. The subsection you wished to be spawned in the run was not picked up; this has been fixed as part of github issue #102 in 0.037. GSB On Tue Nov 10 22:25:16 2015, marco@cpanel.net wrote: Show quoted text
> 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>."