| || |
Using QTP 9.5 to test .Net business logic
my company is intending to build a new app that uses .Net and C# and will be 3 tier.
the project is in its very early stages, and all that exists at the moment is a very basic 'mock up' app, with basically only 2 windows - a login window and a 'main' window
and this app is nothing like what the 'real' app will actually look like - it's been built for the purposes of a 'proof of concept' for the technology
anyway, I wanted to try to get a headstart on test automation for this app
so far I've worked out that QTP 9.5 seems to recognise windows and controls quite successfully in the 'mock up' app, once you install the .Net and WPF add-ins
it seemed to me that the next logical step is to try business logic testing on this technology using QTP 9.5.
the way I see it is as follows - we'll have a .Net app that will have:
- a UI layer
- a business logic layer
- a data layer
my understanding is that the way to build the business logic layer is to encapsulate discrete business rules in .Net components. You would then write your automated tests so that they test these .Net 'business logic' components directly, rather than test business rules via the UI. Doing it in this way means you can test business rules independently of the UI, and so don't need to change automated business logic test scripts when the UI changes.
so in order to try out the sort of business rule testing I'm talking about using QTP 9.5, I thought I would try to download a simple sample 3 tier app from the web that uses .Net and C#, and then try writing a QTP script that interacts directly with the business logic layer (just to see how this is done, and what opportunities/challenges may present themselves).
however I can't seem to find much information on this area, nor can I seem to find a sample application of the type I'm talking about above
I'm hoping people here will be able to give me some advice
thank you all
Re: Using QTP 9.5 to test .Net business logic
been away for 2 weeks; just checking back for any responses to my post - I see there are none [img]/images/graemlins/smile.gif[/img]
anyway, in talking to a test manager friend of mine, he tells me that QTP is basically a UI tool - ie, any automated scripts created with QTP must necessarily interact with the UI - you can't develop QTP scripts that will directly test the business logic layer (and bypass the UI).
from what I know of QTP, I believe my friend is correct - but does anyone else have any comment on this?