nunitasp-devl Mailing List for NUnitAsp (Page 2)
Brought to you by:
jlittle82
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
(3) |
Apr
(26) |
May
(7) |
Jun
(6) |
Jul
(7) |
Aug
(39) |
Sep
(15) |
Oct
(30) |
Nov
(20) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(28) |
Feb
(15) |
Mar
(41) |
Apr
(51) |
May
(32) |
Jun
(5) |
Jul
(14) |
Aug
(19) |
Sep
(33) |
Oct
(30) |
Nov
(35) |
Dec
(95) |
2004 |
Jan
(5) |
Feb
(3) |
Mar
(15) |
Apr
(24) |
May
(9) |
Jun
(9) |
Jul
(8) |
Aug
(32) |
Sep
(15) |
Oct
(6) |
Nov
(22) |
Dec
(1) |
2005 |
Jan
(22) |
Feb
(9) |
Mar
(2) |
Apr
(33) |
May
(3) |
Jun
(2) |
Jul
(7) |
Aug
(24) |
Sep
(8) |
Oct
(2) |
Nov
(2) |
Dec
|
2006 |
Jan
(2) |
Feb
(2) |
Mar
(5) |
Apr
(2) |
May
(3) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Jim S. <js...@ti...> - 2005-09-05 02:51:58
|
Created NamingContainerTester to hold the most common reason to override GetChildElementHtmlId. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-09-04 23:20:37
|
Added support for server controls embedded in HeaderTemplate, FooterTemplate, and SeparatorTemplate. General polish. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-09-04 20:01:29
|
Added Shane Lenagh's ListControlTester.SelectedValue method. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-09-03 00:41:10
|
Added initial support for SeparatorTemplate, HeaderTemplate, and FooterTemplate. Still to come: AlternatingItemTemplate and controls nested in non-ItemTemplates. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-09-01 21:04:30
|
The next version of NUnitAsp has so many changes, I'm calling it 2.0. Here's some of the major new features that we've already added: * Works with any test tool, including any version of NUnit. * No longer requires you to pass "CurrentWebForm" when instantiating testers. * Allows tests to directly modify and access form variables without using a tester. * Allows tests to directly postback and submit forms without using a tester. * Supports pages with multiple forms. * Adds testers for nearly all HTML tags. * Allows HTML testers to be instantiated by XPath as well as ID. * Adds a tester for ASP.NET Repeater control * And even more to come! We'll be using the new version of NUnitAsp in our Test-Driven ASP.NET course later this month. Everybody who attends will get a beta release to take home. Of course, there's better reasons to attend, like our in-depth coverage of TDD, test-beds, and mock objects with NUnitAsp and ASP.NET. There's only two weeks left until the course, so register today: http://nunitasp.sourceforge.net/tdd-course.html Cheers, Jim PS: I've tried out .NET 2.0 and NUnitAsp works with a few minor tweaks. Expect a release that supports both versions of ASP.NET sometime after the official release of .NET 2.0. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-08-31 19:04:55
|
Hello, Bala, The best forum for these sorts of questions is nun...@li.... Bala subramanyam Chitta wrote: > 1. Iam not able to test saving a file using File upload control(which is > there in my .aspx page), which is one of the major test I have to do > using NUnitASP. There is no file upload tester currently in NUnitAsp. Someone submitted a patch for it which you may find here: http://sourceforge.net/tracker/index.php?func=detail&aid=968125&group_id=49940&atid=458032 I can't integrate this patch because it doesn't include a copyright assignment, but you're welcome to try it out. > 2. I have learnt that NUnitASP cannot test the client side javascript. > Are there any others addons to test the client side javascript so that I > can use with NUnitASP? You may want to look at jsUnit. Another place to look for testing tools is testdriven.com. (Click the 'web links' link.) Cheers, Jim -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Bala s. C. <bsu...@aa...> - 2005-08-31 11:39:32
|
Hello all, I have couple of problems using NunitASp 1. Iam not able to test saving a file using File upload control(which is there in my .aspx page), which is one of the major test I have to do using NUnitASP. 2. I have learnt that NUnitASP cannot test the client side javascript. Are there any others addons to test the client side javascript so that I can use with NUnitASP? Can anyone help me out in these two issues? Thanks and regards, Bala |
From: Jim S. <js...@ti...> - 2005-08-31 07:52:14
|
Integrated Ben Monro's RepeaterTester. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-08-24 03:36:38
|
Aaron Jensen wrote: > Jim Shore wrote: > >>1- I have been considering removing the 'enabled' assertion entirely. > > I like the assertion, as it mimics real UI usage. [...] > > Does that make sense? Yes, perfectly. >>2- I see that you don't allow the 'id' attribute to be changed. What >>was the reasoning behind that? > > I did not know if this would cause Very Bad Things(tm) to happen in the > rest of NUnitAsp, i.e., I did not know if it assumed IDs are static and > never changed. I figured it was better to be safe than sorry. If you do > not think it necessary, by all means, remove. Well, the testers rely on the ID remaining the same, and if it changes, they'll suddenly think the control isn't visible. But I'm okay with that, particularly since in the next version you'll be able to construct some testers using XPath descriptions. Cheers, Jim -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Aaron J. <aj...@pr...> - 2005-08-23 20:59:12
|
Jim Shore wrote: > 1- I have been considering removing the 'enabled' assertion entirely. > The method would still be present but NUnitAsp would stop throwing > exceptions when a control is disabled. I would still include your > patch, as I think it has broader uses. Do you think removing the > 'enabled' assertion would be a good idea? Why/why not? (Anybody else > with an opinion on this, feel free to chime in.) I like the assertion, as it mimics real UI usage. The user "throws an exception" when he tries to work with a disabled control, and makes him do something to enable the control. Essentially, leaving the assertion in forces testers to mimic the same work as their JavaScript. For example, in my control, I have two radio buttons and two checkboxes. By default, the checkboxes are disabled until the second radio button is checked. In my tester for this control, when I set the Checked property on the radio buttons, I also enable/disable the checkboxes as needed. Does that make sense? > 2- I see that you don't allow the 'id' attribute to be changed. What > was the reasoning behind that? I did not know if this would cause Very Bad Things(tm) to happen in the rest of NUnitAsp, i.e., I did not know if it assumed IDs are static and never changed. I figured it was better to be safe than sorry. If you do not think it necessary, by all means, remove. Let me know if you have any more questions. <:> Aaron |
From: Jim S. <js...@ti...> - 2005-08-23 20:52:11
|
Aaron, thank you for this patch. It's a good change that I can see being useful for a lot of cases where JavaScript is involved. I have a few questions for you: 1- I have been considering removing the 'enabled' assertion entirely. The method would still be present but NUnitAsp would stop throwing exceptions when a control is disabled. I would still include your patch, as I think it has broader uses. Do you think removing the 'enabled' assertion would be a good idea? Why/why not? (Anybody else with an opinion on this, feel free to chime in.) 2- I see that you don't allow the 'id' attribute to be changed. What was the reasoning behind that? Regards, Jim Aaron Jensen wrote: > In my web application, there are some controls that load to the browser > disabled, but are then enabled using JavaScript. I went ahead and added > this functionality to the HtmlTag class. I added a unit test to the > CheckBoxTest test suite. I have attached these files and assign the > copyright to Jim Shore. > > - I modifed ControlTester to add the set { } portion of the IsDisabled > property. > > - I modified AspTester\AspControlTester to add the set { } portion of > the Enabled property (which just calls the base.IsDisbled proeprty). > > - Added RemoveAttribte(string) and SetAttribute(string, string) methods > to HtmlTag. When enabling/disabling a control, it removes/adds the > "disabled" attribute on the tag. > > - Added tests for the above methods and properties to the HtmlTagTest > and AspTester\CheckBoxTest test suites. > > I ran the test suite and all tests are passing. I did a CVS Update > *before* making these changes (that was at 3:30 pm today). > > Let me know if there are any questions. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Brian K. <BKn...@fi...> - 2005-08-22 22:19:44
|
Hi Jim, Great job pushing this project forward. It's come a long way since you and I started working on it before release 1.0. Since I haven't been much involved in quite a while and to simplify your management of the project, I want to assign you the copyright for the source code. Good luck on your work towards 2.0. If I ever get back to ASP.NET development, maybe I'll be able to help with version 3.0 :) -Brian Knowles |
From: Jim S. <js...@ti...> - 2005-08-20 20:16:20
|
Finished adding XPath constructors to all HTML testers. Renamed HtmlTag to HtmlTagTester. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-08-20 18:44:33
|
Modified architecture to support instantiating HTML testers by XPath as well as ID: moved HtmlTag into tester hierarchy. Still need to incorporate new functionality into existing HTML testers. Started adding support for HtmlSelect; it's incomplete. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Aaron J. <aj...@pr...> - 2005-08-19 23:36:41
|
In my web application, there are some controls that load to the browser disabled, but are then enabled using JavaScript. I went ahead and added this functionality to the HtmlTag class. I added a unit test to the CheckBoxTest test suite. I have attached these files and assign the copyright to Jim Shore. - I modifed ControlTester to add the set { } portion of the IsDisabled=20 property. - I modified AspTester\AspControlTester to add the set { } portion of the Enabled property (which just calls the base.IsDisbled proeprty). - Added RemoveAttribte(string) and SetAttribute(string, string) methods to HtmlTag. When enabling/disabling a control, it removes/adds the "disabled" attribute on the tag. - Added tests for the above methods and properties to the HtmlTagTest and AspTester\CheckBoxTest test suites. =20 I ran the test suite and all tests are passing. I did a CVS Update *before* making these changes (that was at 3:30 pm today). Let me know if there are any questions. <:> Aaron Jensen <:> Software Engineer <:> Financial Profiles, Inc. <:> http://www.profiles.com <:> 760.431.9400 ext. 421 <:> aj...@pr...=20 |
From: Jim S. <js...@ti...> - 2005-08-19 21:12:03
|
Added auto-postback support to CheckBoxTester and RadioButtonTester By the way, if there are any other controls that are missing auto-postback support, please let me know. Thanks. Jim -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-08-19 19:55:59
|
Added [Test] attribute everywhere it was appropriate and cleaned up a few tests in order to make .NET 2.0 migration cleaner. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-08-19 00:30:29
|
I spent the afternoon today installing the VS2005 beta and running NUnitAsp on it. After working my way through the normal porting issues, my test suite showed only three differences between 1.x and 2.0 with regards to NUnitAsp. I was able to resolve all of those issues to my satisfaction and I feel confident that NUnitAsp will work just fine with .NET 2.0. In case you're curious, here are the three issues I found: 1) Microsoft changed the naming scheme for nested controls in the datagrid. "parent__ctl3_child" is now "parent_ctl03_child". A small change to DataGridTester.GetChildElementHtmlId() fixed this. 2) Microsoft changed their JavaScript code for auto-postback. Instead of "javascript:__postback('name', 'value')", they now use "javascript:setTimeout('__doPostBack(\'name\', \'value\'), 0)". Adding the new pattern to WebFormTester.PostBack() fixed this. 3) Microsoft changed the behavior of drop-down lists so that calling ClearSelection() now selects the first item in the list rather than selecting nothing. I will change the NUnitAsp test suite to reflect the new behavior when I release the .NET 2.0 version of NUnitAsp. You're probably wondering when I will release an official .NET 2.0 version of NUnitAsp. The answer is: sometime after the next version of NUnitAsp comes out. I haven't decided whether I'm going to abandon .NET 1.x or try to support both. Help and/or money, as always, are a big influence on these decisions. Cheers, Jim -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-08-18 19:06:59
|
Fixed TextBoxTester.MaxLength bug that made method unusable. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-08-18 19:06:32
|
Fixed multiple-forms bug reported by Aaron Jenson. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-08-18 18:55:16
|
Added HtmlInputTextTester and HtmlTextAreaTester. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Dave P. <n0n...@gm...> - 2005-08-17 15:44:43
|
Lalitha: This is the NUnitAsp developers list, which is used for discussion of=20 development of the NUnitAsp framework. You probably want to ask your=20 question of either the NUnitAsp-users list, or, judging by your question,= =20 the NUnit-users list. I will email you privately to answer your question. =20 Dave On 8/17/05, Lalitha Subramanian <lal...@mi...> wrote: >=20 > Hi >=20 > We are planning to use NUnit for our project to develop test classes. Bu= t=20 > according to my findings, I could see that the input parameters to the=20 > methods are passed from inside the code. Is there any way to pass multipl= e=20 > parameters from the nunit GUI or can I have an XML file as a source of=20 > input? >=20 > Please help me it is urgent. >=20 > Thanks & Regards >=20 > Lalitha >=20 > =20 > |
From: Lalitha S. <lal...@mi...> - 2005-08-17 06:09:35
|
-------------------------------------------------------------------------= ---------------------------------------------------- Disclaimer -------------------------------------------------------------------------= ---------------------------------------------------- "This message(including attachment if any)is confidential and may be = privileged.Before opening attachments please check them for viruses and defects.MindTree Consulting Private Limited = (MindTree)will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or = outside.If you have received this message by mistake please notify the = sender by return e-mail and delete this message from your system. Any = unauthorized use or dissemination of this message in whole or in part is = strictly prohibited. Please note that e-mails are susceptible to change = and MindTree shall not be liable for any improper, untimely or = incomplete transmission." -------------------------------------------------------------------------= ---------------------------------------------------- |
From: Jim S. <js...@ti...> - 2005-08-16 23:25:07
|
Aaron Jensen wrote: >>Whups! Sorry about that. I've added them. > > The corresponding test and test .aspx pages are missing as well. Okay, I've checked those in as well, and double-checked that there are no other missing files. > I found a bug in the multiple form support code. In ButtonTester.cs: > ... > If you do not pass the button tester's container across, you get an > exception because the NUnitAsp framework does not know in which form the > button exists. Good catch! I would have missed that one. It's pervasive across all of the new tester architecture. Thanks! Regards, Jim PS: Sorry to take so long to reply; I've been ill since Thursday evening. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award New Course! "Test-Driven ASP.NET" Sept 13-15 in Bellevue, WA. Details at http://nunitasp.sourceforge.net/tdd-course.html phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Aaron J. <aj...@pr...> - 2005-08-13 00:47:36
|
> Whups! Sorry about that. I've added them. The corresponding test and test .aspx pages are missing as well. I found a bug in the multiple form support code. In ButtonTester.cs: 80 private HtmlInputButtonTester ButtonTag=20 81 { 81 get 83 { 84 return new HtmlInputButtonTester(HtmlId); 85 } 86 } 87 88 /// <summary> 89 /// Click the button. 90 /// </summary> 91 public void Click() 92 { 93 ButtonTag.Click(); 94 } Line 84 should be: 84 return new HtmlInputButtonTester(HtmlId, this.Form); If you do not pass the button tester's container across, you get an exception because the NUnitAsp framework does not know in which form the button exists. <:> Aaron |