RE: [Htmlparser-developer] Writing test cases
Brought to you by:
derrickoswald
From: <dha...@or...> - 2002-08-21 04:51:40
|
I think the variable should be in HTMLTag so that all the sub-classes can use it transparently. However additionally we can also provide a public setLineSeparator method in HTMLParser which will internally call the method of HTMLTag. =A0 Regards,=20 Dhaval Udani=20 Senior Analyst=20 M-Line, QPEG=20 OrbiTech Solutions Ltd.=20 +91-22-8290019 Extn. 1457=20 =A0 -----Original Message----- From: somik [mailto:so...@ya...] Sent: Wednesday, August 21, 2002 10:01 AM To: htmlparser-developer Cc: somik Subject: Re: [Htmlparser-developer] Writing test cases =20 =20 =20 Hi Dhaval, =A0=A0=A0 Sounds good.. =A0=A0=A0 But, how about putting the static stuff in HTMLParser ? =A0=A0=A0 This is bcos clients will go thru the parser interface.=20 =A0 Regards, Somik =A0 ----- Original Message -----=20 From: dha...@or...=20 To: htm...@li...=20 Sent: Wednesday, August 21, 2002 1:33 PM Subject: RE: [Htmlparser-developer] Writing test cases Hi all, =20 I propose to make the change specified by Somik as follows : =20 1. Add a protected static variable in HTMLTag class called lineSeparator. It will be initialized to the system property line.separator. Since it is protected will be available to all the child classes of HTMLTag and can be hence used in the toHTML() function. 2. To override this default value a public static method called setLineSeparator() will also be made available in HTMLTag class. This will reset the value of the lineSeparator member variable. =20 If this approach seems fine, let me know so I can go ahead. Regards,=20 =20 Dhaval Udani=20 Senior Analyst=20 M-Line, QPEG=20 OrbiTech Solutions Ltd.=20 +91-22-8290019 Extn. 1457=20 =20 =20 =20 =A0=A0 -----Original Message----- =A0=A0 From: somik [ mailto:so...@ya...] =A0=A0 Sent: Tuesday, August 20, 2002 2:04 PM =A0=A0 To: htmlparser-developer =A0=A0 Cc: somik =A0=A0 Subject: Re: [Htmlparser-developer] Writing test cases =A0=A0=20 =A0=A0=20 =20 =A0=A0=20 =A0=A0 Well - here's a tentative list : =A0=A0 [1] Create configurable end-of-line marker. Modify all scann= ers =A0=A0 (toHTML()) to use this =A0=A0 [2] Create auto-detectable end-of-line marker. This could be= a =A0=A0 special/default option =A0=A0=20 =A0=A0 These two tasks directly relate to your need, so you'd be in the best =A0=A0 position to implement them. As u go ahead, make sure that th= e test =A0=A0 cases are passing. =A0=A0=20 =A0=A0 Cheers, =A0=A0 Somik =A0=A0=20 =20 =A0=A0=A0=A0=A0 ----- Original Message -----=20 =A0=A0=A0=A0=A0 From: dha...@or...=20 =A0=A0=A0=A0=A0 To: htm...@li...=20 =A0=A0=A0=A0=A0 Sent: Tuesday, August 20, 2002 5:22 PM =A0=A0=A0=A0=A0 Subject: RE: [Htmlparser-developer] Writing test ca= ses =20 =A0=A0=A0=A0=A0 Yeah sure. Let me know what you want to do. =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Regards,=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Dhaval Udani=20 =A0=A0=A0=A0=A0 Senior Analyst=20 =A0=A0=A0=A0=A0 M-Line, QPEG=20 =A0=A0=A0=A0=A0 OrbiTech Solutions Ltd.=20 =A0=A0=A0=A0=A0 +91-22-8290019 Extn. 1457=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 -----Original Message----- =A0=A0=A0=A0=A0 From: somik [ mailto:so...@ya...] =A0=A0=A0=A0=A0 Sent: Tuesday, August 20, 2002 1:08 PM =A0=A0=A0=A0=A0 To: htmlparser-developer =A0=A0=A0=A0=A0 Cc: somik =A0=A0=A0=A0=A0 Subject: Re: [Htmlparser-developer] Writing test ca= ses =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Hi Dhaval, =A0=A0=A0=A0=A0 Really sorry, this week has been very tight (as als= o last =A0=A0=A0=A0=A0 week). =A0=A0=A0=A0=A0 Pls go ahead and check out the latest version of th= e parser =A0=A0=A0=A0=A0 from CVS =A0=A0=A0=A0=A0 - it has bug fixes by John Zook. =A0=A0=A0=A0=A0 I was thinking of making the next release with some= thing more =A0=A0=A0=A0=A0 substantial - particularly the end-of-line char iss= ue resolved, =A0=A0=A0=A0=A0 and =A0=A0=A0=A0=A0 the parser feedback integrated.. =A0=A0=A0=A0=A0 Can u help with this ? =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Regards, =A0=A0=A0=A0=A0 Somik =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 ----- Original Message -----=20 =A0=A0=A0=A0=A0 From: dha...@or...=20 =A0=A0=A0=A0=A0 To: htm...@li...=20 =A0=A0=A0=A0=A0 Sent: Tuesday, August 20, 2002 3:36 PM =A0=A0=A0=A0=A0 Subject: RE: [Htmlparser-developer] Writing test ca= ses =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Hi Somik, =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Have you been able to go through the files? I have = installed =A0=A0=A0=A0=A0 Eclispse =A0=A0=A0=A0=A0 and once you are through I will check it in through= Eclipse. =A0=A0=A0=A0=A0 I =A0=A0=A0=A0=A0 will also =A0=A0=A0=A0=A0 be needing a version of HTMLParser with these enhan= cements. =A0=A0=A0=A0=A0 When =A0=A0=A0=A0=A0 would =A0=A0=A0=A0=A0 you be making the next integration release? =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Regards, =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Dhaval Udani =A0=A0=A0=A0=A0 Senior Analyst =A0=A0=A0=A0=A0 M-Line, QPEG =A0=A0=A0=A0=A0 OrbiTech Solutions Ltd. =A0=A0=A0=A0=A0 +91-22-8290019 Extn. 1457 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 -----Original Message----- =A0=A0=A0=A0=A0 From: Udani, Dhaval H.=20 =A0=A0=A0=A0=A0 Sent: Wednesday, August 14, 2002 8:15 PM =A0=A0=A0=A0=A0 To: htmlparser-developer =A0=A0=A0=A0=A0 Cc: Udani, Dhaval H. =A0=A0=A0=A0=A0 Subject: RE: [Htmlparser-developer] Writing test ca= ses =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Hi Somik, =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Since I will need to install SSH1 before I can get = proper =A0=A0=A0=A0=A0 access =A0=A0=A0=A0=A0 to the =A0=A0=A0=A0=A0 CVS(I think u have already granted me access since = I already =A0=A0=A0=A0=A0 gave =A0=A0=A0=A0=A0 u my =A0=A0=A0=A0=A0 id and u even acknowledged). So I will do that and = learn to =A0=A0=A0=A0=A0 use =A0=A0=A0=A0=A0 CVS. In =A0=A0=A0=A0=A0 the meanwhile probably you can look at the code. Th= e JUnit =A0=A0=A0=A0=A0 test =A0=A0=A0=A0=A0 cases =A0=A0=A0=A0=A0 are also attached. Each test case is configured to = run =A0=A0=A0=A0=A0 independently. =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 I hope u find it easy. Since it is independence day= out here =A0=A0=A0=A0=A0 tommorrow I =A0=A0=A0=A0=A0 won't be in office. However will be in touch on Fri= day. For =A0=A0=A0=A0=A0 the =A0=A0=A0=A0=A0 present =A0=A0=A0=A0=A0 I am attaching zip file of 4 tag-scanners and their =A0=A0=A0=A0=A0 respective =A0=A0=A0=A0=A0 test =A0=A0=A0=A0=A0 cases. I have created a util file for commonly used =A0=A0=A0=A0=A0 functions. U =A0=A0=A0=A0=A0 can =A0=A0=A0=A0=A0 probably check that out as well. =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Regards, =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Dhaval Udani =A0=A0=A0=A0=A0 Senior Analyst =A0=A0=A0=A0=A0 M-Line, QPEG =A0=A0=A0=A0=A0 OrbiTech Solutions Ltd. =A0=A0=A0=A0=A0 +91-22-8290019 Extn. 1457 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 -----Original Message----- =A0=A0=A0=A0=A0 From: somik [ mailto:so...@ya...] =A0=A0=A0=A0=A0 Sent: Wednesday, August 14, 2002 5:31 PM =A0=A0=A0=A0=A0 To: htmlparser-developer =A0=A0=A0=A0=A0 Cc: somik =A0=A0=A0=A0=A0 Subject: Re: [Htmlparser-developer] Writing test ca= ses =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Hi Dhaval, =A0=A0=A0=A0=A0 > Do let me know if you are interested in including= it as a =A0=A0=A0=A0=A0 > part of the standard library and what I will need= to do =A0=A0=A0=A0=A0 for that =A0=A0=A0=A0=A0 > purpose. I will feel a little bit more confidant = if =A0=A0=A0=A0=A0 someone goes =A0=A0=A0=A0=A0 through =A0=A0=A0=A0=A0 > my code since this is my first time. I have chang= ed the =A0=A0=A0=A0=A0 tag-scanners =A0=A0=A0=A0=A0 > quite a fair bit from the time I last sent them t= o u. =A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 That would be good. In fact, if you can check it in= to CVS, =A0=A0=A0=A0=A0 then I =A0=A0=A0=A0=A0 can =A0=A0=A0=A0=A0 work =A0=A0=A0=A0=A0 on it the moment I find some time, maybe sometime t= omorrow. =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 You need to sign up as a developer at =A0=A0=A0=A0=A0 http://sourceforge.net/account/register.php and sen= d me your =A0=A0=A0=A0=A0 id. I =A0=A0=A0=A0=A0 will =A0=A0=A0=A0=A0 then =A0=A0=A0=A0=A0 add you as a developer for htmlparser. You can then= check in =A0=A0=A0=A0=A0 your =A0=A0=A0=A0=A0 code =A0=A0=A0=A0=A0 directly with CVS. =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Bytway, thank you for asking so many questions - I = have been =A0=A0=A0=A0=A0 wanting to =A0=A0=A0=A0=A0 put =A0=A0=A0=A0=A0 out all this info in the docs, but now that you've = brought =A0=A0=A0=A0=A0 it all =A0=A0=A0=A0=A0 out, =A0=A0=A0=A0=A0 its =A0=A0=A0=A0=A0 there in the mail archives for others. Of course, w= e still =A0=A0=A0=A0=A0 need =A0=A0=A0=A0=A0 good =A0=A0=A0=A0=A0 docs :) =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 Cheers, =A0=A0=A0=A0=A0 Somik =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 ---------------------------------------------------= ---- =A0=A0=A0=A0=A0 This sf.net email is sponsored by: Dice - The leadi= ng online =A0=A0=A0=A0=A0 job =A0=A0=A0=A0=A0 board =A0=A0=A0=A0=A0 for high-tech professionals. Search and apply for t= ech jobs =A0=A0=A0=A0=A0 today! =A0=A0=A0=A0=A0 http://seeker.dice.com/seeker.epl?rel_code=3D31 =A0=A0=A0=A0=A0 _______________________________________________ =A0=A0=A0=A0=A0 Htmlparser-developer mailing list =A0=A0=A0=A0=A0 Htm...@li... =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0 https://lists.sourceforge.net/lists/listinfo/htmlparser-developer =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =A0=A0=A0=A0=A0=20 =20 =A0=A0=20 =20 =20 =20 =20 |