Forum Discussion

DKumar04's avatar
DKumar04
Contributor
6 years ago
Solved

Can I use any unit testing framework like NUnit so that I can use attributes like before/after test?

This is for desktop application automation
  • tristaanogre's avatar
    tristaanogre
    6 years ago

    Just note:

    Natively, there are no "attributes" like exists in NUnit.  TestComplete is not, natively, a unit testing tool.  It is a UI driven functional testing tool that allows you to write code to do so.  So, any "attribute" implementation you'll have to write your own custom code to simulate the NUnit framework... the framework, itself, does NOT exist in TestComplete so you'll have to, basically, "reinvent the wheel" to implement it in TestComplete.

     

    I would recommened building a framework of your own, potentially borrowing from what NUnit does, but you don't need to go quite as far as the Unit Testing framework does.