Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Framework
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi

I am very new in QTP and I am gonig to start with QTP from the next week in my company.... It will be very convenient for me if I get the answer on the following Question ASAP....

1. Say I have 50 Test Cases for Login Page, How I will manage it in QTP? I mean shall I have to write 50 Functions in a single Test....,OR I have to make 50 different Tests....How this type of conditions managed in Real Life projects....

Regards - Ronit
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Before Automating Any Scenario ,Automater need to analyze the test cases.Analyzing the scenario will help to understand the fact that how many scripts,functions are required.

In General best practise is to focus on:

  1. Reusablity of Code
  2. Less Maintanance
  3. Easy to Understand

~Regards
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi All ,
The above best practise could be explained as :
1)Reusablity of Code : To find the extent of reusability ,you should know the manual functionality throughly and the filter out the common functional flow .Create reusable actions --> use call to copy of the action wherever those are repeatable and modify them accordingly .

2)Less Maintanance : Descriptive programme is a good option for this.Try to fetch the dynamic values through Datatables.

3)Easy to Understand: Follow proper identation together with naming conventions e.g : string variable with str ,integers with int so on

Please let me know if u need more details .

Regards
Punam
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Mostly, the approach should be Functional + Data Driven ie Hybrid Framework. But deciding how the framework should be designed depends on the application and the flows you have.

The first thing. Analyze all the test cases and then come up with what all business flows you have. Try to see if there are any reusable flows.

For example: suppose you have 3 test cases.
1) Login and create order and logout.
2) Login and search order and modify order and logout.
3) Login and search order and delete order and logout.

So here you can identify that Login, Logout and Search Order are reusable flows.

Once this is done. You can try creating the framework. Your entire framework, data sheet structure etc will be based on this only.

As of now you can start with 1 TC for each of the 20 workflows(I'm assuming that these workflows are test cases with multiple smaller flows.

Steps to write framework:
1) Write the full flow in the test case. Hard-code all data values as of now.
2) If there are any reusable flows in the test case, create functions for those and save it in function library and call from there.
3) Now write the code which will take the data from data sheets.
4) For the sake of simplicity, you can have 1 excel workbook with 20 sheets. Each sheet for each test case.
5) This way create the first test case as per the framework.
6) Add all the error handling mechanism and all other required things to the same test case.
7) Now you will have 1 TC which is written as per your framework.
8) Once 1 TC is finished, you can follow the above process only to create other test cases as per the framework.

You can also check the attached eBook on QTP Framework Basics.

Note: Please make sure you contribute to the forum on regular basis before posting links to 3rd party sites. For new members, this forum software will automatically mark all posts as spam which contain link to other sites.


Attached Files
.pdf   qtp-framework-pdf-ebook.pdf (Size: 705.84 KB / Downloads: 354)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  .Net Framework 4.0 application crashes after opening QTP 11 Deepa William 0 2,554 08-29-2013, 06:01 PM
Last Post: Deepa William
  QTP Keyword driven framework leema 2 4,238 06-16-2012, 07:25 PM
Last Post: nikhilcogni
  Automation of CCF(customer care framework) using QTP omkarsingh 1 2,408 05-24-2012, 04:23 PM
Last Post: Ankur
  Commonly used QTP Framework and Concepts sidmakol 1 7,448 07-23-2009, 10:36 AM
Last Post: balakrish
  Framework while integrating QTP with HPQC priyankab1311 0 3,264 12-01-2008, 09:41 AM
Last Post: priyankab1311

Forum Jump:


Users browsing this thread: 1 Guest(s)