{"id":56,"date":"2007-06-17T14:56:00","date_gmt":"2007-06-17T21:56:00","guid":{"rendered":"http:\/\/sp2hari.com\/?p=56"},"modified":"2020-06-20T08:53:12","modified_gmt":"2020-06-20T08:53:12","slug":"finally-10","status":"publish","type":"post","link":"https:\/\/sp2hari.com\/index.php\/2007\/06\/17\/finally-10\/","title":{"rendered":"Finally 10&#8230;."},"content":{"rendered":"<p>Ok, i am certainly not talking anything about my GPA. After fighting (fighting is an understatement i suppose) with Firefox and LDTP for 3 hours (well this is actually few days), finally managed to get 10 test cases work properly.<\/p>\n<p>At least these 10 test cases will work properly for integration with Tinderbox. Have to send these test cases to <a href=\"http:\/\/blogs.sun.com\/roller\/page\/emily\">emily<\/a> soon and get them integrated with tinderbox.<\/p>\n<p>The output log is<br \/>\n<span style=\"font-style: italic;\"><span style=\"font-style: italic;\">&lt;ldtp&gt;<br \/>\n&lt;group name=&#8221;group1&#8243;&gt;<br \/>\n&lt;script name=&#8221;verifyaddressfield.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;address field and go button&#8221;&gt;<br \/>\n&lt;pass&gt;1&lt;\/pass&gt;<br \/>\n&lt;\/test&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script name=&#8221;verifybackforward.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;Back and Forward buttons&#8221;&gt;<br \/>\n&lt;pass&gt;1&lt;\/pass&gt;<br \/>\n&lt;\/test&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script name=&#8221;verifyhome.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;verify home button&#8221;&gt;<br \/>\n&lt;pass&gt;1&lt;\/pass&gt;<br \/>\n&lt;\/test&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script name=&#8221;verifynewtab.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;Open a new tab &#8220;&gt;<br \/>\n&lt;pass&gt;1&lt;\/pass&gt;<br \/>\n&lt;\/test&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script name=&#8221;verifyyahoo.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;topsite &#8211; yahoo&#8221;&gt;<br \/>\n&lt;pass&gt;1&lt;\/pass&gt;<br \/>\n&lt;\/test&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script name=&#8221;verifymsn.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;topsite &#8211; msn test&#8221;&gt;<br \/>\n&lt;pass&gt;1&lt;\/pass&gt;<br \/>\n&lt;\/test&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script name=&#8221;verifyamazon.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;topsite &#8211; amazon&#8221;&gt;<br \/>\n&lt;pass&gt;1&lt;\/pass&gt;<br \/>\n&lt;\/test&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script name=&#8221;verifyftp.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;navigate ftp&#8221;&gt;<br \/>\n&lt;pass&gt;1&lt;\/pass&gt;<br \/>\n&lt;\/test&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script name=&#8221;verifysearch.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;Open search by keyboard shortcuts&#8221;&gt;<br \/>\n&lt;pass&gt;1&lt;\/pass&gt;<br \/>\n&lt;\/test&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;script name=&#8221;verifyfindinpage.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;Find in Page&#8221;&gt;<br \/>\n&lt;pass&gt;1&lt;\/pass&gt;<br \/>\n&lt;\/test&gt;<br \/>\n&lt;\/script&gt;<br \/>\n&lt;timeinfo start=&#8221;03:23:00 AM on 18-Jun-2007&#8243; elapsed=&#8221;0:1:8&#8243;&gt;&lt;\/timeinfo&gt;<br \/>\n&lt;groupsstatus total=&#8221;10&#8243; pass=&#8221;10&#8243; fail=&#8221;0&#8243;&gt;&lt;\/groupsstatus&gt;<br \/>\n&lt;\/group&gt;<br \/>\n&lt;\/ldtp&gt;<\/span><\/span><\/p>\n<p>Well looks like i have underestimated how bugs can trouble a poor coder like me :P.<\/p>\n<p>Each test case has its unique problem :P.<br \/>\nThe major problem is the Firefox crash :(. Though the test case work individually, Firefox crashes if all the test cases were run under a single runner xml :-(. I have downloaded Firefox firefox-3.0a6pre now ( was using firefox-3.0a5pre all these days). Hopefully Firefox 6 is stable against the test cases :-).<\/p>\n<p>Anyway the 10 is not the final list. I am supposed to test 30 test cases properly for the Functionality subgroup of smoketests testgroup for Firefox 3.0. Not to  mention about the lots and lots of test cases from  other test groups.<br \/>\n<span style=\"font-style: italic;\"><span style=\"font-style: italic;\"><br \/>\n<\/span><\/span>Let me post the issues i am facing with the other test cases, so that it is easier for me to fix them later.<\/p>\n<p>Before that, the 10 test cases which worked in my favour are \ud83d\ude42<\/p>\n<p><a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=3954\">3954<\/a>: Address Field and Go button<br \/>\n<a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=4032\">4032<\/a>: Back and Forward buttons<br \/>\n<a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=4031\">4031<\/a>: Home button<br \/>\n<a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=4086\">4086<\/a>: Open a new tab<br \/>\n<a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=3955\">3955<\/a>: Top Site &#8211; Yahoo<br \/>\n<a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=3956\">3956<\/a>: Top Site &#8211; MSN<br \/>\n<a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=3957\">3957<\/a>: Top Site &#8211; Amazon<br \/>\n<a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=3959\">3959<\/a>: Navigate FTP<br \/>\n<a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=4245\">4245<\/a>: Open search by keyboard shortcuts<br \/>\n<a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=3967\">3967<\/a>: Find in Page<\/p>\n<p>The test cases having issues are<br \/>\n1. <a href=\"http:\/\/litmus.mozilla.org\/show_test.cgi?id=4137\">4137<\/a>: Add an RSS feed\/Livemark<br \/>\nThis is the strangest test case i have ever found :(. This doesn&#8217;t work for the first time. Next time without any modification, if i run the test case it works like properly. Third time it is not working and fourth time it again works properly . Well, that is more than enough for me, i either end up banging the computer monitor or beating myself that there is no 5 th time :-(. Should check this test case properly.<\/p>\n<p>Looks like this is the only test case which troubles me as of now. Have the rest of the code ready but looks like new problems are starting soon. For the same runner xml, same files , same Firefox, test case 2 shows come error. Have to check that soon. Got firefox-3.0a6pre few mins back. Have to run the test cases with that.<\/p>\n<p>And yes, tried something with the list not getting selected problem. Even <a href=\"http:\/\/nagappanal.blogspot.com\/\">nags<\/a> confirmed this problem some time back and finally able to find out the exact line where the error occurs .<\/p>\n<p><span style=\"font-style: italic;\">if (AccessibleSelection_selectChild (selection, text_index))  { }<br \/>\n<\/span>That is line 110 from list.c.  The if statement is returning false ending up in &#8220;LDTP_ERROR_UNABLE_TO_SELECT_CHILD&#8221; . Hoping to fix this soon.  Will be really happy if i fix this one as i will be able to add something to the ldtp source code. Been a long time since my name appeared in the Changelog \ud83d\ude09 \ud83d\ude09<span style=\"font-style: italic;\"><\/span><\/p>\n<p>Only thing i am happy about is both Ubuntu Linux and Solaris responds similarly  for the test cases.  So no separate Firefox issues and Solaris issues as of now. Let us see how this proceeds.<\/p>\n<p>Another small issue.<br \/>\nWhenever i get any error in any of the test cases, i get the following error<br \/>\n&lt;script name=&#8221;verifyamazon.py&#8221;&gt;<br \/>\n&lt;test name=&#8221;topsite &#8211; amazon&#8221;&gt;<br \/>\n&lt;ERROR&gt;Traceback (most recent call last):<br \/>\nFile &#8220;\/usr\/local\/bin\/ldtprunner&#8221;, line 407, in executescript<br \/>\nexecfile (scriptname, scriptglobal)<br \/>\nFile &#8220;verifyamazon.py&#8221;, line 52, in &lt;module&gt;<br \/>\nlog (msg, &#8216;error&#8217;)<br \/>\nFile &#8220;\/usr\/local\/lib\/python2.5\/site-packages\/ldtp.py&#8221;, line 2500, in log<br \/>\nlogger.error (message)<br \/>\nFile &#8220;logging\/__init__.py&#8221;, line 1015, in error<br \/>\nFile &#8220;logging\/__init__.py&#8221;, line 1100, in _log<br \/>\nFile &#8220;\/usr\/local\/lib\/python2.5\/site-packages\/ldtp.py&#8221;, line 2421, in makeRecord<br \/>\nreturn LdtpLogRecord (name, level, fn, lno, msg, args, exc_info)<br \/>\nFile &#8220;\/usr\/local\/lib\/python2.5\/site-packages\/ldtp.py&#8221;, line 2394, in __init__<br \/>\nmsg = &#8216;&lt;&#8216; + logging.getLevelName (level) +&#8217;&gt;&#8217; + saxutils.escape (msg) + &#8216;&lt;\/&#8217; + logging.getLevelName (level) + &#8216;&gt;&#8217;<br \/>\nFile &#8220;\/usr\/lib\/python2.5\/site-packages\/_xmlplus\/sax\/saxutils.py&#8221;, line 31, in escape<br \/>\ndata = data.replace(&#8220;&amp;&#8221;, &#8220;&amp;amp;&#8221;)<br \/>\nAttributeError: &#8216;LdtpExecutionError&#8217; object has no attribute &#8216;replace&#8217;<br \/>\n&lt;\/ERROR&gt;<br \/>\n&lt;\/script&gt;<\/p>\n<p>I am giving the error message properly in the <span style=\"font-style: italic;\">try<\/span> block, but not in the <span style=\"font-style: italic;\">except<\/span> block. When i give the error in the <span style=\"font-style: italic;\">except<\/span> block then i get the error message in the log file properly. But i am supposed to pass the error message from the <span style=\"font-style: italic;\">try<\/span> block to the <span style=\"font-style: italic;\">except<\/span> block. Should learn a bit of python exceptions to know more about this<\/p>\n<p>Anyway the files for the test cases which are working can be obtained from <a href=\"http:\/\/freeshells.ch\/%7Esp2hari\/soc\/tinderbox.tar.gz\">here<\/a><\/p>\n<p>Note :: Have added many more test cases to the above file now, but didn&#8217;t like to change the title.<br \/>\n<span style=\"font-style: italic;\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ok, i am certainly not talking anything about my GPA. After fighting (fighting is an understatement i suppose) with Firefox and LDTP for 3 hours (well this is actually few days), finally managed to get 10 test cases work properly. At least these 10 test cases will work properly for &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-code"],"_links":{"self":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":2,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":1421,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts\/56\/revisions\/1421"}],"wp:attachment":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}