| || |
How to use single instance of application in Unit
I am currently working on Unit testing in TestComplete.
I am combining functional test with Unit test using Nunit franework, in order to pass on initial objects required for unit testing.
Now when functional test is run, application is launched and login happens. After that a Unit test is written in Nunnit to execute a function.
While executing this unit test, nunit is trying to create another instance of application.
How can I configure the Unit test or TestComplete that uses the exiting instance of application.
Kindly send any suggestions asap.
Thanks in advance.
Shrirang Vaze, QA Lead
First Insight Software
Re: How to use single instance of application in Unit
The NUnit support in TestComplete is just running the NUnit projects and parsing their results to include them to the current TestComplete test log. The behavior you are facing is the standard NUnit behavior and we cannot change it.
However, please note that if you want to call specific routines within the tested application process, you can do this via the AppDomain Object of the tested process.