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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
Hi friend 
I have query regarding QTP datatable.
I want to insert data in datatable during runtime.

suppose i wrote

datatble.value(1) = "Test data"

so when i run the script it says column(1) doesn't exist.

Then i write something in column A1 manualy and run the 
script again.

Now it works fine.

Pls clarify how i can put value in blank cell of datatable.
 Question Submitted By :: Rajdhiman2005
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.
Answer
# 1
first of all u have to change the column name.
i.e., double click on A and run the program.

got it.
 
Is This Answer Correct ?    3 Yes 0 No
Arun Singh
 
  Re: Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.
Answer
# 2
try putting datatable.value(2.1)="Test data". I have the 
same prob...trying to resolve this the same way. will let u 
know once done.
 
Is This Answer Correct ?    2 Yes 0 No
Mercy
 
 
 
  Re: Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.
Answer
# 3
Hi,
USE THIS,

datatable.getsheet(1).addparameter"Test",""
datatable(1,1)="Test Data"

Run and see the runtime datatable
 
Is This Answer Correct ?    2 Yes 0 No
Rajaputra
 
  Re: Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.
Answer
# 4
Before inserting value in the cell, first we need to create 
column by using "addparameter" then we can insert value in 
that column.
 
Is This Answer Correct ?    1 Yes 1 No
Siraj
 
  Re: Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.
Answer
# 5
DataTable.GetSheet(1).AddParameter "Test",""
datatable(3,1)="Data Test1"
DataTable.SetNextRow
DataTable(3,1)="Data Test2"
 
Is This Answer Correct ?    5 Yes 0 No
Medena
 
  Re: Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.
Answer
# 6
I use this to fill the column with some values
 
Is This Answer Correct ?    4 Yes 0 No
Medena
 
  Re: Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.
Answer
# 7
By using Ouput Values concept we can insert in datatable 
during runtime. but we can see the value only in Test 
result,select runtime table in left side of he test results
 
Is This Answer Correct ?    1 Yes 1 No
Rajasekaran
 
  Re: Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.
Answer
# 8
=======
DataTable(ParameterID [, SheetID]) =NewValue This is what 
is specified in data table help.

That means you should use:

DataTable.SetCurrentRow(1)
DataTable(1,dtGlobalSheet) = "Test" ...If you are to insert 
data in the first row and first column of global sheet.

I am using the same...n it's working..
 
Is This Answer Correct ?    4 Yes 0 No
Sameer
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
in how many ways you perform batchtesting? Sapient2
How many types of Actions are there in QTP?  3
Hi, i am mallishwari, i am veryn ew to testing but i have very much interest in testing. plse give me some guidence to get the job in testing. send me required documents and faqs to my personal id: mallishwari_urs@yahoo.co.in thans for advance.  2
How to map the test cases to requirements in QC? IBM2
How to get the column count and column name from the resultset in the database connection program? TCS3
what is purpose of automation?  2
What is the method for maximize the application while we using Decriptive programming in QTP?  2
Are You using any frame work? What is that? Explain about that. Wipro4
1. In build1 there is a page with two check boxes and a submit button. You have prepared a script for that page and its working fine. In Build 2 the developers have added two checkboxes in the page. Will the script prepared for Build 1 work for Build 2 or not. If yes, why and if No, why. Remember the developers have not touched the object properties of the textboxes in the page. ADP2
What is the extension of 'Log file' in QTP  2
How do u retrieve data from a text file into different variables. i.e. in a text file named "source" , the data is like : india,1000,japan,200,china,50,singapore,45050 this is given in the first line of the text file. in the second line of the text file the dta is: sun,moon,planet,river,earth,water if u use "readline" method by using FSO concept u can retrieve the entire line in to a variable. but i want to import each field (ex: "india" in one variable, "1000" in another variable etc..). Apprecitae proper replies. Semantic-Space4
what is the difference between Reusable action and external action? HCL1
tell me the script for envirnment value parameeter with an example. which situation envirnment valu parameter is used HCL1
w is recovery senario manager Infosys3
How to create frame work for qtp? Polaris1
what testing activities u may want to automate?  2
why was automation used in the project? Google1
How you handles Pop-up windows which are Dynamically changing in Runtime?  2
hi all, I have installed QTP successfully on windows vista. I am able to record and run on windows applications, but facing problem with web applications. While recording, I am able to open the web application, but when I click on any object or give login name and password, the events are not getting recorded in QTP. Could anyone solve the problem. Any settings to be done for web applications other than selecting web-addin? Waiting for replies. Thanks in advance.  2
How to connect to oracle(sqlserver) database to QTP CTS3
 
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