Skip to content

CreateTestStringsUtil

Implementation of the model element string utils

CreateTestStringsUtil

Canonical path: TestHelper.CreateTestStringsUtil.CreateTestStringsUtil

Implementation of the model element string utils

copy_element_and_parameter_strings_to_clipboard staticmethod

copy_element_and_parameter_strings_to_clipboard(model_ele_list: list[Any])

create a string from the model elements and parameters and copy it the to clipboard

Parameters:

  • model_ele_list (list[Any]) –

    model elements

copy_element_strings_to_clipboard staticmethod

copy_element_strings_to_clipboard(model_ele_list: list[Any])

create a string from the model elements and copy it the to clipboard

Parameters:

  • model_ele_list (list[Any]) –

    model elements

copy_parameter_strings_to_clipboard staticmethod

copy_parameter_strings_to_clipboard(model_ele_list: list[Any])

create a string from the parameters and copy it the to clipboard

Parameters:

  • model_ele_list (list[Any]) –

    model elements

get_geometry_elements_text staticmethod

get_geometry_elements_text(model_elements: list[Any]) -> str

get the element text from the geometry elements

Parameters:

  • model_elements (list[Any]) –

    model elements

Returns:

  • str

    string of the geometry from the model elements

get_model_elements_data staticmethod

get_model_elements_data(
    model_ele_list: list[Any],
) -> tuple[list[Any], list[Any], list[Any]]

get the exploded model elements and the parameter list

Explodes the PythonPart/PythonPartGroup and gets the model objects from the slides

Parameters:

  • model_ele_list (list[Any]) –

    list with the created model elements

Returns:

  • tuple[list[Any], list[Any], list[Any]]

    list with the model elements contained in the PythonPart, parameters of the PythonPart