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 Posted / rajaputra

Hi,
USE THIS,

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

Run and see the runtime datatable

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1619


www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

1726


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3050


What are the automation metrice in your project?

1709


Explain the concept of object repository?

524






What are the things(properties, and other details) will be recorded while recording an object using normal recording?

1487


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

1673


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

615


tell me abt a time when u had to go above &beyind the call of duty to get the job done

1438


What are the different recording modes and how do they work?

612


Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!

1747


can the activities of test case design be automated?

1450


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3006


What is QTP and the use of QTP in TD?

594


How can you identify the browser and its information using the qtp script?

579