Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. NUnit Test Case Not Working with Asp Page

NUnit Test Case Not Working with Asp Page

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-nettutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 4510968
    wrote on last edited by
    #1

    Hi friends, i have created test case for checking the visibility and enable/disable functionality in a form.This works fine with the asp.net pages and controls my current project is with asp and the controls are html controls so the id attribute is missing. whenever i run the test it says NUnit.Extensions.Asp.WebAssertionException : couldn't find web form's 'id' attribute so can anyone tell me how to check the above mentioned functionality for html controls. Thanks In Advance, Praveen

    C N 2 Replies Last reply
    0
    • U User 4510968

      Hi friends, i have created test case for checking the visibility and enable/disable functionality in a form.This works fine with the asp.net pages and controls my current project is with asp and the controls are html controls so the id attribute is missing. whenever i run the test it says NUnit.Extensions.Asp.WebAssertionException : couldn't find web form's 'id' attribute so can anyone tell me how to check the above mentioned functionality for html controls. Thanks In Advance, Praveen

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Add an id to the controls ? Or if it's using server controls, you're out of luck.

      Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

      1 Reply Last reply
      0
      • U User 4510968

        Hi friends, i have created test case for checking the visibility and enable/disable functionality in a form.This works fine with the asp.net pages and controls my current project is with asp and the controls are html controls so the id attribute is missing. whenever i run the test it says NUnit.Extensions.Asp.WebAssertionException : couldn't find web form's 'id' attribute so can anyone tell me how to check the above mentioned functionality for html controls. Thanks In Advance, Praveen

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Classical ASP ? I don't think NUnit can be used to test it.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups