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
  • Variables
  • setRunValue
  • getRunValue and getRunValueStr

Was this helpful?

Standard Actions Methods

Qatts provides few handful action methods that help in interacting with the Product to perform automation. The method syntax follows normal Java standards.

Variables

setRunValue

Using setRunValue() method, you can temporarily store a value and utilize it anywhere in the execution at a later point. Note that the value stored can be used only within that execution. setRunValue method is a named-value map, i.e. it holds a value against a key, which can be utilized later by calling getRunValue() method.

setRunValue() in previous releases of QATTS is called as setCache(). However this method is deprecated in the current release.

Syntax:

void setRunValue(String propName, Object cacheValue)

Param Name
Type
Condition
Description

propName

String

Mandatory

The name of the run variable

cacheValue

Object

Mandatory

The value of the run variable. It can be either a static string or can be derived from the test data

getRunValue and getRunValueStr

getRunValue() and getRunValueStr methods are used to retrieve a value set to a variable by setRunValue/setCache methods.

The main difference between getRunValue and getRunValueStr methods lies in their return types. getRunValue returns an Object type and getRunValueStr returns a String type.

syntax:

Object getRunValue(String propName)

String getRunValueStr(String propName)

Param Name
Type
Condition
Description

propName

String

Mandatory

Name of the run variable

void performAPIFieldLevelAction(String apiName, String sectionName)

QData sendRequest(String apiName)

QData sendRequest(String apiName, Map additionalData)

boolean assertData(String groupName,Map baseData,Map targetData)

boolean assertData(String groupName,Map baseData,Map targetData,boolean recursive)

boolean assertData(Object baseData,Object targetData)

boolean assertData(String dataLabel, Object baseData,Object targetData)

Object getContextValue(String keyName)

String getContextValueStr(String keyName)

void setContextValue(String keyName, Object cacheValue)

void createCounter(String counterName,Integer startIndex,String scope)

Integer incrementCounter(String counterName)

boolean checkValue(String elementName,Object targetObj)

boolean hasTestData(String elementName)

String getTestDataStr(String elementName)

String getDataStr(String elementName)

Object getTestData(String elementName)

boolean hasData(String elementName)

Object getData(String elementName)

QData getTestDataByGroup(String groupName,String type,boolean recursive)

QArray getQueryResults(String queryName)

QData getQueryData(String queryName)

void logInfo(String message)

void logError(String message)

void logError(String message,IBException exception)

void sleep(Integer waitTime)

void pause()

void exit(String exitMsg)

void setReportParam(String paramName)

void setReportParam(String paramName, Object paramValue)

Object doSmarty(String smartyName,Object data)

QArray toQArray(Object arrayObject)

QData toQData(Object dataObject)

QData toQData(Object dataObject,String keyName)

boolean assertGroup(String groupName, QData qData,boolean recursive)

boolean assertGroup(String groupName, QData qData,String elementType,boolean recursive)

boolean assertGroup(String groupName, String srcArrayElementName, QArray qArray,String elementType,boolean recursive)

void convertToJson(String srcElementName,String destElementName)

PreviousQDataNextExecute Methods

Last updated 2 years ago

Was this helpful?