<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-17426834.post113985461164703984..comments</id><updated>2009-09-14T16:52:17.071-07:00</updated><title type='text'>Comments on MindRetrieve Blog: Announce: HTMLTestRunner - generates HTML test rep...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mindretrieve.blogspot.com/feeds/113985461164703984/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html'/><author><name>Tung Wai Yip</name><uri>http://www.blogger.com/profile/01409046343777567728</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-17426834.post-6682436182462781095</id><published>2009-09-14T16:52:17.071-07:00</published><updated>2009-09-14T16:52:17.071-07:00</updated><title type='text'>Welcome Selenium users. I hope this tool can help ...</title><content type='html'>Welcome Selenium users. I hope this tool can help you in presenting your test result. I was helping some users in here before. As I have stated because this is not a full blown open source project I find it difficult to provide support in the comment section. You can always contact me directly. But I wonder if there is an infrastructure under Selenium that can better facilitate technical support for this third party tool. If you can help set this up I&amp;#39;ll happy to drop by to provide support and even enhancement.&lt;br /&gt;&lt;br /&gt;Thank you. Happy testing!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/6682436182462781095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/6682436182462781095'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1252972337071#c6682436182462781095' title=''/><author><name>Tung Wai Yip</name><uri>http://www.blogger.com/profile/01409046343777567728</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14499988298723914405'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-538303973922276109</id><published>2009-09-11T08:20:43.840-07:00</published><updated>2009-09-11T08:20:43.840-07:00</updated><title type='text'>Hi, Thank you very much.  I am wondering is there ...</title><content type='html'>Hi, Thank you very much.  I am wondering is there anyway, if the test fails, get a screenshot of the page and add a link to it in the result?&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;Jo</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/538303973922276109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/538303973922276109'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1252682443840#c538303973922276109' title=''/><author><name>jo</name><uri>http://www.blogger.com/profile/06351494512620938797</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-6413402772444162943</id><published>2009-08-26T10:28:18.694-07:00</published><updated>2009-08-26T10:28:18.694-07:00</updated><title type='text'>I am having trouble getting it to work here is my ...</title><content type='html'>I am having trouble getting it to work here is my code. I must be missing something?&lt;br /&gt;&lt;br /&gt;from selenium import selenium&lt;br /&gt;import unittest, time, re, csv, HTMLTestRunner&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;class Untitled(unittest.TestCase):&lt;br /&gt;    def setUp(self):&lt;br /&gt;        self.verificationErrors = []&lt;br /&gt;        self.selenium = selenium(&amp;quot;localhost&amp;quot;, 4444, &amp;quot;*chrome&amp;quot;, &amp;quot;http://change-this-to-the-site-you-are-testing/&amp;quot;)&lt;br /&gt;        self.selenium.start()&lt;br /&gt;    &lt;br /&gt;    def test_untitled(self):&lt;br /&gt;        reader = csv.reader(open(&amp;quot;mydata.csv&amp;quot;, &amp;quot;rb&amp;quot;))&lt;br /&gt;        for row in reader:&lt;br /&gt;            sel = self.selenium&lt;br /&gt;            sel.open(&amp;quot;http://ushadma-myacctd/MyAccountUAT/SignOn.aspx?ReturnUrl=%2fMyAccountUAT%2fdefault.aspx&amp;quot;)&lt;br /&gt;            sel.type(&amp;quot;ctl00_MyAccountContent_SignIn_txtUsername&amp;quot;, row[0])&lt;br /&gt;            sel.type(&amp;quot;ctl00_MyAccountContent_SignIn_txtPassword&amp;quot;, row[1])&lt;br /&gt;            sel.click(&amp;quot;ctl00_MyAccountContent_SignIn_btnLogin&amp;quot;)&lt;br /&gt;            sel.wait_for_page_to_load(&amp;quot;30000&amp;quot;)&lt;br /&gt;            sel.click(&amp;quot;//form[@id=&amp;#39;aspnetForm&amp;#39;]/div[3]/center/table/tbody/tr[2]/td[3]/div[1]/a&amp;quot;)&lt;br /&gt;            sel.wait_for_page_to_load(&amp;quot;30000&amp;quot;)&lt;br /&gt;            sel.click(&amp;quot;link=Log Out&amp;quot;)&lt;br /&gt;            sel.wait_for_page_to_load(&amp;quot;30000&amp;quot;)&lt;br /&gt;            &lt;br /&gt;    def tearDown(self):&lt;br /&gt;        self.selenium.stop()&lt;br /&gt;        self.assertEqual([], self.verificationErrors)&lt;br /&gt;&lt;br /&gt;if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;   # unittest.main()&lt;br /&gt;    HTMLTestRunner.main()</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/6413402772444162943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/6413402772444162943'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1251307698694#c6413402772444162943' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-8034861750682391958</id><published>2009-06-23T04:22:18.236-07:00</published><updated>2009-06-23T04:22:18.236-07:00</updated><title type='text'>Hi,
   I am running many test cases on single suit...</title><content type='html'>Hi,&lt;br /&gt;   I am running many test cases on single suite:&lt;br /&gt;&lt;br /&gt;Example: &lt;br /&gt;suite = unittest.TestLoader().loadTestsFromTestCase(class_name)&lt;br /&gt;unittest.TextTestRunner().run(suite)&lt;br /&gt;&lt;br /&gt;When I do import HTMLTestRunner&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I need to modify this code to:&lt;br /&gt;(instead of TextRunner)&lt;br /&gt;&lt;br /&gt;runner = HTMLTestRunner.HTMLTestRunner()&lt;br /&gt;runner.run(suite)&lt;br /&gt;&lt;br /&gt;Does this work?..or can you please help me out..</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/8034861750682391958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/8034861750682391958'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1245756138236#c8034861750682391958' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-8846340156554318503</id><published>2009-06-23T04:16:11.541-07:00</published><updated>2009-06-23T04:16:11.541-07:00</updated><title type='text'>Hi,
   I am using Python 2.5..Can you please tell ...</title><content type='html'>Hi,&lt;br /&gt;   I am using Python 2.5..Can you please tell me, how to install this HTMLTestRunner.py ?&lt;br /&gt;&lt;br /&gt;Do I need to save this file on my python 2.5 folder</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/8846340156554318503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/8846340156554318503'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1245755771541#c8846340156554318503' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-6468975784790415053</id><published>2009-03-23T07:45:00.000-07:00</published><updated>2009-03-23T07:45:00.000-07:00</updated><title type='text'>I tried out your example. It rocks! Plan to try ou...</title><content type='html'>I tried out your example. It rocks! Plan to try out in the real example.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/6468975784790415053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/6468975784790415053'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1237819500000#c6468975784790415053' title=''/><author><name>Wang Qi</name><uri>http://www.blogger.com/profile/08365456159939380027</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-115950646679749274</id><published>2006-09-28T22:07:00.000-07:00</published><updated>2006-09-28T22:07:00.000-07:00</updated><title type='text'>I see this comment is becoming a support forum. Th...</title><content type='html'>I see this comment is becoming a support forum. The number of comments are getting hard to follow. I suggest you just email me directly for support (see my &lt;A HREF="http://tungwaiyip.info/about.html" REL="nofollow"&gt;contact&lt;/A&gt;).&lt;BR/&gt;&lt;BR/&gt;In the mean time I would try to find a better support option, perhaps turning this into a full fledge open source project. Let me know if you want to see this happens.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/115950646679749274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/115950646679749274'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1159506420000#c115950646679749274' title=''/><author><name>Wai Yip Tung</name><uri>http://www.blogger.com/profile/05258586060883977251</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-115950612762298914</id><published>2006-09-28T22:02:00.000-07:00</published><updated>2006-09-28T22:02:00.000-07:00</updated><title type='text'>Thank you Wolfgang for sending a patch to output t...</title><content type='html'>Thank you Wolfgang for sending a patch to output the docstring descriptions. I have posted it as &lt;A HREF="http://tungwaiyip.info/software/HTMLTestRunner.html" REL="nofollow"&gt;version 0.8.1&lt;/A&gt;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/115950612762298914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/115950612762298914'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1159506120000#c115950612762298914' title=''/><author><name>Wai Yip Tung</name><uri>http://www.blogger.com/profile/05258586060883977251</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-115939000971240128</id><published>2006-09-27T13:46:00.000-07:00</published><updated>2006-09-27T13:46:00.000-07:00</updated><title type='text'>How do I get the docstring of the testcase into th...</title><content type='html'>How do I get the docstring of the testcase into the HTML? E.g.:&lt;BR/&gt;&lt;BR/&gt;def test_x(self):&lt;BR/&gt;____"""Hello greets"""&lt;BR/&gt;____print "hello"&lt;BR/&gt;&lt;BR/&gt;With the TextTestRunner, I use "verbosity=2" to get it in the output, but this does not work in HTMLTestRunner.&lt;BR/&gt;&lt;BR/&gt;Apart from that, I very much like HTMLTestRunner, thanks for it!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/115939000971240128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/115939000971240128'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1159389960000#c115939000971240128' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-115407250768673107</id><published>2006-07-28T00:41:00.000-07:00</published><updated>2006-07-28T00:41:00.000-07:00</updated><title type='text'>I usually use inheritance for this:# File MyCase.p...</title><content type='html'>I usually use inheritance for this:&lt;BR/&gt;&lt;BR/&gt;# File MyCase.py&lt;BR/&gt;import unittest&lt;BR/&gt;&lt;BR/&gt;class MyCase(unittest.TestCase):&lt;BR/&gt;    value = 'Hello'&lt;BR/&gt;&lt;BR/&gt;    def test1(self):&lt;BR/&gt;        print self.value&lt;BR/&gt;&lt;BR/&gt;    def test2(self):&lt;BR/&gt;        print 'world'&lt;BR/&gt;&lt;BR/&gt;class MySecondCase(MyCase):&lt;BR/&gt;    value = 'Good bye'&lt;BR/&gt;&lt;BR/&gt;if __name__ == '__main__':&lt;BR/&gt;    suite = unittest.TestSuite()&lt;BR/&gt;    for case in MyCase, MySecondCase:&lt;BR/&gt;        # using obsolete function still available in 2.4&lt;BR/&gt;        suite.addTest(unittest.makeSuite(case))&lt;BR/&gt;    unittest.TextTestRunner(verbosity=2).run(suite)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/115407250768673107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/115407250768673107'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1154072460000#c115407250768673107' title=''/><author><name>mirko</name><uri>http://www.blogger.com/profile/15357555770760554778</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-114728111731231614</id><published>2006-05-10T10:11:00.000-07:00</published><updated>2006-05-10T10:11:00.000-07:00</updated><title type='text'>You're right. I've fixed the wrong link. Thank you...</title><content type='html'>You're right. I've fixed the wrong link. Thank you.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114728111731231614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114728111731231614'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1147281060000#c114728111731231614' title=''/><author><name>Wai Yip Tung</name><uri>http://www.blogger.com/profile/05258586060883977251</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-114655655165510497</id><published>2006-05-02T00:55:00.000-07:00</published><updated>2006-05-02T00:55:00.000-07:00</updated><title type='text'>Hi I found a small bug:The link to test_HTMLTestRu...</title><content type='html'>Hi I found a small bug:&lt;BR/&gt;&lt;BR/&gt;The link to test_HTMLTestRunner.py&lt;BR/&gt;points actually to:&lt;BR/&gt;HTMLTestRunner.py</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114655655165510497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114655655165510497'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1146556500000#c114655655165510497' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-114524515408750431</id><published>2006-04-16T20:39:00.000-07:00</published><updated>2006-04-16T20:39:00.000-07:00</updated><title type='text'>The absence of scroll bar is a bug. Thanks for bri...</title><content type='html'>The absence of scroll bar is a bug. Thanks for bringing this up. A fix is available in &lt;A HREF="http://tungwaiyip.info/software/HTMLTestRunner.html" REL="nofollow"&gt;version 0.7.1&lt;/A&gt;. Unfortunately I don't know of anyway to wrap long line in HTML yet preserving the pre-formatting. Unless you are using Opera, which does have a very nice 'Fit to screen width' format option.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114524515408750431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114524515408750431'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1145245140000#c114524515408750431' title=''/><author><name>Wai Yip Tung</name><uri>http://www.blogger.com/profile/05258586060883977251</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-114521151142215290</id><published>2006-04-16T11:18:00.000-07:00</published><updated>2006-04-16T11:18:00.000-07:00</updated><title type='text'>Thanks again for your prompt reply! It does seem q...</title><content type='html'>Thanks again for your prompt reply! It does seem quite complex...&lt;BR/&gt;&lt;BR/&gt;In your HTMLTestRunner, how can I add a vertical scroll-bar to the test result pop-up window of [error, fail, pass]? Text should automatically wrap horizontally. I need to dump the log file of my software to each test and have one single report for all the tests. &lt;BR/&gt;&lt;BR/&gt;I am writing a hiarachical test suite, which I have a set of commmon test files that must be executed by multiple environments. To give you some example,&lt;BR/&gt;suite = TestSuite()&lt;BR/&gt;for ip in ips:&lt;BR/&gt;for com in ['com1', 'com2']:&lt;BR/&gt;for case in ['common1', 'common2']:&lt;BR/&gt;t = case(ip, com)&lt;BR/&gt;suite.addTest(t)&lt;BR/&gt;&lt;BR/&gt;htmlRunner.run(suite, 'TestReport.html')&lt;BR/&gt;&lt;BR/&gt;Best regards,&lt;BR/&gt;Podi</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114521151142215290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114521151142215290'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1145211480000#c114521151142215290' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-114520856813941858</id><published>2006-04-16T10:29:00.000-07:00</published><updated>2006-04-16T10:29:00.000-07:00</updated><title type='text'>Unfortunately unittest makes it a lot harder that ...</title><content type='html'>Unfortunately unittest makes it a lot harder that you would expect to do something like that, namely instantiate your own TestCase object and then build a TestSuite with all test methods. If you can jump through a few hoops using unittest.getTestCaseNames() your test can be written as:&lt;BR/&gt;&lt;BR/&gt;-----------------------------------&lt;BR/&gt;import unittest&lt;BR/&gt;&lt;BR/&gt;class MyCase(unittest.TestCase):&lt;BR/&gt;    def __init__(self, methodName, value):&lt;BR/&gt;        super(MyCase, self).__init__(methodName)&lt;BR/&gt;        self.value = value&lt;BR/&gt;    def test1(self):&lt;BR/&gt;        print self.value&lt;BR/&gt;    def test2(self):&lt;BR/&gt;        print 'world'&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;if __name__ == '__main__':&lt;BR/&gt;    msg = 'Hello'&lt;BR/&gt;    testnames = unittest.getTestCaseNames(MyCase,'test')&lt;BR/&gt;    suite = unittest.TestSuite()&lt;BR/&gt;    suite.addTests([MyCase(methodName, msg) for methodName in testnames])&lt;BR/&gt;    unittest.TextTestRunner(verbosity=2).run(suite)&lt;BR/&gt;-----------------------------------&lt;BR/&gt;&lt;BR/&gt;In my opinion unittest makes things more complicated than necessary. This maybe part of the reason that spurs competiting framework like py.test.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114520856813941858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114520856813941858'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1145208540000#c114520856813941858' title=''/><author><name>Wai Yip Tung</name><uri>http://www.blogger.com/profile/05258586060883977251</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-114517533485613939</id><published>2006-04-16T01:15:00.000-07:00</published><updated>2006-04-16T01:15:00.000-07:00</updated><title type='text'>Great, thanks very much!I have another question: H...</title><content type='html'>Great, thanks very much!&lt;BR/&gt;&lt;BR/&gt;I have another question: How can I pass a value to a test case object and make a test suite. I don't want to manually add each test function because that would be very labor intensive.&lt;BR/&gt;&lt;BR/&gt;# File MyCase.py &lt;BR/&gt;import unittest &lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;class MyCase(unittest.TestCase): &lt;BR/&gt;    def __init__(self, value): &lt;BR/&gt;        super(MyCase, self).__init__() &lt;BR/&gt;        self.value = value &lt;BR/&gt;    def test1(self): &lt;BR/&gt;        print self.value &lt;BR/&gt;    def test2(self): &lt;BR/&gt;        print 'world' &lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;if __name__ == '__main__': &lt;BR/&gt;    msg = 'Hello' &lt;BR/&gt;    myCase = MyCase(msg) &lt;BR/&gt;    suite = unittest.TestSuite() &lt;BR/&gt;    suite.addTest(myCase) &lt;BR/&gt;    unittest.TextTestRunner(verbosity=2).run(suite) &lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;D:\MyWorks&gt;MyCase.py &lt;BR/&gt;Traceback (most recent call last): &lt;BR/&gt;  File "D:\MyWorks\MyCase.py", line 14, in ? &lt;BR/&gt;    myCase = MyCase(msg) &lt;BR/&gt;  File "D:\MyWorks\MyCase.py", line 5, in __init__ &lt;BR/&gt;    super(MyCase, self).__init__() &lt;BR/&gt;  File "C:\Python24\lib\unittest.py", line 208, in __init__ &lt;BR/&gt;    raise ValueError, "no such test method in %s: %s" % \ &lt;BR/&gt;ValueError: no such test method in [class '__main__.MyCase']: runTest</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114517533485613939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114517533485613939'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1145175300000#c114517533485613939' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-114506495427994816</id><published>2006-04-14T18:35:00.000-07:00</published><updated>2006-04-14T18:35:00.000-07:00</updated><title type='text'>Yes, HTMLTestRunner takes a parameter 'stream'. It...</title><content type='html'>Yes, HTMLTestRunner takes a parameter 'stream'. It is defaulted to sys.stdout but you can pass any file like object. It is similar to unittest.TextTestRunner.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114506495427994816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114506495427994816'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1145064900000#c114506495427994816' title=''/><author><name>Wai Yip Tung</name><uri>http://www.blogger.com/profile/05258586060883977251</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-114505824215433663</id><published>2006-04-14T16:44:00.000-07:00</published><updated>2006-04-14T16:44:00.000-07:00</updated><title type='text'>Hi,This is very nice!!!Is there a way to get the r...</title><content type='html'>Hi,&lt;BR/&gt;&lt;BR/&gt;This is very nice!!!&lt;BR/&gt;&lt;BR/&gt;Is there a way to get the result into a file other than using:&lt;BR/&gt;&lt;BR/&gt;test_HTMLTestRunner.py &gt; result.html&lt;BR/&gt;&lt;BR/&gt;Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114505824215433663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114505824215433663'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1145058240000#c114505824215433663' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-114015529586711372</id><published>2006-02-16T21:48:00.000-08:00</published><updated>2006-02-16T21:48:00.000-08:00</updated><title type='text'>By BSD license. Feel free to use it in your projec...</title><content type='html'>By &lt;A HREF="http://tungwaiyip.info/software/license.txt" REL="nofollow"&gt;BSD license&lt;/A&gt;. Feel free to use it in your project :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114015529586711372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114015529586711372'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1140155280000#c114015529586711372' title=''/><author><name>Wai Yip Tung</name><uri>http://www.blogger.com/profile/05258586060883977251</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-17426834.post-114012740239439898</id><published>2006-02-16T14:03:00.000-08:00</published><updated>2006-02-16T14:03:00.000-08:00</updated><title type='text'>Cool!!!BTW - what's HTMLTestRunner.py's license?</title><content type='html'>Cool!!!&lt;BR/&gt;&lt;BR/&gt;BTW - what's HTMLTestRunner.py's license?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114012740239439898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/17426834/113985461164703984/comments/default/114012740239439898'/><link rel='alternate' type='text/html' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html?showComment=1140127380000#c114012740239439898' title=''/><author><name>Ori Peleg</name><uri>http://www.blogger.com/profile/02077699130685616613</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mindretrieve.blogspot.com/2006/02/announce-htmltestrunner-generates-html.html' ref='tag:blogger.com,1999:blog-17426834.post-113985461164703984' source='http://www.blogger.com/feeds/17426834/posts/default/113985461164703984' type='text/html'/></entry></feed>