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.
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
- 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
- Status changed from Workable to In Progress
- Assignee set to hjluo
Need to read the code to understand it clearly first.
new PR to cover SeparateRegCodesPage 16462
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)
- Related to action #125561: Encapsulate the timeout scale multiplier in libyui-rest-api test framework added
Added MR 474 to set the TIMEOUT_SCALE=3
- Status changed from In Progress to Resolved
MR merged and mark this ticket as resolved.
Also available in: Atom
PDF