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. Smarty

Excel: Read data from excel

Reads data from an excel sheet and gives output as QArray or QData based on config

Param Name

Param Desc

Default Value

fileName

Location & Name of the file

Assume that file is in the Agent Data Folder

sheetName

Excel Sheet from which data must be read

Mandatory Field

dataElementName

Name of the Product Element defining the data structure

Valid Prodcut Element with data type QData

dataType

Represent the type of data that you are reading. Select one of the options. [multiRow, keyValue]

No Default

firstRow

Starting row from where the data must be read. For example if the data start from first row, give 1. Remember to match with the row no in excel

1

endRow

Ends reading when the excel row no is greater then given endRow value

Number. Optional.

Will read until the end of the row if endRow is not given

firstColumn

Starting column from where the data must be read. For example, if the data start from column A, give 1

1

firstRowHasColumnHeaders

When true smarty will read column names from the first row of the excel. All the column names must be defined a product elements. When false, it will take column names from the columnNames property. if a column name is not defined as product element, that column will be skipped from reading

false

columnNames

Column name will be mapped to the product elements. Specify column names separated with comma

No default

keyColumnName

Specify keyColumnName if data is represented with single field. This is very helpful when doing find on the row on QArray

toClipBoard

Copy's data to system clip board

Boolean. True/ False

Default is false

adjustColumnData.batch[Number]:[columnName] Column procesing is done based on batch no sequence

1) Converting String with delimiter to QStringArray

Expression to use:

convertTo:delimiter.[Delimiter String/Char]:dest.[Dest Element Name]

Predefined Delimiters:

comma

dot

hash

hyphen

Custom Delimiter: must be defined in square brackets. Some examples:

delimiter.[and] word and is delimiter

delimiter.[break by] word break by is delimiter

delimiter.['] character single quote is delimiter

2) Moving Another column data as child object

Expression to use:

moveAsChild:keyName.[Child Column Name]:keyValue.[Child Column Data]

Optional. Define for columns that need adjustment

PreviousSmartyNextFile: Reads file Data

Last updated 3 years ago

Was this helpful?