QATTS Technical Docs
2.0.0 Main
2.0.0 Main
  • QATTS Product Documentation
  • Getting Started
    • About QATTS
      • A Quick Tour of QATTS
      • Terminology
      • Relationship
    • Dashboard
  • Getting to know
  • Administration
    • Product
      • How to Add Product
      • Configure Test Data Repository
    • Code Branch
      • How to Add Code Branch
    • Feature
    • Client
      • How to Add Client
    • Deployment
      • How to Add Deployment
      • Database Config
      • Email Config
    • Node
      • Streaming Configuration
      • How to register node for streaming
      • Status And Actions
    • Agent
    • User
    • Role
  • Studio
    • UI Elements
      • text_box
        • Properties Library
        • Trouble Shoot
      • loader
        • Trouble Shoot
      • date
      • button
      • drop_down
        • Trouble Shoot
        • Properties Library
      • label
      • check_box
      • radio_button
      • link
      • Shadow
      • Trouble Shoot
      • Properties Library
      • Pre and Post Actions
      • table
        • Example
        • Trouble Shoot
      • form
      • toogle_button
      • file
      • alert
  • Automation
    • Objects
      • UI Element
        • Drop Down
        • Radio Button
        • Multi Elements
        • table
        • form
      • Product Element
        • Advanced Data Types
          • QIntegerArray
          • QStringArray
          • QArray
          • QData
        • Basic Data Types
      • API
      • Query
      • Smarty
        • Excel: Read data from excel
        • File: Reads file Data
        • EmailRead
        • EmailSend
        • SiteScan
        • PDF Utils
      • New Group
    • Test Case
    • Function
    • Data Table
  • Execution
    • Test Case
      • Clients Summary
      • Search and Manage
      • Context Parameters
      • Details by Functionality
        • Sync
    • Test Suite
      • Create Suite
    • Test Run
      • Schedule Test Run
      • Untitled
    • Test Result
      • Results by Clients
      • Results by Fuctionality
    • Build No
    • Reports
      • All Failed Test Cases
      • Recently Failed Test Cases
  • Others
    • Milestone
  • Settings
    • Builds
    • Milestone
  • Site Scan
  • Using QATTS
    • Guide to API Automation
      • Adding API
      • Request
      • Response
        • Writing Response Schema
    • Guide to Web Automation
      • Performing Web Automation
    • Guide to setup agent-service
  • Advanced Data Types
    • QData
  • Methods
  • Standard Actions Methods
    • Execute Methods
  • UI Action Methods
    • extractGroup
  • File Action Methods
  • UI Element Advanced
  • UI Checks
  • Extraction Rules
  • Assertion Operations
  • Error Codes : Automation
  • Error Code: Execution
  • JSpreadSheetUtil Methods
  • Functions
    • Primitive
      • CONCATENATE
    • Date & Time
    • Text
  • Other Information
    • FAQ
    • Troubleshooting
      • UI Methods
Powered by GitBook
On this page

Was this helpful?

  1. Automation
  2. Objects
  3. Product Element
  4. Advanced Data Types

QArray

Methods

  • void addItem(QData qData)

  • QData removeAt(int index)

  • boolean remove(QData qData)

  • QData getItemAt(int index)

  • QData getItemByKey(String keyValue)

  • QData getItem(String matchDataName,Object matchObj)

  • QData getItem(String matchDataName,String operator,Object matchObj)

  • QArray getItems(String matchDataName,Object matchObj)

  • QArray getItems(String matchDataName,String operator,Object matchObj)

  • QStringArray findMatchingItemStr(String matchDataName,QStringArray keyArray,String targetDataName)

  • QIntegerArray findMatchingItemInt(String matchDataName,QStringArray keyArray,String targetDataName)

  • QArray filterData(String inExp)

Filter Data is used to extract data with an expression.

Some examples:

Expression
Description

1,4,6

Returns 1st, 4th & 6th objects

1-3,5-7,10

Returns 1,2,3,5,6,7 & 10

ItemA,ItemB

Retuns key matching, ItemA, ItemB

Note: if the item in given position or with matching key, exception will be thrown.

  • boolean hasItemWithKey(String keyValue)

  • Integer getSize()

  • boolean isEmpty()

  • String toJson()

  • String toJson(String keyName)

  • QData toQData(String keyName,String valueName)

  • void invokeDataModifiers(TFStepContext tfStepContext,TFProductElement tfProductElement)

  • boolean doAssert(TFStepContext tfStepContext,String fieldName,QArray targetList)

  • double sum(String sumDataName)

  • double sumIf(String matchDataName,Object matchObj,String sumDataName)

PreviousQStringArrayNextQData

Last updated 2 years ago

Was this helpful?