nunitasp-devl Mailing List for NUnitAsp
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: Jesudass N. <jes...@gm...> - 2008-11-23 14:58:39
|
I am a new user of nunitAsp I have a simple test written in a .cs file to check for (textbox value equal) by using AssertEquals after a Button Click if i write any Response.Write("Any value"); in the server click of a button in C# Asp.net I was thrown some xml exception Should i need to include any classes to avid this error Please help me out........ Thanx in advance Jesudass |
From: Mueller, E. <Edw...@ps...> - 2007-06-20 16:18:37
|
Hi, =20 I'm behind a firewall which only allows access on ports 80 and 443. I'm trying to use CVSNT 2.5.03 to download the latest source by doing: =20 cvs -d:pserver;proxy=3Dinternet.ps.net;proxyport=3D80:ano...@nu...s.= sou rceforge.net:443:/cvsroot/nunitasp login =20 But, I'm getting: =20 Logging in to :pserver:ano...@nu...:443:/cvsroot/nunitasp CVS password: cvs [login aborted]: SSH-1.99-OpenSSH_3.9p1 =20 Any help would be appreciated. Thanks. - Ed. =20 |
From: Patrick K. <pat...@gm...> - 2007-02-15 08:44:23
|
Hi there, I was using Nunit ASP for testing a .Net 2.0 ASP website, but found that the postback failed when we dropped validators in. I've submitted the patch file for ControlTester.cs here<http://sourceforge.net/tracker/index.php?func=detail&aid=1657809&group_id=49940&atid=458032>. Also as per the website, I assign the copyright to this patch to Brian Knowles and Jim Shore. Do you have any plans of releasing a new version anytime soon? It'd be great as well to merge the FileUpload patch that someone else submitted since that's nice to test. Cheers, Patrick |
From: Jonathan C. <jon...@bi...> - 2006-07-14 15:05:07
|
Has the download version on SourceForge gone backwards since February 2006? I am trying to help Nina Syvertsen who posted a problem to the nunitasp-users list. Our investigations have shown that the current download appears to be older than my reference copy which I took on 16 February 2006. For instance, the \source\NUnitAsp\HtmlTester folder has 4 classes in today's file against 16 in the February file. A number of the files differ with more up-to-date copyright messages in the February version e.g. htmlanchortester.cs What's happening? Where is the definitive copy? Jonathan Clarke jon...@bi... www.bitwix.com <http://www.bitwix.com/> |
From: Jim S. <js...@ti...> - 2006-05-05 21:20:23
|
Removed the samples--they were severely out of date. -- James Shore -- Titanium IT -- Successful Software Recipient of 2005 Gordon Pask award for Contributions to Agile Practice phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2006-05-05 21:10:30
|
Updated documentation in preparation for 2.0 release. -- James Shore -- Titanium IT -- Successful Software Recipient of 2005 Gordon Pask award for Contributions to Agile Practice phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2006-05-05 19:04:40
|
Added ConstructorTests.cs to check that HtmlTesters have the correct constructors. Contributed by John Morales. -- James Shore -- Titanium IT -- Successful Software Recipient of 2005 Gordon Pask award for Contributions to Agile Practice phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ja...> - 2006-04-24 02:30:23
|
John Morales wrote: > What is the status of this project? the mailing list seems very quiet. > Is there any more work planned? I would love to see performance > improvements.. There is a 2.0 version in CVS that is almost ready to go out. It's been there since Sept 2005. Unfortunately, I am swamped with work and haven't had time to perform the polish necessary to release. Most of our performance problems stem from our third-party parser, which I would love to switch out. I don't have plans to do so at this time. Jim |
From: John M. <jmo...@gm...> - 2006-04-23 04:35:01
|
What is the status of this project? the mailing list seems very quiet. Is there any more work planned? I would love to see performance improvements.. |
From: Garrison, J. <JohnGa@DOR.WA.GOV> - 2006-03-23 22:23:19
|
Sorry, that's not quite right. I think it should be if the form action attribute ends with the current page name thusly if (formNodes.Count > 1) { string currentPageName = browser.CurrentUrl.AbsolutePath.Substring(browser.CurrentUrl.AbsolutePath.La stIndexOf('/')+1)); for (int x = 0; x < formNodes.Count; x++) { if (formNodes[x].Attributes["action"].Value.EndsWith(currentPageName) { formElement = (XmlElement)formNodes[x]; break; } } Assertion.AssertNotNull("Multiple <form> tags, none of which look like an ASPNET form.", formElement); } -----Original Message----- From: nun...@li... [mailto:nun...@li...] On Behalf Of Garrison, John Sent: Thursday, March 23, 2006 1:52 PM To: 'nun...@li...' Subject: [NUnitAsp-devl] Change to handle multiple form tags Our application has a non-asp.net form tag for the site search box. The code below for WebForm.cs allows NUnitASP to find the correct form tag. /// <summary> /// The HTML tag this tester corresponds to. /// </summary> protected HtmlTag Tag { get { XmlNodeList formNodes = browser.CurrentPage.GetElementsByTagName("form"); XmlElement formElement = null; if (formNodes.Count > 1) { for (int x = 0; x < formNodes.Count; x++) { if (formNodes[x].Attributes["id"].Value.StartsWith("_ctl")) { formElement = (XmlElement)formNodes[x]; break; } } Assertion.AssertNotNull("Multiple <form> tags, none of which look like an ASPNET form.", formElement); } else { Assertion.AssertEquals("page form elements", 1, formNodes.Count); formElement = (XmlElement)formNodes[0]; } XmlAttribute id = formElement.Attributes["id"]; Assertion.AssertNotNull("couldn't find web form's 'id' attribute", id); return new HtmlTag(browser, id.Value, this); } } //I assign the copyright to this patch to Brian Knowles and Jim Shore. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ NUnitAsp-devl mailing list NUn...@li... https://lists.sourceforge.net/lists/listinfo/nunitasp-devl |
From: Garrison, J. <JohnGa@DOR.WA.GOV> - 2006-03-23 21:52:23
|
Our application has a non-asp.net form tag for the site search box. The code below for WebForm.cs allows NUnitASP to find the correct form tag. /// <summary> /// The HTML tag this tester corresponds to. /// </summary> protected HtmlTag Tag { get { XmlNodeList formNodes = browser.CurrentPage.GetElementsByTagName("form"); XmlElement formElement = null; if (formNodes.Count > 1) { for (int x = 0; x < formNodes.Count; x++) { if (formNodes[x].Attributes["id"].Value.StartsWith("_ctl")) { formElement = (XmlElement)formNodes[x]; break; } } Assertion.AssertNotNull("Multiple <form> tags, none of which look like an ASPNET form.", formElement); } else { Assertion.AssertEquals("page form elements", 1, formNodes.Count); formElement = (XmlElement)formNodes[0]; } XmlAttribute id = formElement.Attributes["id"]; Assertion.AssertNotNull("couldn't find web form's 'id' attribute", id); return new HtmlTag(browser, id.Value, this); } } //I assign the copyright to this patch to Brian Knowles and Jim Shore. |
From: Matt H. <ma...@us...> - 2006-03-09 03:32:12
|
Adam Dymitruk wrote: > How about mobile app development (WAP and all that)? What tools do we have > to enable TDD in such situations? Can anyone share their experiences? If your server-side is ASP.NET, you can have ASP.NET detect WAP-enabled devices via their agent-string and then have your controls output things accordingly. Parsing the WML document that comes back shouldn't be difficult, and shouldn't require Javascript. |
From: Matt <ma...@us...> - 2006-03-08 20:05:56
|
On Wed, 8 Mar 2006, Jones, Marcie wrote: > I'm still very interested in this -- I could see a need to test all > kinds of Javascript functionality, and AJAX testing in particularly > would be quite cool. Rob, Jim, are you (or anyone on this list) by > chance going to be at the MIX conference in a couple of weeks? I'm > particularly interested in the AJAX/Atlas talks that are going to be > covered there. I started working on this a bit last month: http://wiki.yak.net/668 Besides being strapped for time and being focused on improving Mono's WinForms implementation (which now allows me to run nunit-gui and Reflector under Linux), I do *not* want to assign the copyright of my changes to anyone. The only reason I can think of for requiring copyright assignment is so the code can be relicensed later, which I do not support. Relicensing means that my own code might later be legally inaccessible to me free of charge. So, until that restriction is removed, I'm focusing on other things. If I submit code to a project under the LGPL (or whatever), I want my code to stay that way. That being said, someone could easily read my blog post and keep going down the path. The fact it uses the Rhino library that HttpUnit uses means that someone could look at how HttpUnit integrates with Rhino and use that as the basis for HttpUnit. Hope this helps! :) -- tangled strands of DNA explain the way that I behave. http://www.clock.org/~matt |
From: David G. <Dav...@un...> - 2006-03-03 04:56:53
|
(Apologies if this has already been discussed - I couldn't find anything in the mail archive myself) =20 My understanding of how NUnitAsp works is that it currently includes an SGML parser that processes the incoming HTML. The upside of this approach is I assume it is reasonably quick, and doesn't require any UI stuff. =20 The downside seems to be that there is obviously no client-side JavaScript support, and there are also occasional issues with the SGML parser (eg. some of the DOCTYPE bugs) =20 What I'm wondering is whether it would be worthwhile embedding a browser control (IE or Firefox should be able to do this - see http://www.iol.ie/~locka/mozilla/control.htm) and letting that do the parsing instead. Then you'd get the option of JavaScript and a more flexible parser. I presume it would then just be a matter of querying the DOM of the browser to extract the relevant information for NUnitAsp to use. =20 I'm not saying this would be an easy thing to do, but it's an idea at least :-) =20 -dave =20 --=20 David Gardiner <>< Senior Programmer with UniSAnet Project. Flexible Learning Centre, Underdale Campus, University of South Australia Email: dav...@un... Ph +61 8 8302 1278 Fax +61 8 8302 1288=20 Web: http://davidgardiner.blogspot.com/ =20 |
From: Uwe L. <le...@sb...> - 2006-02-25 18:03:15
|
Hello, I test a application with windows Authentication and use of the session state. To test some pages i have made a test page which build up some things in the session and call ( in the test page ) Response.Redirect(new_url). the tests look like public void visible_mdUserSettings_myself() { Browser.Credentials = defines.UserCredential_default; Browser.GetPage(url_testpad_mdUserSettings); ButtonTester btn_cancel = new ButtonTester("btn_cancel", CurrentWebForm); // check Assert.AreEqual("Abbrechen", btn_cancel.Text, "btn_cancel.Text"); } [Test] public void visible_mdUserSettings_lft_te() { Browser.Credentials = defines.UserCredential_lft_te; Browser.GetPage(url_testpad_mdUserSettings); ButtonTester btn_cancel = new ButtonTester("btn_cancel", CurrentWebForm); // check Assert.AreEqual("Abbrechen", btn_cancel.Text, "btn_cancel.Text"); } the default user is a domain user with pretty much rights the second ( lft_te ) only on the server for test purpose. The second test fail with error : "HTTP 401.1 Nicht autorisiert" although if i call the page manually all is fine. please help it's urgent -- Kind regards Uwe Lesta at SBS-Softwaresysteme.de |
From: vivek r. <viv...@gm...> - 2006-02-03 06:12:10
|
i used Required field validator in my code: <TD> <asp:requiredfieldvalidator id=3D"rqvalidator" runat=3D"server" Width=3D"14= 4px" Height=3D"22px" ErrorMessage=3D"Please Enter Book Name" ControlToValidate=3D"txtBookname"> </asp:requiredfieldvalidator> </TD> The test case is: [Test]public void Errormessagecheck() { Setup(); txtname.Text =3D""; txtcomments.Text =3D"Good job SQA"; btsave.Click(); AssertVisibility (rqvalidator ,true); AssertEquals("Please Enter Book Name" , rqvalidator.Messages [0].ToString()); } ........................ I got below Error message: Book_Application.Nunittest.Errormessagecheck : String lengths differ. Expected length=3D22, but was length=3D16. Strings differ at index 16. expected:<"Please Enter Book Name"> but was:<"Please Enter Boo"> ---------------------------^ If i enter 6 more extra charecters in Required field validator "error message" like : "Please Enter Book Name123456" and in expected like:"Please Enter Book Name" then the test case was passed. which is incorrect(i.e what is the need of entering extra 6 charecters in actual message) Please help on this issue. Please refer the below link for more information.: https://sourceforge.net/forum/message.php?msg_id=3D3554259 Thank&Regrads, vivek |
From: Tom V. <to...@fa...> - 2006-01-11 13:16:58
|
Hello everybody, I as trying to change the selected index of a drop down list. The relevant pieces of code are shown below. DropDownListTester CustomerList; CustomerList = new DropDownListTester("CustomerList", CurrentWebForm); CustomerList.SelectedIndex = CustomerList.Items.Count - 1; // Selects last customer in list The CustomerList is set to AutoPostBack My problem is that the CustomeList.SelectedIndex remains 0, even though the CustomerList.Items.Count - 1 evaluates to 10. I have a feeling that the page is not posting back and so have tried to use the PostBack() method of the ControlTester, but I can't fugure out how to use this. Please advise. Bryan -- Tom Veil to...@fa... -- http://www.fastmail.fm - Faster than the air-speed velocity of an unladen european swallow |
From: Matthew R. <ma...@ra...> - 2006-01-09 21:03:44
|
I'm not sure whether this should be posted here, I tried posting to the nunit-users list first but had no response hence posting here. Also, the question is about the current build, not the last stable release, hence = may be more appropriate here. Below is the message as sent to the users = list. I first have to say thanks to all those who worked to bring this nunit extension about - it has made my web development far more reliable. I started by downloading v1.5.1 however, I had the need to test a repeater control so I have just downloaded the latest source and compiled that instead.=20 I have one question at the moment, I am trying to use the RepeaterTester = to test a server control that I am creating. At the moment, the control = simply renders an unsorted list, with <ul> in the header, <li> items in the = item and </ul> in the footer template.=20 My server control renders the following html <ul id=3D"StockCategoryList"> <li>Category1</li> <li>Category2</li> <li>Category3</li> <li>Category4</li> </ul> My test code is as follows, RepeaterTester mainList =3D new RepeaterTester("StockCategoryList"); int count =3D mainList.ItemCount; In this situation, count is set to 0, even though I would expect it to = read 4. I'm sure it is something I'm doing wrong, can anyone advise what I = should be doing instead? Many thanks Matt |
From: Jim S. <js...@ti...> - 2005-11-10 17:06:39
|
Added validator testers: ValidatorTester (generic base class), CompareValidatorTester, CustomValidatorTester, RangeValidatorTester, RegularExpressionValidatorTester, RequiredFieldValidatorTester. Also added HtmlSpanTester. Many thanks to Kyle Heon for his contribution of the initial tester. -- James Shore -- Titanium IT -- Successful Software Recipient of 2005 Gordon Pask award for Contributions to Agile Practice phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-11-10 15:26:15
|
Added WebAssert.Visible(tester, message) and WebAssert.NotVisible(tester, message). -- James Shore -- Titanium IT -- Successful Software Recipient of 2005 Gordon Pask award for Contributions to Agile Practice phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-10-11 01:00:50
|
Added HtmlSelectTester; modified ListBoxTester, DropDownListTester, and ListControlTester to use it. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award Next public talk: PNSQC panel on Evo. Tue, 11 Oct. http://www.pnsqc.org phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-10-10 20:19:37
|
Added WebAssert.CurrentUrlEndsWith(); started to factor out generation of anonymous control names. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award Next public talk: PNSQC panel on Evo. Tue, 11 Oct. http://www.pnsqc.org phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-09-26 17:43:13
|
CVS Check-in: Modified WebFormTester's post-back methods to work with ASP.NET 2.0's revised post-back script. -- James Shore--Titanium IT--Recipient of 2005 Gordon Pask award Jacksonville, FL: Free Test-Driven ASP.NET talk. 27 Sept at Jaxdug, http://www.jaxdug.com/. phone: 503-267-5490 email: js...@ti... web/blog: http://www.jamesshore.com |
From: Jim S. <js...@ti...> - 2005-09-19 22:27:54
|
Hi, Peijen, I tried this earlier and it failed, but I just tried again and it worked. Give it another shot. SourceForge has little hiccups like this occasionally. If it still doesn't work, I did a CVS checkout using TortoiseCVS. Here's what it reported: In C:\projects: "C:\Program Files\TortoiseCVS\cvs.exe" "-q" "checkout" "-d" "nunitasp.anon.deleteme" "-P" "NUnitAsp" CVSROOT=:pserver:ano...@cv...:/cvsroot/nunitasp Cheers, Jim Peijen Lin wrote: > Hi, > > Is anyone having trouble getting the NUnitAsp source from CVS? I > tried to use the anonymous login with empty password but it's giving > me an error message saying access denied. > > I having finally convince my team to use NUnitAsp on a big project we > are working on so any help would be great. > > Thanks, > Peijen > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your very > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > NUnitAsp-devl mailing list > NUn...@li... > https://lists.sourceforge.net/lists/listinfo/nunitasp-devl -- 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: Peijen L. <pei...@gm...> - 2005-09-19 12:22:05
|
Hi, Is anyone having trouble getting the NUnitAsp source from CVS? I tried to use the anonymous login with empty password but it's giving me an error message saying access denied. I having finally convince my team to use NUnitAsp on a big project we are working on so any help would be great. Thanks, Peijen |