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

  • 相关阅读:
    Unity在协程内部停止协程自身后代码执行问题
    unity如何停止不用字符串方式开启协程的方法
    解决导入protobuf源代码Unity报错的问题
    FastCGI模式编译安装LAMP+Xcache
    Apache配置防盗链
    Apache配置日志切割
    Apache配置参数的优化
    Apache三种工作模式详解
    隐藏Nginx、Apache、PHP的版本号
    配置Apache控制浏览器端的缓存的有效期
  • 原文地址:https://www.cnblogs.com/ellie-test/p/3314413.html
Copyright © 2011-2022 走看看