action #121807
closedcoordination #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
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
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
Updated by hjluo almost 2 years ago
- Status changed from Workable to In Progress
- Assignee set to hjluo
Updated by hjluo almost 2 years ago
Updated by hjluo almost 2 years ago
Need to read the code to understand it clearly first.
Updated by hjluo almost 2 years ago
looks the current fix was not called
https://openqa.suse.de/tests/10493986/logfile?filename=worker-log.txt
Updated by hjluo almost 2 years ago
after some tweaking and it works and now preparing the PR for review.
https://openqa.suse.de/tests/10514451
https://openqa.suse.de/tests/10514452
https://openqa.suse.de/tests/10515226
https://openqa.suse.de/tests/10521766
https://openqa.suse.de/tests/10521869
https://openqa.suse.de/tests/10521870
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)
Updated by hjluo over 1 year ago
- Related to action #125561: Encapsulate the timeout scale multiplier in libyui-rest-api test framework added
Updated by hjluo over 1 year ago
- Status changed from In Progress to Resolved
MR merged and mark this ticket as resolved.