Kernel::Test::Role::Selenium::Agent::HandlesProcesses

NAME

Kernel::Test::Role::Selenium::Agent::HandlesProcesses – role to interact with process screens in Selenium tests.

LoadPageAndSelectProcess()

Load the process create page and select a given process.

    $Self->LoadPageAndSelectProcess(
        ProcessName     => 'TestProcess123',    # required
        ProcessEntityID => 'Process-...',       # required if C<PrepopulateProcess> is used
        PrepopulateProcess  => 0,               # 0 or 1, to populate the process entity id to the URL
        DisplayedText   => '',                  # optional, displayed text to wait for in the screen
        TestFlag        => '',                  # optional, test flag to be used, defaults to Form::Loaded
    );

ClickProcessNextStepButton()

Clicks the given button to open the user task activity dialog.

    $Self->ClickProcessNextStepButton(
        ButtonText => '',   # Text of the button which should be clicked (name of user task activity dialog)
    );

CheckProcessInformationWidget()

Checks if the process information widget is shown in the ticket BODV.

    $Self->CheckProcessInformationWidget(
        ActivityEntityID             => 'Activity-...', # required, entity ID of the activity
        ProcessName                  => 'Process',      # required
        WidgetName => '...',          # required, name of the process information widget
        WidgetID   => '...',          # required, ID of the process information widget
    );

CheckCustomerInformationWidget()

Checks if the process information widget is shown in the ticket BODV.

    $Self->CheckCustomerInformationWidget(
        WidgetName => '...',          # required, name of the process information widget
        WidgetID   => '...',          # required, ID of the process information widget
    );

ConfirmRedirectAndCheckProcessInfo()

Confirms the redirect after process ticket is created and checks the business process information widget.

    $Self->ConfirmRedirectAndCheckProcessInfo(
        WidgetName => '...', # required, name of the business process information widget
        WidgetID   => '...', # required, ID of the business process information widget
        UserID     => 2,     # required, user id to be used for checks
    );

Returns

CheckActivityDescription()

Checks the activity description.

    $Self->CheckActivityDescription(
        ActivityEntityID => 'Activity-...', # required, entity ID of the activity
    );

CheckAndClickSubmitButton()

Checks the submit button state and clicks it (if wanted).

    $Self->CheckAndClickSubmitButton(
        NoClick           => 0,     # optional, 0 or 1, to only check the button state
        CollectTicketData => 0,     # optional, 0 or 1, collects the created ticket data
        ButtonText        => '',    # optional, to click the create or another button
        UserID            => 123,   # optional, user id to be used for fetching ticket data
    );

CloseDialogAndCheckSelectedProcess()

Closes a modal dialog and checks the selected process in the form.

    $Self->CloseDialogAndCheckSelectedProcess(
        ProcessName => '',      # required, name of process
        Button      => 'No',    # required, name of button to be clicked
    );
Scroll to Top