QTP bypass UI/automate appserver business logic
My company is intending to rewrite an existing app that uses web client .Net appserver and DB backend.
The project is in its very early stages, and will go through a period basic requirements validation. This may or may not involve a functional prototype.
I wanted to try to get a jumpstart on test automation for this application.
I know we have the ability to record/playback and script the controls within the current web application.
We want to try and bypass the UI as it will not be complete and to try business logic testing on this technology using QTP 9.5.
the way I see it is as follows - we'll have a web app that will have:
- a web UI layer
- a .NET business logic layer
- a data layer
- backend DB component
my understanding is that the way to build the business logic layer is to encapsulate discrete business rules in .Net components.
We would like to write our automated tests so that they test these .Net 'business logic' components directly and emulate calls to the .NET appserver, rather than test business rules via the UI.
Doing it in this way means you can test business rules and calculations independently of the UI, and so don't need to change automated business logic test scripts when the UI changes.
I can't seem to find much information on this area. Does anyone have any advice?
Re: QTP bypass UI/automate appserver business logic
Greg if you have UI design docs/screen shots you can develop scripts in DP that would be close to the actual scripts required.
Ive used the method you describe before but it involved creating a quite complex test harness in VB.Net that injected SOAP messages into the system. The messages were created in QTP which then "drove" the .Net harness. The returned XML was then interrogated in QTP for the correct response.