Skip to content

Infragistics Community Forum / Test Automation For Micro Focus Uft Windows Forms / Exract the data from windows forms( table) using QTP

Exract the data from windows forms( table) using QTP

New Discussion
ashish
ashish asked on Jun 27, 2012 6:33 AM

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)

Sign In to post a reply

Replies

  • 0
    Georgi
    Georgi answered on Jun 20, 2012 7:24 AM

    Hello Ashish,

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

    [quote user="ashish_1977"]I want my Script to extract the data from  swftable, however I don’t have the add-in for infragistics[/quote]

    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

     

    • 0
      Georgi
      Georgi answered on Jun 22, 2012 7:58 AM

      Hello,

      Have you been able to resolve your issue ?  If you still have any concerns or questions I will be glad to help. If you need any additional assistance don’t hesitate to ask.

      Regards

    • 0
      ashish
      ashish answered on Jun 22, 2012 4:30 PM

      I have installed Test Advantage 2010 vol 3, there is no NetAdvantage on my system. My version for QTP is 11.

      Right now my main problem is to extra the data from the table which are build using infragistics.

      The code you have given me gives me sysntax error as it looks like just expecting only two arguments like .

      GetCellData 0,0

      • 0
        Georgi
        Georgi answered on Jun 25, 2012 6:46 AM

        Hello ashish,

        Could you please tell me what is the version of assemblies that you are using in your Application Under Test (AUT) ?

        [quote user="ashish_1977"] The code you have given me gives me sysntax error as it looks like just expecting only two arguments like . GetCellData 0,0 [/quote] 

        Please note that this method accept different parameters depending of your case (for example if you have GroupByRows). If you are using flat UltraGrid, than you should set only two parameters (row and column).,

        Let me know if you have any questions.

         

      • 0
        Georgi
        Georgi answered on Jun 27, 2012 6:33 AM

        Hello ashish,

        If you have any further questions, feel free to write us

        Regards

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
ashish
Favorites
0
Replies
5
Created On
Jun 27, 2012
Last Post
13 years, 8 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Jun 27, 2012 6:33 AM

Last activity on

Jun 27, 2012 6:33 AM