Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to re-run failed testcases #10

Closed
sachin6757 opened this issue Jul 4, 2014 · 2 comments
Closed

Unable to re-run failed testcases #10

sachin6757 opened this issue Jul 4, 2014 · 2 comments

Comments

@sachin6757
Copy link

HI All,

Need help with this issue. I have made changes suggested by you but still facing the issue.

I have a test suite with name test. My pybot command is :

pybot --name "Test" --loglevel INFO --outputdir G:\workspace\output --output output.xml --log log.html --report report.html --reporttitle "Robot test" g:\workspace\test

g:\workspace\test is the path of my main suite.

pybot

This works fine.

pybot --name "Test" --loglevel INFO --outputdir G:\workspace\output --output output.xml --log log.html --report report.html --reporttitle "Robot test" g:\workspace\test

which gives me output as below

pabot

Under Statistics by Suite section, it adds Test.Test due to which if there is any failure in the suite I am unable to re-run those cases.

I got following error:

G:>pybot -R g:\workspace\output\output.xml g:\workspace\test
[ ERROR ] Suite 'Test' contains no tests named 'Test.Test.Main suite3.Child suite3.test'.

@dmizverev @mkorpela Can you please let me know what is wrong with my execution.

Thanks & Regards,
Sachin Nikam

@sachin6757 sachin6757 changed the title Unable to re-varun failed testcases Unable to re-run failed testcases Jul 4, 2014
@dmizverev
Copy link

I confirm a error with rerun tests under pabot

c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test>pybot .
==============================================================================
Test                                                                          
==============================================================================
Test.Main Suite                                                               
==============================================================================
Test.Main Suite.Child Suite :: child suite                                    
==============================================================================
Simple test :: Simple test                                            | PASS |
------------------------------------------------------------------------------
Test.Main Suite.Child Suite :: child suite                            | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Test.Main Suite                                                       | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Test.Main Suite2                                                              
==============================================================================
Test.Main Suite2.Child Suite2 :: child suite 2                                
==============================================================================
Simple test 2 :: Simple test 2                                        | PASS |
------------------------------------------------------------------------------
Test.Main Suite2.Child Suite2 :: child suite 2                        | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Test.Main Suite2                                                      | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Test.Main Suite3                                                              
==============================================================================
Test.Main Suite3.Child Suite3 :: child suite 3                                
==============================================================================
Simple test 3 :: Simple test 3                                        | FAIL |
Fail test 3
------------------------------------------------------------------------------
Test.Main Suite3.Child Suite3 :: child suite 3                        | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Test.Main Suite3                                                      | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Test                                                                  | FAIL |
3 critical tests, 2 passed, 1 failed
3 tests total, 2 passed, 1 failed
==============================================================================
Output:  c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test\output.xml
Log:     c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test\log.html
Report:  c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test\report.html

Rerun tests with pybot works well

c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test>pybot --rerunfailed output.xml .
==============================================================================
Test
==============================================================================
Test.Main Suite3
==============================================================================
Test.Main Suite3.Child Suite3 :: child suite 3
==============================================================================
Simple test 3 :: Simple test 3                                        | FAIL |
Fail test 3
------------------------------------------------------------------------------
Test.Main Suite3.Child Suite3 :: child suite 3                        | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Test.Main Suite3                                                      | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Test                                                                  | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output:  c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test\output.xml
Log:     c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test\log.html
Report:  c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test\report.html

But with pabot error:

c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test>pabot --rerunfailed output.xml c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test
[PID:8856] EXECUTING Test.Main Suite3.Child Suite3
FAILED Test.Main Suite3.Child Suite3
[ ERROR ] Suite 'c:\Users\Dmitriy.Zverev\PS RF\User Part\Source\test\my demo\test' contains no tests named 'Test.Main Suite3.Child Suite3.Simple test 3' or 'Test.Main Suite3.Child Suite3.Simple test 3'.

Try --help for usage information.
Elapsed time: 0 minutes 0.920 seconds

or

c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\test>pabot --rerunfailed output.xml c:\Users\Dmitriy.Zverev\PS_RF\User_Part\Source\test\my_demo\
[ ERROR ] One or more data source needed.

Try --help for usage information.
Elapsed time: 0 minutes 0.288 seconds

@sachin6757
Copy link
Author

Hi @dmizverev ,

Thanks for your help.

Got the problem. name should be top level suite name whereas I was entering suite name in the name :(.

Again thanks for you help 👍

-Sachin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants