Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Exract the data from windows forms( table) using QTP
posted

I want my Script to extract the data from  swftable, however I don’t have the add-in for infragistics. When I record with normal recording mode and I click , I get something like this

WpfWindow("testscripts Gateway | Acute Care").SwfObject("sheets").SwfTable("_gridInternal").SelectRow "0;1" 

 But I believe in table I have two objects

1)      First is the header for each section  for which I can use GetCelldata and it works, so if do a rowcount I get the rowcount for the headers I have in my table

2)      Second is the bands in each section for which I need to extract the data, and it looks like I can’t extract the data from those bands which are available in each section

Is there a way to extract the data from those bands that are available in those bands.

WindowsForms10.Window.8.app.0 ( Version)

Parents
No Data
Reply
  • 53790
    posted

    Hello Ashish,

    I`m not sure that I understand your scenario, so could you please provide us more details

    ashish_1977 said:
    I want my Script to extract the data from  swftable, however I don’t have the add-in for infragistics

    Do you have installed TestAdvantage  for  HP . What you your current verion of TestAdvantage and NetAdvantage. What if your version of your HP QTP ?

    If you want to extarct the Cell`s data you could used for example:

    SwfWindow("Form1").SwfTable("ultraGrid1").ActivateRow "0;0;0"
    SwfWindow("Form1").SwfTable("ultraGrid1").SelectRow "0;0;0"
    SwfWindow("Form1").SwfTable("ultraGrid1").GetCellData "0;0;1"

    Please let me know if you think that I misunderstood your scenario or if you have any questions.

    Regards

     

Children