I am trying to get code coverage of my GUI automated tests. In my application there are two main .exe. One exe is GUI exe and other is the businees logic exe. Getting the coverage for GUI exe was straight forward as i add the module (GUI.exe) in the tool and run the tests and i get coverage for all the functions in GUI csharp files. But when i try to measure the coverage for business logic and add that exe in the module and run the tests i am unable to get it as the businees logic exe is calling all the csharp files in the businees logic code through dependency injection. So then i am trying to add the DLL's linked to the business logic exe and trying to get the coverage result but unable to do it.Here is what i am doing:
1.Start my businees logic and GUI exe's.
2.Open AQtime, add one DLL of business logic to one instance AQtime.
3.Select RUn>attach to process and in that select the business logic exe and then select OK.
4.RUn my tests and hit the get results under run in AQtime.
I am able to see the functions in the sharp files showing up in the report but 0% coverage for everything. I did with other Dll's linked to the business logic but i am not getting it for anything.
Could you please help me:
1.Do i need to add one dll with one instance of AQtime. Or should i add all DLL's used with the business logic exe in one AQtime instance and measure it?
2.Is there a different way to measure coverage of the DLL's associated witht the exe called through the dependency injection?
Regards, Alex [Community Expert Group] ____ [Community Expert Group] members are not employed by SmartBear Software but are just volunteers who have some experience with the tools by SmartBear Software and a desire to help others. Postings made by [Community Expert Group] members may differ from the official policies of SmartBear Software and should be treated as the own private opinion of their authors and under no circumstances as an official answer from SmartBear Software. [Community Expert Group] signature is used with permission by SmartBear Software. http://smartbear.com/forums/f83/t86934/community-experts/ ================================