Data tables

In Sage X3, you can find different types of data tables:

  • Predefined data table: These data tables have a fixed number of lines. the lines are predefined and already contain data. You cannot add new lines or delete existing lines. However, it is possible to complete the lines by adding or modifying the existing values when the cell can be edited.

  • Dynamic data table: These data tables allow you to create new lines. Where permitted, it is possible to delete a line.

Une image contenant capture d’écran

Description générée automatiquement

In certain cases, the data tables are split into two sections by a vertical line. the left section is the fixed part of the data table, and the right section is the editable part of the data table. It is also possible to scroll to the right part of the data table.

In addition, the data table can be used in normal pages or in a modal dialog.

the step definitions differ according to the context, the type of data table, or which part of the data table the automation test needs to interact with.

Predefined data table

The following step definitions are available to interact with a predefined data table:

the user selects the main data table of the page

the user selects the data table with X3 field name: "(.*)"

the user selects the data table of section "(.*)"

the user selects row that has the text "(.*)" in column with header: "(.*)"

the user selects row that has the text "(.*)" in column with X3 field name: "(.*)"

the user selects cell with header: "(.*)" of selected row

the user selects cell with X3 field name: "(.*)" of selected row

Examples

Dynamic data table

The following step definitions are available to interact with a dynamic data table:

the user selects last editable cell with column header: "(.*)"

the user selects last editable cell with X3 field name: "(.*)"

the user adds the text "(.*)" in selected cell

Examples

Fixed data table

The following step definitions are available to interact with the fixed part of the data table:

the user selects the main fixed data table of the page

the user selects the fixed data table of section: "(.*)"

the user selects the fixed data table for x3 field name: "(.*)"

the user selects fixed table row number: (.*) in column with X3 field name: "(.*)"

the user selects the fixed cell with X3 field name: "(.*)" and row number: "(.*)"

the user selects last fixed cell with X3 field name: "(.*)"

the user selects last fixed cell with header: "(.*)"

the user selects fixed cell with X3 field name: "(.*)" of selected row

Examples

Data table in Syracuse pages

The following step definition is available to interact with a data table in Syracuse pages:

the user clicks on the link in the cell that has the text "(.*)" in cell with header: "(.*)"

Examples

Data table in popup

The following step definitions are available to interact with a data table in a popup:

the user selects the data table in the popup

the user selects the fixed data table in the popup

Examples

Data table and row

The following step definitions are available to interact with a data table and data row:

the user selects row by multiple criteria that has the text "(.*)" in column with header "(.*)" and the text "(.*)" in column with header: "(.*)"

the user selects row that has the text "(.*)" in column with index "(.*)"

the user selects last row of the selected data table

the user selects first row of the selected data table

the user checks if there is value: "(.*)" in the selected row

the user selects row by multiple criteria that has the text "(.*)" in column with X3 field name "(.*)" and the text "(.*)" in column with X3 field name: "(.*)"

the user selects editable row that has the text "(.*)" in column with header: "(.*)"

the user selects editable row that has the text "(.*)" in column with X3 field name: "(.*)"

the user edits text to "(.*)" for cell with X3 field name: "(.*)" of selected row.

the user edits text to "(.*)" for cell with X3 field name: "(.*)" of selected row and hits enter

the user edits text to "(.*)" for cell with header: "(.*)" of selected row

the user clicks on the selected row

the user sets rows to display to (.*)

the number of rows returned in the selected data table is "(.*)"

Examples

Data table and cell

The following step definitions are available to interact with a data table and data cell:

the user adds the text "(.*)" in selected cell

the user adds the text "(.*)" in selected cell and hits tab key

the user adds the text "(.*)" in selected cell and hits enter key

the user selects cell with column header: "(.*)" and row number: "(.*)"

the user selects the "(.*)" operator in the search cell

the user selects the disabled cell with column header: "(.*)" and row number: "(.*)"

the user selects last cell with column header: "(.*)"

the user selects cell with text: "(.*)" and column header: "(.*)"

the user selects cell that matches exact with the text: "(.*)" and column header: "(.*)"

the user selects cell that matches exact with the text: "(.*)" and X3 field name: "(.*)"

the value of the selected cell is "(.*)"

the value of the selected cell not is"(.*)"

the selected cell is empty

the selected cell is not empty

Examples

Data table and forms

The following step definitions are available to interact with forms in a data table:

the user clicks on the selected cell

the user checks the check box contained in the selected cell

the user unchecks the check box contained in the selected cell

the user selects the choice "(.*)" of the selected cell

the choice selected of the selected cell is "(.*)"

the user clicks on the icon contained in the selected cell

Examples

Data table and date cell

The following step definitions are available to interact with date fields in a data table:

the user enters today's date in the selected cell

the user enters a generated date using the value "(.*)" in the selected cell

the user enters the first day of the month in the selected cell.

the user enters the first day of the month in the selected cell and adjusts by "(.*)"

the user enters the first day of the year in the selected cell

the user enters the first day of the year in the selected cell and adjusts by "(.*)"

the user enters the last day of the month in the selected cell.

the user enters the last day of the month in the selected cell and adjusts by "(.*)"

the user enters the last day of the year in the selected cell.

the user enters the last day of the year in the selected cell and adjusts by "(.*)"

the user enters the day in the selected cell

the user enters the month in the selected cell

the user enters the year in the selected cell

the user enters the week number in the selected cell

the user enters the current tax year starting "(.*)" in the selected cell

the user enters the "(.*)" from today in the selected cell

the value of the selected cell is todays date

the value of the selected cell is a generated date using value "(.*)"

the value of the selected cell is the first day of the month

the value of the selected cell is the first day of the month adjusted by "(.*)"

the value of the selected cell is the first day of the year

the value of the selected cell is the first day of the year adjusted by "(.*)"

the value of the selected cell is the last day of the month.

the value of the selected cell is the last day of the month adjusted by "(.*)"

the value of the selected cell is the last day of the year

the value of the selected cell is the last day of the year adjusted by "(.*)"

the value of the selected cell is the current day

the value of the selected cell is the current month

the value of the selected cell is the current year

the value of the selected cell is the current week number.

the value of the selected cell is the current tax year starting "(.*)"

the value of the selected cell is the "(.*)" from today.

the value of the selected cell is a generated none locale date using value "(.*)".

Examples

Data table and row action

The following step definitions are available to use a row action in a data table:

the user opens "(.*)" function on toolbox of the selected row

the user highlights the selected row

Examples

Data table and key command

The following step definitions are available to use a key command in a data table:

the user hits enter key in the selected cell

the user hits tab key in the selected cell

the user hits escape key in the selected cell

Examples

Data table and hierarchical cell

The following step definitions are available to use a hierarchical cell in a data table:

the user selects hierarchical cell of selected row

the user selects hierarchical cell with text "(.*)"

the user expands the hierarchical list of the selected cell

the user collapses the hierarchical list of the selected cell

the user selects row that has the hierarchical cell with text "(.*)"

the user clicks the "(.*)" button in the left top bar of the selected data table

the user clicks the "(.*)" button in the right top bar of the selected data table

Examples

Data table and data selection

The following step definitions are available to use data selection in a data table:

the user clicks on the cell that has the text "(.*)" in cell with header: "(.*)"

the user clicks on the cell that matches exact with the text "(.*)" in cell with header: "(.*)"

Examples

Data table and cell action

The following step definitions are available to use cell action in a data table:

the user clicks the "(.*)" action button of the selected cell

the user clicks the "(.*)" option of the actions panel for the selected cell

Examples

Scrolling data table

The following step definitions are available to use a scrolling data table:

the user selects the scrolling data table for X3 field name: "(.*)".

the user selects cell that may not be visible with column header: "(.*)" and row number: "(.*)".

Examples

Data table top bar actions

The following step definitions are available to interact with data table actions:

the user selects the data table of field: "(.*)"

the user clicks the "(.*)" button in the left top bar of the selected data table

the user clicks the "(.*)" button in the right top bar of the selected data table

the user clicks the "(.*)" action in the left top bar of the selected data table

Examples

Data table text and background colors of a cell

Available step definitions

The following step definitions are available to verify the text or background color of a cell:

the color of the text in the selected cell is "(.*)"

the color of the background in the selected cell is "(.*)"

Relation between color name and hexadecimal value

Cell text and background color verification is possible using either the color name or the hexadecimal value.

If the cell is using a hexadecimal value that is not defined in the following grid, the color name cannot be used. However, the text or background color verification remains possible, using the hexadecimal value.

Color name Hexadecimal value
Red #FF0000
Blue #0000FF, #78A7F5, #BDDCEC, #AED8E8, #B7DBFF
Green #B0EA95, #008000, #80FF80, #008040, #C8FA85, #C7E39B, B0FFB0, #B9FFB9, #C5F5C5, #B7F7B7, #ECFBF0, #C5F7C1, #D7E8B3, #EFF5E2, #00c605
Yellow #FFFFB0, #FEFB81, #FFE080
Orange #FF8240, #FF8040, #ffe7a8, #FFD5C6, #e3a180
Black #000000
White #FFFFFF
Grey #E0E0E0, #333333
Cyan #D3FEFC, #77BBBB, #A7D8CD, #008080, #80FFFF
Pink #FFB0B0, #FFE1E1, #FFCCCC

Examples