zoukankan      html  css  js  c++  java
  • Advanved DataGrid using QTP

    Use the GetCellData(j,i) Function for Cell data

    and

    Use the GetRowData(j) Function for Row Data

    where “j” and “i” are Row and Column values respectively.

    AUTOMATION SCRIPTS

    Dim cellData,columnCount,rowData
    cellData =0
    columnCount=0
    rowData=0

    columnCount=Browser(“Browser”).FlexApplication(“Yuri181756138″).FlexPanel(“AdvancedDataGrid Control”).FlexAdvancedDataGrid(“myADG”).GetROProperty(“columnCount”)

    rowCount=Browser(“Browser”).FlexApplication(“Yuri181756138″).FlexPanel(“AdvancedDataGrid Control”).FlexAdvancedDataGrid(“myADG”).GetROProperty(“rowCount”)
    print “Total Nuber of Collumns”
    print columnCount
    print “Total Nuber of Rows”
    print rowCount

    For j=0 to rowCount-1
    rowData=Browser(“Browser”).FlexApplication(“Yuri181756138″).FlexPanel(“AdvancedDataGrid Control”).FlexAdvancedDataGrid(“myADG”).GetRowData(j)
    print “Current Row : “&j & ” Row Data : “&rowData

    For i=0 to columnCount-1

    x=(j)*columnCount+(i)
    cellData=Browser(“Browser”).FlexApplication(“Yuri181756138″).FlexPanel(“AdvancedDataGrid Control”).FlexAdvancedDataGrid(“myADG”).GetCellData(j,i)
    set AatName=Browser(“Browser”).FlexApplication(“Yuri181756138″).FlexPanel(“AdvancedDataGrid Control”).FlexAdvancedDataGrid(“myADG”).GetAutomationChildAt(x)
    print “Current cell : “&i
    print “Cell Data : “&cellData
    id1=AatName.getROProperty(“automationvalue”)
    id3=AatName.getROProperty(“automationindex”)
    print “Automation Index  : “&id3
    print “Automation Value : “&id1

    Next
    Next

  • 相关阅读:
    Interleaving String
    Binary Tree Inorder Traversal
    Unique Binary Search Trees II
    Unique Binary Search Trees
    .Net(C#)访问X509证书加密的Webservice(六)--WSE 2来订制web service
    UpdatePanel控件
    在InfoPath中如何获取user profle
    Sharepoint Webpart 自定义属性
    Sharepoint 服务端对象模型增加项到文档库
    从Sharepoint的List中获取不重复的item
  • 原文地址:https://www.cnblogs.com/ellie-test/p/3314413.html
Copyright © 2011-2022 走看看