Basics of QTP (Quick Test Professional)
QTP is broadly/maximum popularly used Functional/Regression Test automation software. It was once evolved through Mercury Interactive and bought through HP.
But anyway, we want to do right kind software analysis ahead of deciding on QTP for automating trying out of our utility.
Since QTP can reinforce exterior add-ins, it may be used for lots of other packages.
Some add-ins (e.g ActiveX, VisualBasic,Web) are integrated with QTP, and a few different add-ins (e.g Java, .internet, TE (termial emulator))are exterior add-ins.
We can load handiest the desired add-ins when opening the QTP IDE. So it’s going to be useful to toughen the execution pace.
QTP will reinforce Keyword Driven and Data Driven trying out. We can create our personal check automation framework additionally according to our personal necessities for check automation.
It is essential to know how QTP works. Because it’s going to lend a hand to be told some other function in QTP simply. And additionally it’s going to lend a hand to design an efficient automation framework and likewise it lend a hand to unravel any factor confronted all through automation script construction and likewise all through script execution.
I will be able to give an explanation for it as under,
All we all know that each check case must have Test Steps and Expected Results.
As QTP is used for executing those check circumstances, QTP additionally must have means for dealing with each Test Steps and Expected Results.
Handling Test Steps way QTP must be able to navigating any trail/web page in any web site or in any instrument utility.
So, for doing this QTP must be capable of acknowledge any keep watch over/object in any utility/webpage. For spotting the thing, it must know the houses of the ones gadgets previously. It is accomplished through storing the houses of the gadgets in a centralized position referred to as Object Repository.
While working the check script, the gadgets within the utility are known/identified through evaluating the houses of them with the houses saved within the Object Repository. By doing this execution of Test Steps turns into imaginable.
QTP is having Datatables (very similar to Excel sheet) for supporting execution for more than one iterations of identical steps with other knowledge. For instance, think that we want to execute two check circumstances, one for logging right into a web site the usage of UPPER case username and every other check case for logging right into a web site the usage of decrease case username.
For executing those two check circumstances, the stairs will likely be identical. The handiest distinction is within the check knowledge.
It may also be simply executed in QTP through hanging those enter usernames in Datatable and make the Script to execute it two instances.
Next, we want to take into accounts dealing with Expected Results. The function of trying out is evaluating the Actual end result with the predefined Expected Results. It is accomplished through the usage of Checkpoints.
There are many checkpoints to be had in QTP. They are, Standard Checkpoint,Text Checkpoint, Bitmap Checkpoint, Database Checkpoint, accessibility Checkpoint and XML Checkpoint.
Actually QTP can be utilized merely as Record and Play kind software for automation of straightforward steps on easy packages. But it must be broadly utilized by writing person explained purposes and lots of different options to get extra take pleasure in it.
QTP isn’t the usage of any Proprietary Script. It makes use of recurrently to be had VBscript. So writing script will likely be easy. And additionally, vbscript is recurrently utilized in many puts akin to Web construction (ASP), and in home windows management works. So we will be able to simply in finding lot of already to be had user-defined purposes and lend a hand articles within the Internet.
And additionally, QTP helps COM type. i-e Any strategies and houses of any COM primarily based utility may also be simply accessed from QTP. For instance IE(Internet Explorer) and Excel Objects may also be created inside QTP script. It is acceptable for QTP itself.
i-e Object of QTP itself may also be created and treated. It is referred to as Automation Object Model.
Basically QTP is a practical/Regression trying out software. But it may be not directly used for trying out efficiency additionally. (i-e QTP scripts may also be be known as from efficiency trying out software “Load Runner”). And additionally, QTP is having restricted efficiency trying out choices akin to get started and finish transactions which will likely be useful to seek out execution time for explicit block of steps.
QTP may also be carefully built-in with the Test Management Tool Quality Center (QC). QC may also be successfully used to run QTP scripts in more than one far flung machines to finish execution of many check scripts in much less time.
The person pleasant IDE which has Keyword view, Expert view, Datatable, Active display screen, object repository editor/supervisor,step generator, serve as generator,object spotlight function, intellisense, restoration state of affairs supervisor, replace run function and easy Test/Action dealing with options makes the Script developer/execution paintings simple. The IDE is built-in with helpful gear akin to ObjectSecret agent. The IDE has usual construction options akin to Debug.