Regression testing framework in QTP
QTP is the best tool for regression testing.
First of all you must know what is regression testing and how it will be helpful to your project, regression testing is nothing but repetition of the test cycle again and again whenever new bug fixing or new functionality is added to project. So thus you can test your product and can find new bug easily in minimum amount of time.
I am going to give you example of regression testing framework and its development procedure which will be very much helpful for you in context to regression testing using qtp.
Regression testing framework development procedure:
1. Embed your one test case to different sub procedure. For e.g
–recorded script 1–
–recorded script 2–
2. Now save all above test case scripts in VBS file.
You can do so by going, File->New->Function Library and then paste all test case script here and save it in VBS format.
3. Now call sub procedure from your main qtp test project file. For e.g.
For i=0 to 100
In above case test cycle will be repeated by 100 times. You can change it according to your needs.
4. Now last but not the least, don’t forget to attach vbs file to your qtp test project.
Go to File->setting and the resource tab, than add vbs file by clicking on “+” sign and click ok.
So this is the simple regression frame work that you can implement for your project.
You can also develop regression frame work in vb script according to your project requirement.
You are always welcome to share your experience on this post regression testing framework in qtp.