• Rellie's raison d’être

    Rellie’s raison d’être Narelle has started her own blog!

  • SourceForge.net: Project Info - NUnitAsp Code Generator

    SourceForge.net: Project Info - NUnitAsp Code Generator: “A tool to generate source code test classes for NUnitAsp from web pages (via a URL) or by analysing .aspx pages” The source code is now in its own SF project!

  • NUnitAsp Code Generation

    Last Thursday I was out visiting the e-business team at Mawson Lakes campus. I was showing them how to use NUnit and NUnitAsp for automated unit testing. As I was setting up a test for NUnitAsp, I noticed how repetitive it was to:

    1. Browse the web page
    2. Find the control
    3. View the source to see the control’s id.
    4. Add a variable declaration to the test class.
    5. Add a variable assignment/initialise to the SetUp method for the variable
    6. Back to step 2

    I wondered if this could be automated a bit to make it quicker to set up the test classes for NUnitAsp. Not wanting to reinvent the wheel, I joined the developer list for NUnitAsp, and asked the other subscribers if anyone had done this before. No one said they had, but a couple replied saying they’d be interested in the results. So I whipped up a first-effort that you can download here. It still needs a bit of cleaning up, and I’m thinking it might be useful to make it work as a Visual Studio AddIn too, but it does work ok.