473,385 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

NUnitAsp System.InvalidOperationException Error

Sir,

I am new to the Nunit,nunitasp i am gettin an error as
"System.InvalidOperationException: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;
  4.  
  5. using MyMathProject;
  6. using MyWebApp;
  7.  
  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]
  20.  
  21.     public class Class1: NUnit.Extensions.Asp.WebFormTestCase
  22.     {
  23.  
  24.  
  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.         } 
  35.  
  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.     }
  45.  
  46. }
  47.  
Dec 7 '05 #1
0 2368

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

Similar topics

0
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...
0
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...
5
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?
5
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...
0
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...
2
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...
3
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...
0
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...
0
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.