ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How will you send values to a cell in a webtable using QTP?
 Question Submitted By :: Karthi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How will you send values to a cell in a webtable using QTP?
Answer
# 1
Using 
setcelldata(row,Col,"Data")
 
Is This Answer Correct ?    3 Yes 3 No
Rayudu
 
  Re: How will you send values to a cell in a webtable using QTP?
Answer
# 2
For WebTable object, you can retreive the cell data but 
can't set any value directly.

To retreive data.
val = Browser().Page().WebTable().GetCellData(row,column)

To set the value.
If you want to set any value on cell, you can do it on its 
child objects.
So make sure what is the child object of that cell i.e. 
either WebEdit or WebCheckBox or WebRadioButton etc...

Using the method, you can set the value to that child objet.

Using ChildItem method, you can fetch the child object of 
the cell.
Browser().Page().WebTable().ChildItem
(row,col,ChildObjClassname,index of the child 
object).Set "abcd"

or 

Set ChildObj = Browser().Page().WebTable().ChildItem
(row,col,ChildObjClassname,index of the child object)
ChildObj.Set "abcd"

E.g.
Set ChildObj = Browser("ab").Page("cd").WebTable
("de").ChildItem(row,col,WebEdit,0)
ChildObj.Set "abcd"

If the cell has more than multiple similar child objects, 
then you need to take care of the object index.
 
Is This Answer Correct ?    3 Yes 0 No
Amarendra Kothuru
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
how u track bugs using Test director in manual testing. Accenture2
How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!  4
when we right click on the desktop of any operating system we find a menu , consisting of refresh,edit,open,paste and cut etc... how to load the object and object properties of that menu in QTP iFlex2
Diff between Test Stratergy and Test Plan? Diff b/w Test design ansd test case design?  1
How QTP recognizes Objects in AUT? Blue-Star5
How to export QTP results to an ".xls" file?  3
How u call functions in QTP Function to calculate the length of characters in a word -  4
When should u feel that u can stop testing now? The following are few of the common Test Stop criteria:  2
tell me types of environment variables? what r they? explain details? pls give anwer any one? IBM2
describe some problem that u had with automation testing tool?  3
I want to see all the properties of agent name in login window. I will use the script Set a=Window("FR").WinEdit("Agent Name:").Gettoproperties( ) msgbox but my question is how to use the msgbox if i use a it will display only a, so anyone pls let me know how to get the display of all the properties using GetToProperties () or GetRoProperties (). Thanks a lot  4
I have to do testing for XML file using QTP. 1. I was given a sample XML, I had to edit that with my actual data and had to make a new XML-- this part is completed, I did that. 2. Now I have to copy the exact contents of that XML file and have to paste it in a web application as a request message for web appliaction processing, using QTP. So I am unable to copy and paste it in web application, please help me out.  1
how to invoke the web application through script in qtp Synechron5
How to "Turn Off" QTP results after running a Script?  2
I have a WebEdit Object.It is added in object repository.It has two properties Name and Index.In the next release the Name Property is same but the index property is changed.when i run the script will the script Pass or Fail ADP6
I m new to QTP? Is it necessary to know VB for learning QTP for Automation? Can I understand QTP excellently Without practical automation?  2
how to write testcases for web based insurance,from the script by using qtp.  1
Please explain me i am using QTP 9.5 ,i am creating re usable scripts,i have to pass data from one local sheet to another local sheet.for example i am creating emploee information, (data is in action 2 local sheet),In this data table emplyeee number will get,i have to pass employee number to another reusable script search data (action2 local data sheet)  2
what is the use of VIRTUAL OBJECTS? explain ? TCS10
How can we QTP Scripts in xml format? is there any way to do so? Apex2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com