nunitasp-users Mailing List for NUnitAsp (Page 3)
Brought to you by:
jlittle82
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(5) |
Apr
(9) |
May
(8) |
Jun
(7) |
Jul
(17) |
Aug
(14) |
Sep
(18) |
Oct
(14) |
Nov
(14) |
Dec
(24) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(26) |
Feb
(8) |
Mar
(25) |
Apr
(16) |
May
(8) |
Jun
(20) |
Jul
(14) |
Aug
(31) |
Sep
(5) |
Oct
|
Nov
(12) |
Dec
(11) |
2005 |
Jan
(19) |
Feb
(13) |
Mar
(24) |
Apr
(58) |
May
(27) |
Jun
(17) |
Jul
(18) |
Aug
(33) |
Sep
(6) |
Oct
(6) |
Nov
(5) |
Dec
(5) |
2006 |
Jan
(6) |
Feb
(9) |
Mar
(14) |
Apr
(1) |
May
(14) |
Jun
(6) |
Jul
(6) |
Aug
(6) |
Sep
|
Oct
|
Nov
(10) |
Dec
(3) |
2007 |
Jan
(1) |
Feb
(5) |
Mar
(4) |
Apr
|
May
(7) |
Jun
(13) |
Jul
(6) |
Aug
|
Sep
(7) |
Oct
(7) |
Nov
|
Dec
|
From: Crispo, V. <vin...@br...> - 2006-11-27 15:47:48
|
Hi, Thanks=20for=20your=20help=20to=20get=20NUnitAsp=20running.=20Now=20the=20= problem=20that=20I have=20run=20into=20is=20that=20=20I've=20been=20running=20the=20NUnitAsp=20= Tests=20and=20I=20can't get=20the=20LinkButtonTest=20to=20work=20in=20.NET2.0.=20For=20some=20reas= on,=20the LinkButton=20submit=20event=20is=20not=20firing.=20When=20the=20submit=20b= utton=20is=20fired nothing=20happens.=20The=20label.text=20field=20that=20the=20linkbutton=20= is=20suppose=20to set=20never=20occurs.=20=20 Any=20ideas, Thanks, Vin=20 _____________________________________________________________________ This=20email=20message,=20including=20any=20attachments,=20may=20contain=20= confidential=20and=20proprietary=20information=20for=20the=20sole=20use=20= of=20the=20intended=20recipient.=20=20If=20you=20are=20not=20the=20intende= d=20recipient,=20you=20are=20hereby=20notified=20that=20any=20use,=20copyi= ng=20or=20dissemination=20of=20this=20message=20is=20strictly=20prohibited= .=20=20If=20you=20received=20this=20message=20in=20error,=20please=20notif= y=20Brooks=20Automation,=20Inc.=20immediately=20by=20reply=20email=20or=20= by=20calling=20Brooks=20US=20Headquarters=20at=20+1=20978-262-2400.=20Then= =20delete=20this=20message=20from=20your=20system,=20without=20making=20an= y=20copy=20or=20distribution.=20=20Thank=20you. |
From: Wilbur W. <ha...@fa...> - 2006-11-22 05:39:22
|
Hi, V r a g r a from $ 3, 33 http://www.beigandesunkiondetunhas.com =20 _____ =20 All of it. Very boring. But I recorded it anyway, the way you |
From: Aeden J. <aed...@gm...> - 2006-11-19 23:32:51
|
What I used Lastest source of NUnitASP NAnt 0.85 NUnit 2.28 for .NET 2.0 HTML Help Workshop Outlined below is what I think are the major steps in getting NUnitAsp to compile with .Net 2.0. These instructions aren't detailed, but I hope they are enough to get the ball rolling for those who have been asking or wondering about it. Compiling NUnitASP for .NET 2.0 1) Copy the files in the bin folder under installation point of NAnt 0.85 into lib/NUnit 2) Copy the files in the bin folder under installation point of NUnit 2.2.8 into lib/NUnit 3) Put the path to sn.exe in your PATH environment variable. For example= , D:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin 4) Now in order for the tests to run you need to setup IIS on your machine appropriately. The unit tests for NUnitAsp will look for uri's like http://localhost/NUnitAsp/source/NUnitAspTestPages/AspTester/Dat= aGridTestPage.aspx. So all you need to do is a) Bind 127.0.0.1 so some website b) Create a virtual directory called NUnitAsp and point it at the root of the NUnitAsp source c) Make http://localhost/NUnitAsp/source/NUnitAspTestPages an application starting point. Be sure that it can run scripts. 5) Open a command line window. Navigate to lib/NAnt and execute nant -t:net-2.0 /f:../../NUnitAsp.build 6) At this point it should be compiling. The build is broken up into sections labeled * compile_nunitasp * compile_nunitasptest * compile_nunitasptestpages * test 7) You'll notice that output is fairly long so it's nice to redirect to a text file I did nant =96t:net-2.0 /f:../../NUnitAsp.build > NAspBuild.txt 8) You should be able to ignore the messages in the first three sections mentioned above. Now you'll have the long and arduous task of fixing the test or the tested. 9) At this point you can edit file by file in Notepad or open the project up in VS.NET in which case you'll need to go through the conversion wizard. There are a few bumps, but nothing too bad. Now you can fix a little, bulild, fix a little, build etc.. Most of the major problems if I remember correctly are * In the DataGrid test fixture you need to fix the failing tests= . * With the RepeaterTest, if I did it right, you'll need to fix the tested (ReapterTester). In RepeaterTester.ItemCount there is a mistake in the XPath expression. The current one is //*[starts-with(@id, '" + HtmlId + "__ctl')][position() =3D l= ast()] We want it to be (//*[starts-with(@id, '" + HtmlId + "__ctl')])[position() =3D = last()] notice the parentheses around //*[starts-with(@id, '" + HtmlId + "__ctl')] * There's one test, ListControlTest.TestServerSideClearSelection, whose cause of failure is evading me right now so I'm just choosing to [Ignore()] it. 10) Put the path to HTML Help Workshop directory in your PATH environment variable. For example, C:\Program Files\HTML Help Workshop 11) Now remove files you don't want copied over into the release directory. For example VS.NET Upgrade files, NUnitAspBuild.txt, etc... 12) When your satisfied with your corrections then you can run nant =96t:net-2.0 /f:../../NUnitAsp.build release The assemblies and documentation are under build/release. There you have it. Enjoy. --=20 Cheers, Aeden |
From: He S. <che...@al...> - 2006-11-17 04:48:30
|
Hi =20 FHARMACY economize more with http://tionkunhertunhadesrunhas.com =20 =20 =20 this senseless persecution He and His followers came to this world where they could worship untroubled. That is why I asked-are you unclean? Or do you also follow the Way of the Book? |
From: Crispo, V. <vin...@br...> - 2006-11-15 23:49:13
|
Hi, I'm=20running=20the=20NUnitAsp=20tests=20in=20the=20source=20directory "NUnitAspTestPages"=20and=20keep=20getting=20the=20following=20error=20whe= n=20using=20the NunitGui.=20=20However,=20If=20I=20use=20IE=20to=20open=20any=20of=20the=20= ".aspx"=20page=20in=20that directory=20I=20don't=20have=20a=20problem.=20=20Any=20ideas.=20=20=20=20 I've=20compiled=20the=20source=20code=20using=20.NET=202.0.=20and=20I'm=20= using=20Nunit=202.2.8. The=20error=20is NUnit.Extensions.Asp.Test.AspTester.DropDownListTest.ListControlTest.Tes tEnabled_True=20:=20NUnit.Extensions.Asp.HttpClient+AspServerException=20:= Server=20threw=20an=20exception: [ConfigurationErrorsException]:=20It=20is=20an=20error=20to=20use=20a=20se= ction registered=20as=20allowDefinition=3D'MachineToApplication'=20beyond=20appl= ication level.=20=20This=20error=20can=20be=20caused=20by=20a=20virtual=20director= y=20not=20being configured=20as=20an=20application=20in=20IIS.=20(C:\Documents=20and Settings\vcrispo\My Documents\UUI-Project\NET_tools\NUnitAsp\source\nunitasptestpages\web.co nfig=20line=2055) =20=20=20at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) =20=20=20at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(Configur ationSchemaErrors=20schemaErrors) =20=20=20at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey,=20Boolean=20getLkg,=20Boolean=20checkPermission,=20Boolean getRuntimeObject,=20Boolean=20requestIsHere,=20Object&=20result,=20Object&= resultRuntimeObject) =20=20=20at=20System.Configuration.BaseConfigurationRecord.GetSection(Stri= ng configKey,=20Boolean=20getLkg,=20Boolean=20checkPermission) =20=20=20at=20System.Configuration.BaseConfigurationRecord.GetSection(Stri= ng configKey) =20=20=20at=20System.Web.Configuration.RuntimeConfig.GetSectionObject(Stri= ng sectionName) =20=20=20at=20System.Web.Configuration.RuntimeConfig.GetSection(String sectionName,=20Type=20type,=20ResultsIndex=20index) =20=20=20at=20System.Web.Configuration.RuntimeConfig.get_CustomErrors() =20=20=20at System.Web.Configuration.CustomErrorsSection.GetSettings(HttpContext context,=20Boolean=20canThrow) =20=20=20at=20System.Web.HttpResponse.ReportRuntimeError(Exception=20e,=20= Boolean canThrow,=20Boolean=20localExecute) =20=20=20at=20System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest=20wr,= HttpContext=20context,=20Exception=20e) - [ConfigurationErrorsException]:=20It=20is=20an=20error=20to=20use=20a=20se= ction registered=20as=20allowDefinition=3D'MachineToApplication'=20beyond=20appl= ication level.=20=20This=20error=20can=20be=20caused=20by=20a=20virtual=20director= y=20not=20being configured=20as=20an=20application=20in=20IIS.=20(C:\Documents=20and Settings\vcrispo\My Documents\UUI-Project\NET_tools\NUnitAsp\source\nunitasptestpages\web.co nfig=20line=2079) =20=20=20at System.Web.Configuration.WebConfigurationHost.VerifyDefinitionAllowed(St ring=20configPath,=20ConfigurationAllowDefinition=20allowDefinition, ConfigurationAllowExeDefinition=20allowExeDefinition,=20IConfigErrorInfo errorInfo) =20=20=20at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUt il=20xmlUtil,=20String=20parentConfigKey,=20Boolean=20inLocation,=20String= locationSubPath,=20Boolean=20lockChildren,=20Boolean=20skipInChildApps) Thanks, Vin=20Crispo Brooks=20Software vin...@br... (801)736-3484 _____________________________________________________________________ This=20email=20message,=20including=20any=20attachments,=20may=20contain=20= confidential=20and=20proprietary=20information=20for=20the=20sole=20use=20= of=20the=20intended=20recipient.=20=20If=20you=20are=20not=20the=20intende= d=20recipient,=20you=20are=20hereby=20notified=20that=20any=20use,=20copyi= ng=20or=20dissemination=20of=20this=20message=20is=20strictly=20prohibited= .=20=20If=20you=20received=20this=20message=20in=20error,=20please=20notif= y=20Brooks=20Automation,=20Inc.=20immediately=20by=20reply=20email=20or=20= by=20calling=20Brooks=20US=20Headquarters=20at=20+1=20978-262-2400.=20Then= =20delete=20this=20message=20from=20your=20system,=20without=20making=20an= y=20copy=20or=20distribution.=20=20Thank=20you. |
From: Crispo, V. <vin...@br...> - 2006-11-14 17:57:59
|
Hi, I=20downloaded=20NUnitAsp=20and=20tried=20to=20compile=20it=20with=20Visua= l=20Studio=202005.=20I received=20an=20error=20about=20a=20Cryptographic=20Signature=20being=20ne= eded.=20So,=20I went=20to=20the=20NUnitAsp=20FAQ=20site=20and=20it=20said=20to=20build=20u= sing=20Nant.=20I=20did that=20and=20I=20got=20the=20error=20about=20"sn.exe"=20is=20there.=20Then= =20the=20FAQ=20said=20it needs=20to=20be=20built=20with=20NET=201.1. My=20question:=20Is=20there=20a=20NET=202.0=20equivalent=20to=20"sn.exe"=20= or=20do=20I=20need=20to download=20NET=201.1=20and=20build=20it=20with=20that=20and=20then=20compi= le=20in=20VS=202005. Thanks, Vin=20Crispo Brooks=20Software vin...@br... (801)736-3484 _____________________________________________________________________ This=20email=20message,=20including=20any=20attachments,=20may=20contain=20= confidential=20and=20proprietary=20information=20for=20the=20sole=20use=20= of=20the=20intended=20recipient.=20=20If=20you=20are=20not=20the=20intende= d=20recipient,=20you=20are=20hereby=20notified=20that=20any=20use,=20copyi= ng=20or=20dissemination=20of=20this=20message=20is=20strictly=20prohibited= .=20=20If=20you=20received=20this=20message=20in=20error,=20please=20notif= y=20Brooks=20Automation,=20Inc.=20immediately=20by=20reply=20email=20or=20= by=20calling=20Brooks=20US=20Headquarters=20at=20+1=20978-262-2400.=20Then= =20delete=20this=20message=20from=20your=20system,=20without=20making=20an= y=20copy=20or=20distribution.=20=20Thank=20you. |
From: Crispo, V. <vin...@br...> - 2006-11-14 16:25:55
|
Hi=20, I=20just=20tried=20to=20compile=20NUnitAsp=20directory=20with=20Nant=20and= =20NET=202.0=20with the=20directions=20on=20the=20FAQ.=20=20When=20I=20compile=20with=20Nant,=20= I=20get=20the following=20message. BUILD=20FAILED [exec]=20sn=20failed=20to=20start.=20=20 The=20system=20cannot=20find=20the=20file=20specified. Is=20there=20a=20substitute=20program=20for=20"sn.exe"=20in=20.NET=202.0=20= that=20I=20can=20point the=20DOTNETTOOLDIR=20to. Thanks, Vin=20Crispo Brooks=20Software vin...@br... (801)736-3484 _____________________________________________________________________ This=20email=20message,=20including=20any=20attachments,=20may=20contain=20= confidential=20and=20proprietary=20information=20for=20the=20sole=20use=20= of=20the=20intended=20recipient.=20=20If=20you=20are=20not=20the=20intende= d=20recipient,=20you=20are=20hereby=20notified=20that=20any=20use,=20copyi= ng=20or=20dissemination=20of=20this=20message=20is=20strictly=20prohibited= .=20=20If=20you=20received=20this=20message=20in=20error,=20please=20notif= y=20Brooks=20Automation,=20Inc.=20immediately=20by=20reply=20email=20or=20= by=20calling=20Brooks=20US=20Headquarters=20at=20+1=20978-262-2400.=20Then= =20delete=20this=20message=20from=20your=20system,=20without=20making=20an= y=20copy=20or=20distribution.=20=20Thank=20you. |
From: Jim S. <js...@ja...> - 2006-11-13 20:14:44
|
Hi, Niko, Actually, there is new documentation. It's just the samples that haven't been updated. Check out migration.html and quickstart.html in the /doc directory: "New in NUnitAsp 2.0 is the ability to work with any version of any test framework. This comes at the cost of making NUnitAsp a little more difficult to use. To maintain NUnitAsp's traditional ease-of-use, we've created an adapter file for use with NUnit. The adapter file, NUnitAdapter.cs, must be copied into your test project. It's located in the "bin" directory of the NUnitAsp download. NUnitAsp.cs provides the WebFormTestCase base class that all NUnitAsp test fixtures extend. You don't have to use NUnitAdapter.cs, but if you don't, you'll need to provide your own implementation of WebFormTestCase." Cheers, Jim Niko Wessman wrote: > Hi Jim, > > I downloaded the code from CVS and it compiled OK. But... since there is no > new documentation and samples are probable for the older version, I have to > ask by email: Is WebFormTestCase class missing from the source files or > should I inherit some other class? Samples state that WebFormTestCase should > be used. > > 1 using System; > 2 using NUnit.Framework; > 3 using NUnit.Extensions.Asp; > 4 using NUnit.Extensions.Asp.AspTester; > 5 > 6 namespace GuestBookTests > 7 { > 8 [TestFixture] > 9 public class GuestBookTest : WebFormTestCase > > But there is no WebFormTestCase class in source code. > > Regards, > Niko Wessman > >> -----Original Message----- >> From: Jim Shore [mailto:js...@ja...] >> Sent: 13. lokakuuta 2006 18:54 >> To: nik...@ns... >> Subject: Re: NUnitAsp 2.0 >> >> Sorry, I don't have a release date at this time. The code in CVS is >> release-quality--you just have to build it yourself. >> >> Cheers, >> Jim >> ___ >> Sent with SnapperMail >> www.snappermail.com >> >> ...... Original Message ....... >> On Fri, 13 Oct 2006 14:56:40 +0300 "Niko Wessman" <nik...@ns...> >> wrote: >>> Hi, >>> >>> Sorry to bother, but could you tell if you have any information when >>> NUnitAsp 2.0 would be released. >>> >>> Regards, >>> Niko Wessman >>> NSD Consulting Inc. >>> >>> >>> >>> =================================================================== >>> EASY and FREE access to your email anywhere: http://Mailreader.com/ >>> =================================================================== >>> -- 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-08-23 07:49:27
|
Hi, Sean, You can solve this problem by building from source, yes. Even better, you can get the latest code from CVS and build that. It has a number of enhancements. Cheers, Jim Sean Seefried wrote: > Hi, > > According to the NUnitAsp page you should install the NUnit that ships > with NUnitAsp which is version 2.2.0. However, there are some new > features in 2.2.8 which I want to use. I tried installing 2.2.8 but > found that when I tried to run the NUnitAsp tests I got an error that > nunit.framework could not be found. > > Is this because the NUnitAsp DLL references version 2.2.0? > Can I fix this problem by building from source? > > Thanks in advance, > > Sean > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Nunitasp-users mailing list > Nun...@li... > https://lists.sourceforge.net/lists/listinfo/nunitasp-users -- 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: Sean S. <sea...@gm...> - 2006-08-23 07:47:14
|
Hi, According to the NUnitAsp page you should install the NUnit that ships with NUnitAsp which is version 2.2.0. However, there are some new features in 2.2.8 which I want to use. I tried installing 2.2.8 but found that when I tried to run the NUnitAsp tests I got an error that nunit.framework could not be found. Is this because the NUnitAsp DLL references version 2.2.0? Can I fix this problem by building from source? Thanks in advance, Sean |
From: Tylar H. <thi...@ba...> - 2006-08-17 11:20:07
|
Hi, =20 It is common to have some problems with erecxtion,=20 Try VIfAGRA and forget about it http://www.kasedaxedunmer.com =20 =20 =20 decision is up to you. What decision? Aida could be exasperating at times. I will supply a new tachyometer. If you take it in the direction I |
From: Novak, G. <Gil...@Mo...> - 2006-08-14 19:17:41
|
Does NUnitAsp support Atlas / AJAX / DHTML ?=20 =20 I'd like to be able to do Unit Testing on a web application that utilizes these technologies. =20 Regards, Gil Novak NOTICE: This message may contain privileged or otherwise confidential = information. If you are not the intended recipient, please immediately = advise the sender by reply email and delete the message and any = attachments without using, copying or disclosing the contents. (FE01) |
From: Jim S. <js...@ja...> - 2006-08-08 19:12:40
|
Hi, Rupesh, NUnitAsp 1.5.1 does not work with ASP.NET 2.0 out of the box. You can make it work by downloading the latest code from CVS, running the tests against ASP.NET 2.0, and fixing the small handfull of test failures. Unfortunately, I do not have time to help you with this. The nunitasp-users mailing list (cc'd) might be able to help out. Cheers, Jim Rupesh Tiwari wrote: > Hello, > > > > We had a doubt whether NUnitAsp 1.5.1 works with asp.net 2.0 > > We would really be thankful. > > Its very urgent. > > > > Thanks & Regards > > Rupesh <http://www.rupesh.net.ms/> > > > > > > > > ------------------------------------------------------------------------ > *************************************************************************************************************************** > This e-mail communication and any attachments may be privileged and > confidential to Hexaware and are intended only for the > use of the recipients named above. If you are not the intended > recipient, please do not review, disclose, disseminate, > distribute or copy this e-mail and attachments. If you have received > this email in error, please delete the same alongwith > all attachments thereto and notify us immediately at > mai...@he... . > *************************************************************************************************************************** > -- 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: Gopi G <go...@tr...> - 2006-08-04 05:30:24
|
hi please do mail me whether the Page Load event can be tested using NUnitASP With Regards Gopi |
From: Gerontius L. <lo...@le...> - 2006-07-30 20:03:57
|
=20 ROjLEX CAjRTIER BVjLGARI OMjEGA BRjEITLING TIjFFANY & CO PAjTEK =20 Best prijcces online at http://www.watchkiingdis.com =20 , , , , when it was decided that only the male leaders knew of our existence. This suited the leaders to perfection. That was when the two cities were built-and the wall? |
From: Evonne A. <ang...@ge...> - 2006-07-21 20:06:25
|
Bes c t S e el e li f ng W f atc j he c s =20 R g OL u EX C v ARTIE i R BR r EIT p LIN f G B o VLG a ARI O d MEG r A P a ATE x K Ph o ilipp f e and m p any o b ther Ha l ndbag y s & P z urse q s, T v IFFAN y Y & CO Je w we j rly O x rde u r T u ODA k Y and s k ave 2 w 5 % http://mushrodomasoupa.com =20 =20 =20 The winds in the free-top, the winds in the heather; The stars are in blossom, the moon is in flower, And bright are the windows of Night in her tower. Dance all ye joyful, now dance all together! Soft is the grass, and let foot be like feather! The river is silver, the shadows are fleeting; |
From: <Dea...@jc...> - 2006-07-20 14:20:38
|
I've created a web application and I am attempting to test the business logic with nunit. When I execute a test, the following message is displayed in the output: Can't execute tests in 'Web Site' application. Does anyone know how to get this to work? Thanks, Dean |
From: Doug R. <DRi...@ww...> - 2006-07-14 16:13:12
|
We use NUnitAsp.dll version 1.5.1.2270 dated 4/12/2006 =20 with NUnit-Net-2.0 2.2.7 =20 no special compilation necessary =20 =20 You may need to modify the nunit-console.exe.config =20 =20 =20 ________________________________ From: nun...@li... [mailto:nun...@li...] On Behalf Of Owen Evans Sent: Friday, July 14, 2006 4:57 AM To: nun...@li... Subject: [Nunitasp-users] .Net 2.0 Hi All. Anyone have a precompiled version of nunitasp that works with .net 2.0? We're just porting our software from .net 1.1 to 2.0 so we really need a version of nunitasp that works with the latest version of .net at the moment we get an error: System.ArgumentNullException : Value cannot be null. Parameter name: owner for a number of our regression tests. Cheers for any help Owen Evans |
From: Owen E. <ow...@io...> - 2006-07-14 09:57:05
|
Hi All. Anyone have a precompiled version of nunitasp that works with .net 2.0? We're just porting our software from .net 1.1 to 2.0 so we really need a version of nunitasp that works with the latest version of .net at the moment we get an error: System.ArgumentNullException : Value cannot be null. Parameter name: owner for a number of our regression tests. Cheers for any help Owen Evans |
From: <Nin...@es...> - 2006-07-12 11:37:04
|
I have converted a web project to ASP 2.0, and am now cleaning up my Nunit-tests to get them to be green. I am now using MasterPage and Content pages, and have trouble to get the objects in the test-classes. =20 I found this solution to get labels and textboxes: =20 // Container representing the master page - always ID ctl00 UserControlTester masterPage =3D new UserControlTester("ctl00", CurrentWebForm); =20 // Container representing the content placeholder UserControlTester mainContent =3D new UserControlTester("MainContent", masterPage); =20 But when I try to get the linkButtons and click the linkButton.Click() in the test, I get this error: NUnit.Extensions.Asp.ParseException : 'javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$lbtnUpdateBuyer", "", true, "", "", false, true))' doesn't match expected pattern for postback in ctl00_ContentPlaceHolder1_lbtnUpdateBuyer (LinkButtonTester 'lbtnUpdateBuyer' in UserControlTester 'ContentPlaceHolder1' in UserControlTester 'ctl00' in web form 'aspnetForm') =20 I get the linkButton like this ( In CreateTesterObjects): lbtnUpdateBuyer =3D new LinkButtonTester("lbtnUpdateBuyer", mainPage); =20 It seems like the mainPage have _ as separtion, but in the source of the page, when I run the project, is $. How can I make it to set $ instead. Do anyone have a solution on this problem? =20 It works well with labels and textboxes... =20 Best regards =20 Nina Syvertsen=20 =20 |
From: <mn...@mo...> - 2006-06-28 14:13:11
|
NUnisAsp (1.5.1) seems to have trouble parsing the HTML pages I want to = test. It is the theory so far anyway. =20 When I try to click on an ImageButtonTester I get the following = exception (snippet from output): ------ Test started: Assembly: IndtastVagtoensker.dll ------ =20 Error: ### Error:No matching start tag for '</div>' =20 Referenced on line 146, position 16 of internal entity '#document' Error: ### Error in ##document, line 169, position 46: Undefined entity = 'profilType' Error: ### Error in ##document, line 174, position 435: Undefined entity = 'j' Error: ### Error in ##document, line 174, position 710: Undefined entity = 'j' Error: ### Error in ##document, line 174, position 1027: Undefined = entity 'j' Error: ### Error in ##document, line 174, position 1346: Undefined = entity 'j' Error: ### Error in ##document, line 174, position 1664: Undefined = entity 'j' Error: ### Error in ##document, line 174, position 1974: Undefined = entity 'j' Error: ### Error in ##document, line 187, position 59: Undefined entity = 'source' Error: ### Error in ##document, line 187, position 300: Undefined entity = 'source' Error: ### Error in ##document, line 187, position 541: Undefined entity = 'source' Error: ### Error in ##document, line 187, position 782: Undefined entity = 'source' Error: ### Error in ##document, line 187, position 1023: Undefined = entity 'source' Error: ### Error in ##document, line 187, position 1264: Undefined = entity 'source' TestCase 'HRPProductTest.AppointmentTests.CreateAppointmentTest' failed: page form elements=20 expected:<1> but was:<2> ved NUnit.Extensions.Asp.WebForm.get_Tag() ved NUnit.Extensions.Asp.WebForm.get_AspId() ved NUnit.Extensions.Asp.WebForm.get_Description() ved NUnit.Extensions.Asp.ControlTester.get_Description() ved NUnit.Extensions.Asp.HtmlTag.get_Description() ved NUnit.Extensions.Asp.HtmlTag.Attribute(String name) ved = NUnit.Extensions.Asp.AspTester.ImageButtonTester.Click(Int32 x, Int32 y) ved = NUnit.Extensions.Asp.AspTester.ImageButtonTester.Click() ved HRPProductTest.AppointmentTests.SetUp() i = C:\Data\src\HRP\Source\HRP-produkttest\IndtastVagtoensker\AppointmentTest= s.cs:linje 31 ved NUnit.Extensions.Asp.WebFormTestCase.BaseSetUp() =20 =20 =20 0 passed, 1 failed, 0 skipped, took 3,27 seconds. =20 =20 I have created two TextBoxTesters and assigned values to their Text = property, so some of the HTML can be parsed? Maybe my theory is wrong? =20 Now, the HTML of the page being parsed is not really for humans to read, = so I have not included it for the moment. =20 I was wondering if anybody could guide me in respect to which direction = I should look for a solution. =20 Mikkel N. Rasmussen Programm=F8r =20 Moment A/S =20 =20 Gothersgade 11 1123 K=F8benhavn K. Tlf.: 7020 1835 Fax: 3311 1088 =20 www.moment.dk <http://www.moment.dk>=20 =20 =20 |
From: Rob M. <ro...@ne...> - 2006-06-19 22:17:49
|
There is an MSI of NUnit 2.2.6 (or later) built specifically for .NET 2.0. I believe you will need to install that, first. =20 ________________________________ From: nun...@li... [mailto:nun...@li...] On Behalf Of Jonathan Clarke Sent: Monday, June 19, 2006 12:57 AM To: 'gary liang'; nun...@li... Subject: Re: [Nunitasp-users] How to use NUnit and NUnitAsp to test web app =09 =09 Hi Gary =20 I am successfully using the same environment as you. But I can't figure out what's wrong from a stack trace. Please include the page you're trying to test and the test you've written for it, and I'll see what I can do. =20 Jonathan Clarke jon...@bi... =20 =20 =09 ________________________________ From: nun...@li... [mailto:nun...@li...] On Behalf Of gary liang Sent: 19 June 2006 06:19 To: nun...@li... Subject: [Nunitasp-users] How to use NUnit and NUnitAsp to test web app =20 hi: I am using NUnit 2.2 + NUnitAsp 1.5.1 + vs 2005 (Not team edition) to test my web application. It gives me some errors: =09 = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D System.BadImageFormatException: The format of the file 'MyTest' is invalid. =09 Server stack trace:=20 at System.Reflection.Assembly.nLoad(AssemblyName fileName, String=20 =09 codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean=20 =09 throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,=20 =09 Boolean stringized, Evidence assemblySecurity, StackCrawlMark&=20 =09 stackMark) at System.Reflection.Assembly.InternalLoad(String assemblyString,=20 =09 Evidence assemblySecurity, StackCrawlMark& stackMark) at System.AppDomain.Load(String assemblyString) at NUnit.Core.TestSuiteBuilder.Load(String assemblyName) at NUnit.Core.TestSuiteBuilder.Build(String assemblyName, Int32=20 =09 assemblyKey) at NUnit.Core.RemoteTestRunner.Load(String assemblyName) at=20 =09 =09 System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessag =09 e(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean=20 =09 fExecuteInContext, Object[]& outArgs) at=20 =09 =09 System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage =09 (IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) =09 Exception rethrown at [0]:=20 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage =09 (IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke =09 (MessageData& msgData, Int32 type) at NUnit.Core.TestRunner.Load(String assemblyName) at NUnit.Util.TestDomain.Load(String assemblyFileName, String =09 testFixture) at NUnit.Util.TestDomain.Load(NUnitProject project, String=20 =09 testFixture) at NUnit.Util.TestLoader.LoadTest(String testName) = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D =09 Did anyone have the same problem? How can I fix it? Appreciate any reply =09 ________________________________ Express yourself instantly with MSN Messenger! MSN Messenger <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>=20 =09 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 =09 ______________________________________________________________________ =09 |
From: Jonathan C. <jon...@bi...> - 2006-06-19 07:56:50
|
Hi Gary I am successfully using the same environment as you. But I can't figure out what's wrong from a stack trace. Please include the page you're trying to test and the test you've written for it, and I'll see what I can do. Jonathan Clarke jon...@bi... _____ From: nun...@li... [mailto:nun...@li...] On Behalf Of gary liang Sent: 19 June 2006 06:19 To: nun...@li... Subject: [Nunitasp-users] How to use NUnit and NUnitAsp to test web app hi: I am using NUnit 2.2 + NUnitAsp 1.5.1 + vs 2005 (Not team edition) to test my web application. It gives me some errors: =========================================================== System.BadImageFormatException: The format of the file 'MyTest' is invalid. Server stack trace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.AppDomain.Load(String assemblyString) at NUnit.Core.TestSuiteBuilder.Load(String assemblyName) at NUnit.Core.TestSuiteBuilder.Build(String assemblyName, Int32 assemblyKey) at NUnit.Core.RemoteTestRunner.Load(String assemblyName) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessag e(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage (IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage (IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (MessageData& msgData, Int32 type) at NUnit.Core.TestRunner.Load(String assemblyName) at NUnit.Util.TestDomain.Load(String assemblyFileName, String testFixture) at NUnit.Util.TestDomain.Load(NUnitProject project, String testFixture) at NUnit.Util.TestLoader.LoadTest(String testName) ========================================================= Did anyone have the same problem? How can I fix it? Appreciate any reply _____ Express yourself instantly with MSN Messenger! MSN <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/> Messenger |
From: gary l. <fig...@ho...> - 2006-06-19 05:18:36
|
=0A= =0A= =0A= =0A= hi:I am using NUnit 2.2 + NUnitAsp 1.5.1 + vs 2005 (Not team= edition) to test my web application. It gives me some errors:=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3DSystem.BadImageFormatException: The format of the file 'MyTe= st' is invalid.Server stack trace: at System.Reflection.Assembly.nLoad(A= ssemblyName fileName, String codeBase, Boolean isStringized, Evidence assem= blySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawl= Mark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName = assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark&= stackMark) at System.Reflection.Assembly.InternalLoad(String assemblyStr= ing, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.AppD= omain.Load(String assemblyString) at NUnit.Core.TestSuiteBuilder.Load(Str= ing assemblyName) at NUnit.Core.TestSuiteBuilder.Build(String assemblyNam= e, Int32 assemblyKey) at NUnit.Core.RemoteTestRunner.Load(String assembly= Name) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProces= sMessage(MethodBase mb, Object[] args, Object server, Int32 methodPtr, Bool= ean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Mess= aging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Bo= olean fExecuteInContext)Exception rethrown at [0]: at System.Runtime.Rem= oting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMs= g) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData= & msgData, Int32 type) at NUnit.Core.TestRunner.Load(String assemblyName)= at NUnit.Util.TestDomain.Load(String assemblyFileName, String testFixtur= e) at NUnit.Util.TestDomain.Load(NUnitProject project, String testFixture= ) at NUnit.Util.TestLoader.LoadTest(String testName)=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= Did anyone have the same problem? How can I fix it?Appreciate any reply _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/= |
From: Jim S. <js...@ti...> - 2006-06-10 00:45:20
|
You can also create a MasterPageTester, have it extend from AspControlTester, and have it set its own ID to "ct100." NUnitAsp is designed to be extended in this way. Cheers, Jim Eddie Sheffield wrote: > Hi, > New subscriber, but I was looking at the discussion about master pages > in the archive and had the same problem. I have a solution that seems to > work. You can use UserControlTesters to "wrap" the master page and the > content place holder(s). For example, if you have a master page and a > content place holder called "MainContent" then you can use: > > // Container representing the master page - always ID ctl00 > UserControlTester masterPage = > new UserControlTester("ctl00", CurrentWebForm); > > // Container representing the content placeholder > UserControlTester mainContent = > new UserControlTester("MainContent", masterPage); > > Then use the masterPage as the container for testing items directly in > the master page and the mainContent as the container for testing items > in the content place holder. > > I haven't tried it, but I think you should be able to extend the idea to > nested master pages and multiple content place holders. > > HTH! > -- 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 |