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. Accessing and Instantiating page classes

Accessing and Instantiating page classes

Scheduled Pinned Locked Moved ASP.NET
csharpai-testingtestingbeta-testinghelp
1 Posts 1 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.
  • B Offline
    B Offline
    bbp33
    wrote on last edited by
    #1

    I'm trying to write an automated testing harness for a large web application ( ASP .NET 2.0 ). I want to create a page within this application that will let the user choose from a list of all the web pages of the application ( listed by their page class names ) and then run the testing harness on the selected page class. What I want the test harness to do, is basically loop through all the controls of the page and run pre-determined checks and tests on each control based on its control type (I.E. check if maxlength of textbox is set, etc. ). I'm encountering two major problems. First, I cannot figure out a way to get at a list of all the page classes of my web application. Second, once I can actually create an object of a page class, I cannot initialize the object with all of the usual controls, thus, I can't run any tests on it. Does anyone know how I can solve either of these two issues? Any help would be greatly appreciated. -Peter

    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