Project

General

Profile

action #121807

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 3 months ago. Updated 12 days 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

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

History

#1 Updated by JERiveraMoya 3 months 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

#2 Updated by hjluo 3 months ago

  • Status changed from Workable to In Progress
  • Assignee set to hjluo

#4 Updated by hjluo about 1 month ago

Need to read the code to understand it clearly first.

#7 Updated by hjluo about 1 month ago

Now PR review.

#8 Updated by hjluo 26 days ago

new PR to cover SeparateRegCodesPage 16462

#9 Updated by hjluo 14 days 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)

#10 Updated by hjluo 14 days ago

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

#11 Updated by hjluo 14 days ago

PR 16462 was merged.

#12 Updated by hjluo 13 days ago

Added MR 474 to set the TIMEOUT_SCALE=3

#13 Updated by hjluo 12 days ago

  • Status changed from In Progress to Resolved

MR merged and mark this ticket as resolved.

Also available in: Atom PDF