Вы находитесь на странице: 1из 11

7/12/13

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

Software Testing Help Software Testing Complete Guide

Search

Freshers Jobs/2013 BE/MCA


laqsh.com/Certified_By_IIIT-B Enroll for Software Testing + Java Android ,Big Data Analytics

Microsoft Excel
Office365.com/Excel Access Excel Across Devices with Office 365. Learn More Today.

SDC 2013
www.snia.org/storagedeveloper Storage Developer Conference Santa Clara, CA, 9/16/13 - 9/19/13

Google AdWords India


AdWords.google.com Connect With Potential Customers When They're Searching For You!

QTP Tutorial #14 How to Add Bitmap and Text Checkpoints in QTP Tests QTP Tutorial #16 Steps to Insert XML, Accessibility, and Database Checkpoints

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP
Posted In | Automation Testing, QTP Tutorials In the last article, we were discussing the ways in which QTP can compare text. We also saw how standard checkpoint can be used to check text and discussed the text checkpoint in detail. The next checkpoint is Text area checkpoint. Lets begin exploring it. Note We have aggregated links to all these QTP training tutorials on this first QTP tutorial.

Text area checkpoint:


This is used for windows applications. Compares a text string within a defined area according to the criteria specified. Defining the properties for this checkpoint is almost the same as that for a text checkpoint. The only dominant difference between Text checkpoint and a Text Area checkpoints apart from the environments, is that text checkpoint works on a certain object and text area works on a region selected. Though the menu option for text area checkpoint is available even while recording a web app, when chosen it is going to throw you an error that the web environment is unsupported for this checkpoint.

Table checkpoint:
It can be used in cases when you need to verify that a particular cell in a table has a certain value or in some cases if the table itself has the defined number of rows of columns. When a web table or an equivalent table object is chosen to insert a checkpoint on, Table checkpoint properties get invoked. As a menu option, you choose Standard Checkpoint while recording. So the ground rules like creation, editing and maintaining are all the same. Let us look at an example: I will pick a random site that has a web table. Open in internet explorer. Start recording, insert checkpoint->Standard checkpoint and choose the table object in the web page:

Select the Web Table element and click OK.

www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/

1/11

7/12/13

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

In the properties window, select the cell and specify if a constant value has to be there or parameterize. In the settings tab, the way in which the verification has to be carried out.

Cell identification, this tab is where the user has the settings to identify a particular row or column.

www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/

2/11

7/12/13

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

As I said earlier, since this is a variation of standard checkpoint all the same rules apply. Although, this in-built feature is available for checking tables I dont find it very useful. There are other functions like GetRowCount, GetColumnCount, GetRowItem etc. to verify the tables. Let me explain that a little bit more before we move on. In practical scenarios checking just one cell might not suffice and creating a single checkpoint for each value in the table might get cumbersome. Eg: If a table is 3X3 then to check each cell, we will see 9 checkpoints. If the value in the second or first cell itself does not match, it does not signal an inconsistent table which kind of defeats the purpose and results in unnecessary continuation of checking the other cells. Instead by reading the table and using GetRowCount, GetColumnCount, GetRowItem functions you can establish a looping mechanism and check as needed and exit on failure. Only consideration for a tester at this point would be to make sure that he writes appropriate test results so that there is clarity. Also, table checkpoint fails in case of dynamic tables.

Page Checkpoint:
Page checkpoint is another variation of a standard checkpoint, which as the name indicates comes up when created on a Web Page. It can be used for the following: 1. Checking links 2. Sources of images 3. Check for broken links Let us place one and see how it works and what it can do as we proceed. Open Google.com in internet explorer or any browser compatible with the current version of QTP you have on your machine. Record a new test in QTP, Select Insert Checkpoint->Standard checkpoint and point it to the google.com page. Then select the Web Page object from the object list displayed. The following dialog gets displayed:

www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/

3/11

7/12/13

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

As you can see, the parameters that can be checked are in the list and proceeded with a checkbox with a check option. The users can choose number of properties as required. As it is the case with all the other checkpoints we have seen so far, each of these properties can be a constant value or the user can parameterize. Next section is the HTML verification: - HTML source: Checks if the HTML code for the web page matches the actual one at run time. The user has an option to modify it as required while creating a checkpoint and check if it matches at run time. - HTML tags: Checks the HTML tags for the web page at record and run times. As with HTML source, HTML tags can be modified too. All Objects in the page section: a) Links: On checking this, all the links are verified. To check only certain links the Filter Link Check can be clicked and the following dialog appears:

www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/

4/11

7/12/13

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

You can select the links or unselect them. The link URL value again can be a constant or a parameterized value. b) Images: Checking this ON means that you can verify the presence of the images on the page at run time. On clicking Filter Image Check the user can select the exact images that are to be checked and the ones that has to be ignored. The following tab gets displayed when the user chooses to Filter:

As usual, the user can configure the values. c) Broken Links: This option is not usually ON by default and on checking it ON, it verifies if there are any broken links in the web page. The user can check for broken links that are only for the same host as of the parent page. The relevant option has to be set in the following screen that can be launched by using Tools->Options->Web menu option.

www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/

5/11

7/12/13

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

Once this checkpoint is run all the failures, if any will be displayed the Test Results. Otherwise the checkpoint passes. Some of the Page Checkpoint options are available only when the checkpoint is created during recording. If you try to create them from Active screen or Keyword view, the HTML verification options wont be available. To summarize the page checkpoint: 1) Useful in the web add-in while checking pages. Checks for the integrity of the pages 2) A variation of a standard checkpoint, so all the rules of creation, editing and maintaining are the same. 3) QTP can be instructed to put a checkpoint on every page. This can be done by choosing Tools->Options->Web->Advanced from the menu and clicking the option ON:

4) Alternately, you can instruct QTP to bypass automatic checkpoints. Select the following option in the same window that we launch in point 3.

www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/

6/11

7/12/13

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

That leaves us with Accessibility, Database and XML checkpoint which will be the topics for the next session. Please post your comments and questions.

9
Share 3

Tw eet

QTP Scripting QTP Software Testing QTP Test Automation

Further Reading: QTP Tutorial #14 How to Add Bitmap and Text Checkpoints in QTP Tests QTP Tutorial #12 Expert View, Step Generator and Checkpoints Explained with Example QTP Tutorial #13 Steps to Insert Standard and Image Checkpoint in QTP Tests QTP Tutorial #7 QTPs Object Identification Paradigm How QTP Identify Objects Uniquely? QTP Tutorial #3 Adding Standard Steps From Keyword View

6 comments
#1 Swati on 05.02.13 at 4:46 am I need QTP 10.0 software, Can anybody please help #2 word unusual on 05.02.13 at 6:01 am Thank you for creating this site. I am a beginner at testing and learning your materials are great for me! The language is easy to read and your real-time examples help out big time. #3 Abhishek Kadam on 05.08.13 at 12:55 am Great Job ! Nice article ! #4 Manmohan Pandey on 05.14.13 at 10:36 am Nice Article.I need your help as im looking to automate Web GUI(Fields, Fonts, colors, location, size) pages and need to create a GUI automation framwork, please publish any article explaining GUI automation through QTP.
www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/ 7/11

7/12/13

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

#5 Hitesh Siroya on 05.17.13 at 6:11 am Very Nice explanation. Anyone could help my system have win7 + IE10. Which QTP version supports it? Is there any add-on to to install with QTP 9.2 or 10 to support this env? Thanks in advance. #6 Swati on 05.26.13 at 10:00 pm @Hitesh: You can install the latest version of QTP on your machine. To record a web application QTP does not support IE10. You will have to have an older version. But this will not stop you from having QTP on your machine.

Leave a Comment
Name Mail Website (Optional) Notify me of new posts by email.

Submit

Software Testing eBook


Learn Software Testing Fast - Guaranteed! Click here for more details.

SQL Tutorial Programming Tutorial QTP Training

FREE eBook + UPDATES!


Download Manual Testing FREE eBook & Join over 64,500 Software Testers!
Enter Your Email

JOIN & GET IT NOW!


I will never spam you!

Or Subscribe via RSS


www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/ 8/11

7/12/13

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

Trending Topics
QTP Tutorials 25+ HP QuickTest Professional (QTP) Training Tutorials 2,847 views How to write effective Test cases, procedures and definitions 2,538 views Sample Test Case Template with Examples [Download] 2,084 views Types of software Testing 1,632 view 180+ Sample Test Cases for Testing Web and Desktop Applications Comprehensive Testing Checklist 1,619 view HP Quality Center Installation Guide Learn QC (Day 2) 1,601 view Smoke testing and sanity testing Quick and simple differences 1,365 view 20 Simple Questions to Check Your Software Testing Basic Knowledge [Online Quiz] 1,328 view 101+ Manual and Automation Software Testing Interview Questions and Answers 1,274 view ISTQB Testing Certification Sample Question Papers With Answers 1,244 view
Crucial Memory for Mac

Don't go bobbing for Apples. Get the right memory for your Mac. Crucial Memory for Mac Lead and halogen-free technology Increased Mac performance Shop now ad

START HERE!
Home PREMIUM eBook FREE eBook Testing DOWNLOADS Testing ARTICLES Write for Us Contact Us Testing FORUM QTP Tutorials Quality Center Give Us Feedback! FREE Newsletter

Add to Google+ Circle!

www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/

9/11

7/12/13
Follow

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

+2,556

Follow @VijayShinde

Like Us On Facebook

Latest Articles!
How to Form an Effective Test Team CSQA Certification Sample Questions with Answers and More Tips Part 2 CSQA Certification Preparation Guide Part 1 4 Essential Features that Test Management Tools Should Have HP Quality Center Tutorial (Day 7) Project Analysis Using the Powerful Dashboard Tools

Categories
Select Category

Ask Your Questions!

ISTQB Study Guide

FREE QTP Training

Search

www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/

10/11

7/12/13

QTP Tutorial #15 Using Text Area, Table, and Page Checkpoints in QTP Software Testing Help

About us | Sitemap | Contact us | Find Jobs | Directory | Advertise All articles are copyrighted and can not be reproduced without permission.

2007 - 2013 Software Testing Help Read our Copyright Policy | Privacy Policy | Link to Us

www.softwaretestinghelp.com/qtp-tutorial-15-text-area-table-page-checkpoints/

11/11

Вам также может понравиться