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
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
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
#4
Updated by hjluo about 1 month ago
Need to read the code to understand it clearly first.
#5
Updated by hjluo about 1 month ago
looks the current fix was not called
https://openqa.suse.de/tests/10493986/logfile?filename=worker-log.txt
#6
Updated by hjluo about 1 month 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
#7
Updated by hjluo about 1 month ago
Now PR review.
#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