473,699 Members | 2,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NUnitAsp and custom controls and pages

Hi,

I want to start unit testing my ASP.NET applications with NUnitAsp. But
all my applications are written with the help of custom page and server
control classes (They all inherit from core classes though. For example
CustomTextBox inherits from TextBox).

So the question is this - how do I proceed with testing my apps? Do I
need to write my own custom testers? Or should I just test against
simple core controls (TextBox, ListBox, RadioButton), even though in
reality they are complicated composite controls (AddressEdit,
PhoneEdit)?

Thank you in advance,
Sasha

Nov 19 '05 #1
1 1230
In general, a custom tester object will make the job easier -
particularly if the control is reused on a number of forms /
applications.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 26 Jun 2005 14:44:05 -0700, "Sasha" <os******@gmail .com> wrote:
Hi,

I want to start unit testing my ASP.NET applications with NUnitAsp. But
all my applications are written with the help of custom page and server
control classes (They all inherit from core classes though. For example
CustomTextBo x inherits from TextBox).

So the question is this - how do I proceed with testing my apps? Do I
need to write my own custom testers? Or should I just test against
simple core controls (TextBox, ListBox, RadioButton), even though in
reality they are complicated composite controls (AddressEdit,
PhoneEdit)?

Thank you in advance,
Sasha


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1355
by: Nick Zdunic | last post by:
Hi, I've been using NUnitASP and found that it reaches it's limits very quickly. It has problems with parsing certain pages and raises errors for these when perhaps it shouldn't. Another downside is that it only supports the out of the box Microsoft controls. The people who are producing NUnitASP haven't been able to create another release for almost a year now. I was thinking how an impetus good be given to them to improve it and...
0
1110
by: Carlton858 | last post by:
I have turned off the annyomous access on my ASP.Net web application and not set access using NT groups. That works great, except now none of my NUnitASP tests work - everything fails with access denied errors. I have read this article (http://home.iprimus.com.au/lachlanb/nunitasp/nunit.html) and followed the directions in the "Security" section, but was running into some difficulties. I was wondering if anyone had experience passing...
1
1914
by: Novice | last post by:
Hey all, I have finally managed to create a Custom WebControl and am using a technique from another programmer to maintain state between pages - I would just like to validate this idea. Basically I have created a Custom Web Control that is capable of generating multiple webpages. It actually only creates one webpage, but hides Panels (that contain the web controls - TextBox's, Labels, etc) to give the impression that the user is...
5
2208
by: Patrick.O.Ige | last post by:
I came across NunitASP is it good to use and what are the advantages or disadvantages Any advice?
2
1370
by: Nate | last post by:
All, I have started using NUnitASP to write test cases for an ASP.NET application. It works great, but some of the assertions that need to be made depend on values stored in the Session. The problem is that NUnitASP basically acts as a client to webforms and simply abstracts the HTML emitted by the various ASP.NET pages and has no access to the Session or even HttpContext.Current for that matter (its completely detached from the...
1
2178
by: Abdo Haji-Ali | last post by:
Previously I used to create user controls if I wanted to use a specific set of controls in multiple pages, however I want to deploy my control in other applications so I thought of creating custom controls. Only problem is that I'm used to designing my controls in a WYSIWYG (tm) way (i.e. using the designer and writing HTML tags). The only way I found to create custom controls was to create controls dynamically, set their properties and...
0
1866
by: Ambica | last post by:
I am using Nunitasp for testing .aspx pages.While running the test case in the GUI the following error occurs: NUnit.Extensions.Asp.DoctypeDtdException : Problems with DOCTYPE DTD: <The remote server returned an error: (407) Proxy Authentication Required.>. Your DOCTYPE is probably incorrect. If you're not sure what the DOCTYPE should be, use <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >, Visual Studio .NET's default. *...
0
1763
by: raju | last post by:
Hai, I am new to NUnitASP. I learend NUnitASP from the website. When i used NUnitASP in my sample application, i got the error as "type webformtestcase" is not defined", when i am creating the class, which is inherited from this class. I went through some website, and knew that, i have to copy the NunitAdapter.cs file into my sample application.
0
9171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.