Project

General

Profile

Actions

action #121807

closed

coordination #121879: [epic] Improvements in the test automation framework with libyui-rest-api

Pass timeout/interval when using regex to find UI element with libyui-rest-api client

Added by tinawang123 almost 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
2022-12-12
Due date:
% Done:

0%

Estimated time:

Description

Motivation

When using regex to find UI element with libyui-rest-api we don't pass timeout/interval

Failed case: https://openqa.suse.de/tests/10143979#step/install_SLES/2

See snippet of the code here:

sub find_widgets {
    my ($self, $args) = @_;    $self->resolve_filter() unless $self->{filter}->is_resolved();
    return $self->{widget_controller}->find({
            filter => $self->{filter}->get_filter(),
            timeout => $args->{timeout},
            interval => $args->{interval}
    });
}
$self->resolve_filter() unless $self->{filter}->is_resolved(); # It doesn't set timeout

Acceptance criteria

AC1: Pass timeout and interval when resolving the exact value for a filter using regex in libyui-rest-api client


Related issues 1 (0 open1 closed)

Related to qe-yam - action #125561: Encapsulate the timeout scale multiplier in libyui-rest-api test frameworkResolvedcoolgw2023-03-08

Actions
Actions #1

Updated by JERiveraMoya almost 2 years ago

  • Subject changed from Need extend time to wait Product Selection page to Pass timeout/interval when using regex to find UI element with libyui-rest-api client
  • Description updated (diff)
  • Status changed from New to Workable
  • Target version set to Current
  • Parent task set to #121879
Actions #2

Updated by hjluo almost 2 years ago

  • Status changed from Workable to In Progress
  • Assignee set to hjluo
Actions #4

Updated by hjluo almost 2 years ago

Need to read the code to understand it clearly first.

Actions #7

Updated by hjluo almost 2 years ago

Now PR review.

Actions #8

Updated by hjluo over 1 year ago

new PR to cover SeparateRegCodesPage 16462

Actions #9

Updated by hjluo over 1 year ago

in logfile we found that:

[2023-03-08T04:45:48.805452+01:00] [debug] [pid:10518] ||| starting install_SLES tests/installation/product_selection/install_SLES.pm
[2023-03-08T04:45:48.808134+01:00] [debug] [pid:10518] >>>>>client_timeout=120
[2023-03-08T04:45:48.808425+01:00] [debug] [pid:10518] >>>>>port=39092
[2023-03-08T04:45:48.808728+01:00] [debug] [pid:10518] >>>>>app_timeout=120
[2023-03-08T04:48:11.686025+01:00] [debug] [pid:10518] ||| finished install_SLES installation/product_selection (runtime: 143 s)
Actions #10

Updated by hjluo over 1 year ago

  • Related to action #125561: Encapsulate the timeout scale multiplier in libyui-rest-api test framework added
Actions #11

Updated by hjluo over 1 year ago

PR 16462 was merged.

Actions #12

Updated by hjluo over 1 year ago

Added MR 474 to set the TIMEOUT_SCALE=3

Actions #13

Updated by hjluo over 1 year ago

  • Status changed from In Progress to Resolved

MR merged and mark this ticket as resolved.

Actions

Also available in: Atom PDF