Changing internal configuration

SetConfig Paceword can be used to change the internal behavior of Qentinel Pace. Changes done with SetConfig will apply globally, meaning once setting is changed it’s in use for all test cases / keywords until the end of test run or until changed again.

The basic syntax of using SetConfig is the following:

SetConfig    [NAME_OF_THE_SETTING]    [NEW_VALUE_FOR_THE_SETTING]

SetConfig always returns the previously used value, so you can temporarily change a setting and change it back easily.

The most common examples of configuration you might want to change are:

  • Changing timeouts

  • Highglighting elements

  • Action after typing text

SetConfig    DefaultTimeout     60       # sets default timeout to 60 seconds, affecting all keywords
SetConfig    SearchMode         draw     # Highlights found elements

SetConfig    LineBreak          ue007    # Enter key instead of TAB (default)
SetConfig    LineBreak          ${EMPTY} # Do not send anything

All possible configuration options are listed below.

Table 1. SetConfig parameters

Setting

Description

BlindReturn

Return any value (even empty) from input element without waiting. Default = false

CaseInsensitive

Set containing_text_match according to selected case sensitivity.

CheckInputValue

Check that real value matches to preferred value after TypeText.

ClearKey

Set key to be pressed before text is written to input field.

ClickToFocus

Clicks Input element before typing.

CssSelectors

Use CSS selectors for finding elements.

DefaultDocument

Switches to default frame automatically.

DefaultTimeout

Set default timeout for QWeb keywords.

Delay

Set delay for Paceword. This is meant to be used in demo purposes only and is not recommended way to control execution flow. Default = 0s (No delays before execution).

HandleAlerts

Option for handling alerts boxes, on by default.

InputHandler

Check input field status before writing.

InViewport

If InViewport is set to true every element outside of current viewport is considered invisible.

LineBreak

Set key to be pressed after text is written to input field.

OffsetCheck

Element with no offset is considered invisible by default. To bypass this check set OffsetCheck to false.

RetryInterval

Set default interval for QWeb retry keywords.

ScreenshotType

Defines how screenshot is taken. Default is normal screenshot. “html” saves page as html frame in test log. “all” saves both image and html page.

SearchDirection

Set search direction for element search.

SearchMode

Hightlights found elements.

SearchStrategy

Set search strategy for element search.

Visibility

Include/exclude hidden elements from search.

WindowFind

When WindowFind is used VerifyText is not looking texts for dom, but simulates ctrl+f like search to find if text exists.

WindowSize

Set window size.

XHRTimeout

Set default timeout for XHR (How log we wait page to be loaded).

Read more in SetConfig reference