Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data tables
#1
Not Solved
Hi, Can some one give me an idea to resolve below issue.

I am trying to create a test that will create multiple orders with different Materials. I am able to create multiple orders but with only one material. I am using a data table within QTP and pulling the data to create the orders, but when I add another Material to the table it make it another line item in the order. I have tried SetCellData and GetCellData in QTP with no success.
Reply
#2
Not Solved
Hi You mean the result should be as:
----------------------
Orders Materials
----------------------
Order1 Material1
<BlankSpace> Material2

Order2 Material3
<BlankSpace> Material4
<BlankSpace> Material5
----------------------

If this is the case, then you should specify the cell as
'when pushing data to Datatable:
Code:
k=1
DataTable.GetSheet("SheetName").SetCurrentrow=k
DataTable("Orders","SheetName")=Order1
DataTable("Materials","SheetName")=Material1
k=k+1
'When pulling data from dataTable:
DataTable.GetSheet("SheetName").SetCurrentrow=k         ' specify required row here
getOrder=DataTable("Orders","SheetName")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  XML input data validation with data in oracle tables using webservice smtripathi99 0 2,406 12-11-2012, 01:32 PM
Last Post: smtripathi99
  How to identify HTML tables developed with DIV and SPAN tags as 'WEBTABLE'? bell.ramesh 1 4,270 08-20-2012, 11:07 AM
Last Post: Victor~
  validation tables and column in a oracle database ajayr1982 0 2,684 04-20-2011, 10:04 AM
Last Post: ajayr1982
  2 Database tables comparission in Excel prasadsbrk 2 2,828 08-14-2009, 08:14 AM
Last Post: prasadsbrk
  How to rerieve data from .xls & compare with data in data table test71 6 6,563 03-10-2008, 04:55 PM
Last Post: test71

Forum Jump:


Users browsing this thread: 2 Guest(s)