TableEntity

class TableEntity
Clone()

Call this method if you want to use API-objects in multiple contexts, e.g. if you want to insert a specific test step in multiple blocks.

Returns:

A copy of this object

Return type:

TableEntity

GetColumnCount()

Returns the number of columns.

Returns:

the column count

Return type:

int

GetHeaders()

Returns a list representing the header row.

Returns:

the header row

Return type:

list[str]

GetRowCount()

Returns the number of rows. (not including the header row)

Returns:

the row count (not including the header row)

Return type:

int

GetType()

Returns the type name of the entity.

Returns:

“Table”

Return type:

str

GetValue(row, column)

Returns the value in the given position. The position has to be specified 0 based. The header row does not effect the index, so GetValue(0, 0) will not return the first header cell, but the first actual cell underneath it.

Parameters:
row : int

the index of the row (0-based)

column : int

the index of the column (0-based)

Returns:

the value of the specified cell

Return type:

str

Raises:

ApiError – If row or column values are invalid

GetValues()

Returns a list of lists, representing the values of the table. The header row will not be included.

Returns:

a list of lists representing the table value

Return type:

list[list[str]]