GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 663 of 674    Print  
Fetch Data From Specific Column
How to fetch data from the specific column in the data grid? How will standard check point help to capture data?


  
Total Answers and Comments: 1 Last Update: July 24, 2009     Asked by: sandy kiran 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: akothuru
 

Standard check point will only verifies the Webtable object property values and is not possible to use check points to verify the cell value from WebTable.

Use WebTable object GetCellData method to retrieve the cell value and then use if condition to verify the value. It only the way, you can verify the cell value of the webtable.

E.g.
varCellData = Browser().Page().WenTable().GetCellData(1,1) 'row, col
If varCellData = "Desired Value" Then
   Repoerter.ReportEvent micPass, "Cell data verification is passed", "Pass"z
Else
   Repoerter.ReportEvent micFail, "Cell data verification is failed.  Expected value: 'Desired Value' and Actual value: " & varCellData, "Fail"
End If



Above answer was rated as good by the following members:
needy
July 24, 2009 08:06:03   #1  
akothuru Member Since: April 2008   Contribution: 49    

RE: Fetch Data From Specific Column

Standard check point will only verifies the Webtable object property values and is not possible to use check points to verify the cell value from WebTable.

Use WebTable object GetCellData method to retrieve the cell value and then use if condition to verify the value. It only the way you can verify the cell value of the webtable.

E.g.
varCellData Browser().Page().WenTable().GetCellData(1 1) 'row col
If varCellData "Desired Value" Then
Repoerter.ReportEvent micPass "Cell data verification is passed" "Pass"z
Else
Repoerter.ReportEvent micFail "Cell data verification is failed. Expected value: 'Desired Value' and Actual value: " & varCellData "Fail"
End If


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Hi I am new to load testing .Currently i am using Load runner 8.2. i have recorded a script for login screen with some UID/PWD.In load runner Controller i have selected 100 Vusers,and i the run script.My question is :1.)Is the same script runs 100 times for same UID/PWD what i have entered during Recording.2.)If my data base contains only 50 users.Selecting 100 Vusers is a valid case?.3.)If i have selected 100 Vusers,is it necessary to enter 100 UID/PWD.Regards,vivek
Read Answers (8) | Asked by : vivek

In the mortgage business certain activity must take place within a specific number of business days from the loan origination date. The purpose of this assignment is to develop a function that will calculate the business date ‘x’ number of days from a specific start date. For example: 10 Business days from August 25th, 2003 is September 8th, 2003.This function is to have a two input parameters, consisting of the start date in the format mm/dd/yyyy and the number of days to advance.

I am testing an application that sends certain data to users. How do i check that the user will not receive excess data. I mean I can go in and sign in as the user and insert a standard checkpoint...but that only checks the data integrity, it does not check if the user received excess data. Please help..any suggestions are welcomed
Read Answers (2) | Asked by : Raj

View Question | Asked by : p_senthil

How can we program using QTP to generate a text file which has data inside in a particular format which also needs to be programmed using QTP ?
Read Answers (1) | Asked by : ashish

Can anybody tell me the purpose of output checkpoints in QTP. how u r testing the text data through text checkpoints. how u r testing text data in the webpage through parameterization. my application is web based application. my requirement is i am retriving the data from the database to webpage. i put text checkpoint on the text, but problem is the parameterization. can anybody help me with code. i will appreciate if anybody can say
Read Answers (4) | Asked by : manoj_k3

Hi Friends i have one question i.e How to pass the data perameters from Test Director to QTPgive me answer with step by step if there is any script send answer plz
View Question | Asked by : kratnakar10

How to write QTP script to exit from loop? suppose I am using parametize functionality and in data table there is 3 password corresponding 3 username and second pasword is wrong. Now I want to exit after completion of second iteration and continue with third iteration.
Read Answers (3) | Asked by : Ravi kumar

Hi I am new to QTP Automation. Can anyone define a process or code to convert Excel data into xml format using QTP....thanks in advanceSatya

How can you capture clipboard data. Before that I want to cleanup the existing contents of clipboard & then proceed.
Read Answers (4) | Asked by : dsharma


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving Typed Data

ODP NET Retrieving Typed Data While retrieving values from OracleDataReader we can extract information available in individual columns of a particular row either by using column ordinal position values or column names mosgoogle Retrieving Typed Data Using Ordinals ODP NET provides data specific enum
 

ODP.NET - Retrieving Data Using OracleDataReader

ODP NET Retrieving Data Using OracleDataReader OracleDataReader is simply a read only and forward only result set It works only if the database connection is open and it makes sure that the connection is open while you are retrieving data As the data that it retrieves is read only it is a bit faster
 

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape