Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to assign multiple rows to data table in runtime.
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
When I am testing a peice of functionality , the output is an XML with multiple rows in it. I want to assing each row to the data table at runtime, but when i run the program, my run time data table is getting only the first record in XML where as the XML has 100s of records.

how can i get multiple records onto data table

thanks for the help.
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi Geeth,

Can you pls share the code that you have developed, so that we can give our inputs easly?
Thanks,
SUpputuri
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
Here is the code

Code:
Set getLostRevenueLeads = WebService("EnergyRecoveryLeadService").getLostRevenueLeads(XMLWarehouse("getLostRevenueLeads"))
WebService("EnergyRecoveryLeadService").Output CheckPoint("getLostRevenueLeads_4")



I have given the expected XML
Code:
<getLostRevenueLeadsResponse>
  <getLostRevenueLeads xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://lead.wsdl.energyrecovery.pgn.com">
    <energyRecoveryLeadResp xmlns="">
      <energyRecoveryLeads>
        <score>0</score>
        <leadType>String</leadType>
        <leadDate>2009-08-20T10:29:11.8203834-07:00</leadDate>
        <leadType_code>String</leadType_code>
        <customerCode>0</customerCode>
        <premiseCode>String</premiseCode>
        <customerName>
          <lastName>String</lastName>
        </customerName>
        <address>
          <addressLine1>String</addressLine1>
        </address>
        <stockCode>String</stockCode>
        <meterId>String</meterId>
        <phase>String</phase>
        <accountStatus>String</accountStatus>
      </energyRecoveryLeads>
    </energyRecoveryLeadResp>
  </getLostRevenueLeads>
</getLostRevenueLeadsResponse>

-----------------------------------------

But the web service is returning number of similar nodes, how to capture them in the data table?
Reply
#4
Solved: 10 Years, 8 Months, 4 Weeks ago
DataTable.Import "XMLFilename"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Select checkbox from data table value jayraocourts 0 1,055 11-01-2019, 10:25 PM
Last Post: jayraocourts
  How to Delete Rows with duplicate values in 1 columns in excel thru QTP. arpan 0 2,596 02-09-2015, 08:47 PM
Last Post: arpan
  How to get center data value in a odd number of rows and columns web table ... sai rajesh 0 2,608 11-13-2013, 10:24 PM
Last Post: sai rajesh
  DP is not returning the whole table data content soumen 6 4,734 10-02-2013, 12:05 PM
Last Post: vvcyril
  Data table overwrite the value wajahatawan561 2 4,250 06-25-2013, 03:24 PM
Last Post: ssvali

Forum Jump:


Users browsing this thread: 1 Guest(s)