tag:blogger.com,1999:blog-9028922528361045176.post2488424134644510552..comments2024-03-27T10:13:03.251+05:30Comments on Road To Automation: Road to generate html report for Python Webdriver test suite using HTMLTestRunnerUnknownnoreply@blogger.comBlogger12125tag:blogger.com,1999:blog-9028922528361045176.post-20395965534763653142018-03-23T22:21:12.306+05:302018-03-23T22:21:12.306+05:30I am getting
Traceback (most recent call last):
...I am getting<br />Traceback (most recent call last):<br /> File "test_HTMLTestRunner.py", line 253, in test_main<br /> self._checkoutput(output,EXPECTED)<br /> File "test_HTMLTestRunner.py", line 264, in _checkoutput<br /> self.fail(safe_str(lineno+1))<br />AssertionError: 4<br /><br />----------------------------------------------------------------------<br />Ran 2 tests in 0.001s<br />enchara murthyhttps://www.blogger.com/profile/06475080071458079865noreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-73513951744164073562017-07-21T17:35:48.293+05:302017-07-21T17:35:48.293+05:30i am facing this issue
from test import Webdriver...i am facing this issue<br /><br />from test import WebdriverTest2<br />ImportError: cannot import name WebdriverTest2 Anonymoushttps://www.blogger.com/profile/17983373871664596795noreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-37533472488848282422017-05-28T12:16:03.633+05:302017-05-28T12:16:03.633+05:30I dont want to do manually all time the python tes...I dont want to do manually all time the python test_HTMLTestRunner.py > result.html in cmd after running the py file ? what can change in codeAnonymoushttps://www.blogger.com/profile/15322989400968114363noreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-59565744282047771052016-09-28T13:00:07.927+05:302016-09-28T13:00:07.927+05:30It’s really a nice and helpful piece of info. I’m ...It’s really a nice and helpful piece of info. I’m happy that you shared this helpful information with us. Please keep us up to date like this. Thanks for sharing.<br /><a rel="nofollow">Home automation Hamilton</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-66523117058498759152016-06-06T18:48:42.717+05:302016-06-06T18:48:42.717+05:30Hello Sumit,
If you are using Python 3.x then ple...Hello Sumit,<br /><br />If you are using Python 3.x then please use the below link<br />http://stackoverflow.com/questions/30954381/python-htmltestrunner-not-generating-report<br /><br />In this page you can find the code for HTMLTestRunner.py that works with Python 3.xAnonymoushttps://www.blogger.com/profile/10180799830848712848noreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-15499298237477803632016-03-08T17:49:34.451+05:302016-03-08T17:49:34.451+05:30Hi,
While i am running the same for my script(whic...Hi,<br />While i am running the same for my script(which is in Python 3.4) its throwing an error:<br />Traceback (most recent call last):<br /> File "test_HTMLTestRunner.py", line 3, in <br /> import StringIO<br />ImportError: No module named 'StringIO'<br />please help to fix this issue.Anonymoushttps://www.blogger.com/profile/04530334527316974683noreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-55716763198362987992015-08-18T09:19:40.866+05:302015-08-18T09:19:40.866+05:30This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/06950537710420970615noreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-69597823741659434802015-04-24T00:24:24.169+05:302015-04-24T00:24:24.169+05:30You should clean report file before generating run...You should clean report file before generating running test suiteAdminhttps://www.blogger.com/profile/15096936763273601422noreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-17464864830079426832015-04-23T12:09:24.091+05:302015-04-23T12:09:24.091+05:30I've copied the test runner script as it is an...I've copied the test runner script as it is and ran it and i"m getting following error:<br />.E<br />Time Elapsed: 0:00:56.652000<br />E<br />======================================================================<br />ERROR: test_main (__main__.Test_HTMLTestRunner)<br />----------------------------------------------------------------------<br />Traceback (most recent call last):<br /> File "TestRunner.py", line 61, in test_main<br /> self._checkoutput(output,EXPECTED)<br />UnboundLocalError: local variable 'EXPECTED' referenced before assignment<br /><br />----------------------------------------------------------------------<br />Ran 1 test in 56.652s<br /><br />FAILED (errors=1)<br /><br />Still script is able to generate the html report. So I moved the variable assignment before _checkoutput() function call so now it is not giving the error but in html report, it is creating report two times. Really great if you are able to assist in thisVamsihttps://www.blogger.com/profile/05142250274167616533noreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-64447926042002845362015-01-17T19:51:11.428+05:302015-01-17T19:51:11.428+05:30Hi Admin,
If we are executing the script for 500/...Hi Admin,<br /><br />If we are executing the script for 500/100 testcases , it will be too lengthy and difficult to maintain because everytime we need to import the class and add the the class in the testsuite.<br /><br />Is there any way we can loop through the classes and get the class name and then use that classname in the HTMLTest Runner test suite to generate the report?<br /><br />Thanks,Anonymoushttps://www.blogger.com/profile/02122288517551409164noreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-44266195622908199302015-01-17T09:57:50.144+05:302015-01-17T09:57:50.144+05:30You can add all class file on runner "Test_HT...You can add all class file on runner "Test_HTMLTestRunner" similar I have added two class filesAdminhttps://www.blogger.com/profile/15096936763273601422noreply@blogger.comtag:blogger.com,1999:blog-9028922528361045176.post-77989634147737693442015-01-15T22:56:57.787+05:302015-01-15T22:56:57.787+05:30Hi,
If we have multiple test cases divided in mul...Hi,<br /><br />If we have multiple test cases divided in multiple classes for eg. 100 . Then how are we going to get the HTMLTest Report using htmltestrunner in selenium using python.<br /><br />Thanks,<br />Bittu PhilipAnonymoushttps://www.blogger.com/profile/02122288517551409164noreply@blogger.com