Announcement

Collapse
No announcement yet.

Component Testing Tool

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Component Testing Tool

    Hi,

    I am planning component level testing for some WinPowerBasic apps and I was wondering if there were any tools available for it (akin to NUnit etc etc)

    Thanks in Advance.

    Regards,

    Ahmad

  • #2
    I don't understand how closely the ~unit application interacts with the unit under test, does it get compiled in? Could you use Cunit, as PB can "do" C calling conventions?

    Comment


    • #3
      Component Testing Tool

      Normally the tester writes a tester .Net dll (containing lots of testcases) that references the .net dll under test. The tester .Net dll is then loaded into an NUnit session and run, with each testcase either passing or failiing.

      1. Is it possible to create a .Net dll using Powerbasic (I know its possible to produce a normal windows dll)?
      2. I want to test a windows service written in Powerbasic. I may need to seperate the business logic and dump that into a .net dll (and test that using NUnit), leaving the windows service as a 'facade' to the .net dll. However I would like to avoid such a convoluted process and directly test the Windows Service. Is that possible?

      Comment


      • #4
        Originally posted by Ahmad Zaman View Post
        Normally the tester writes a tester .Net dll
        Ahmad - you are still going way over my head - could you explain a bit or maybe post a link or two? Some of us could be very interested in technology to make PB testing faster and/or more thorough!

        Comment


        • #5
          Component Testing Tool

          If you don't understand me then that suggests you lack understanding of some core technologies (apologies if that sounds 'demeaning' - it wasn't meant to be). The simplest way of explaning myself is by uploading a simple C#.Net example - you'll have a better understanding when you actually see the technology architecture and workflow

          Comment


          • #6
            Originally posted by Ahmad Zaman View Post
            ...you lack understanding of some core technologies...
            you surmise correctly. Thanks for your suggestion.

            Comment


            • #7
              In that case if you provide me with a location, I'll upload an example

              Comment


              • #8
                Though an email address would be equally effective

                Comment


                • #9
                  The PowerBASIC Windows compilers only generate Win32 EXE and DLLs. You may need a third party solution, although it is quite easy to call a Win32 DLL directly from .NET.
                  kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

                  Comment

                  Working...
                  X