473,890 Members | 5,224 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NUnitAsp System.InvalidO perationExcepti on Error

1 New Member

I am new to the Nunit,nunitasp i am gettin an error as
"System.Invalid OperationExcept ion:the specified node cannot be inserted as the valid child of this node, because the specified node is the wrong type"
i have used nunit.framework ,nunitasp as references ,but when i am using txt1.tex="asdf" , then i am getting can u plz send the reply as soon as possible

Expand|Select|Wrap|Line Numbers
  1.  ****************** 
  2. using System;
  3. using System.Web;
  5. using MyMathProject;
  6. using MyWebApp;
  8. using NUnit.Extensions;
  9. using NUnit.Extensions.Asp;
  10. using NUnit.Extensions.Asp.AspTester ;
  11. using NUnit.Extensions.Asp.HtmlTester;
  12. namespace MyMathProjectTest
  13. {
  14.     /// <summary>
  15.     /// Summary description for Class1.
  16.     /// </summary>
  17.     /// 
  18.     using NUnit.Framework;
  19.     [TestFixture]
  21.     public class Class1: NUnit.Extensions.Asp.WebFormTestCase
  22.     {
  25.         public Class1()
  26.         {
  27.             //
  28.             // TODO: Add constructor logic here
  29.             //
  30.         }
  31.         [Test] public void Subtract() 
  32.         { 
  33.              //Assert.AreEqual(1.1, MyMathProject.MySimpleMath.Subtract(2.2, 1.1), "Subtraction failed"); 
  34.         } 
  36.         [Test] public void formLayout()
  37.         {
  38.             NUnit.Extensions.Asp.AspTester.TextBoxTester txt1 = new TextBoxTester("TextBox1", CurrentWebForm); 
  39.             TextBoxTester txt2 = new TextBoxTester("TextBox2", CurrentWebForm); 
  40.             ButtonTester but1 = new ButtonTester("Button1", CurrentWebForm); 
  41.             Browser.GetPage("http://localhost/MyWebApp/Custtest.aspx");
  42.             txt1.Text="asdf";
  43.         }
  44.     }
  46. }
Dec 7 '05 #1
0 2420

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
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...
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?
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was having a problem in the calling program. I searched online and found suggestions that I return an Array instead so I modified my code (below) to return an Array instead of an ArrayList. Now I get the message when I try to run just my webservice...
by: nicomp | last post by:
I created a Web Service: I imported System.Data.SqlClient so I could access SQL server tables programmatically. The web service builds and deploys with no problems. When I try to add the corresponding Web Reference to the Web Site project I get the error listed below. I am able to create other Web Services on the same server and I am able to add Web Referneces to them. I have narrowed it down to the "Imports System.Data.SqlClient"...
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...
by: Joseph Geretz | last post by:
System.InvalidOperationException: WebServiceBindingAttribute is required on proxy classes. My environment: Visual Studio 2005, targeting FX 2.0; I've developed a Web Service which uses DIME to transfer file attachments to and from the server. I'm using WSE 2.0 SP3 which is supposed to support FX 2.0, as far as I know. (We will soon move on to MTOM, however I'm stuck with DIME for now; the solution was originally written for FX 1.1, and I...
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. *...
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.
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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...
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...
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...
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...
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();...
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
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.