QATTS Technical Docs
1.0.0 Prev
1.0.0 Prev
  • QATTS Product Documentation
  • Getting Started
    • About QATTS
    • 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
    • Node
    • User
    • Role
  • Automation
    • Objects
      • UI Element
      • Product Element
        • Advanced Data Types
          • QIntegerArray
          • QStringArray
          • QData
        • Basic Data Types
      • API
      • Query
      • Smarty
      • New Group
    • Functionality
    • Test Data Repository
  • 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
  • Settings
    • Build
    • Milestone
  • Smarties
    • Excel: Read data from excel
    • File: Reads file Data
  • Using QATTS
    • Guide to API Automation
      • Adding API
      • Request
      • Response
        • Writing Response Schema
    • Guide to Web Automation
      • Performing Web Automation
  • Methods
  • Standard Actions Methods
    • setRunValue
    • performAPIFieldLevel
    • Execute Function
    • Execute WorkFlow
    • Execute Test Case
    • Send Request
    • Assert Data
    • Get Run Value
  • UI Element Advanced
    • table
  • UI Action Methods
    • Assertion Methods
      • Assert Groups
      • Assert Product Element
      • Assert HTML Element
      • StateCheck
    • extractGroup
    • Data Population Methods
      • Populate Group
      • Populate Alert
      • Populate Field
    • Link Methods
      • Check Broken Links
      • Extract Link
    • Other UI Action Methods
      • Perform Field Level QAction
      • Perform Element Checks
      • Perfrom Page Checks
      • Wait for Invisibility of Element
      • Get Table Data
      • Refresh Page
      • Alert Action
      • Get Element Size
      • Perform Named Action
  • Error Codes : Automation
  • Error Code: Execution
  • Other Information
    • FAQ
    • Troubleshooting
Powered by GitBook
On this page

Was this helpful?

  1. Smarties

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 on 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

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

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

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

PreviousSmartiesNextFile: Reads file Data

Last updated 3 years ago

Was this helpful?