Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken tests? selenium.common.exceptions.TimeoutException: Message: Failed to find text "TC AD" in element "body" in given time 5 seconds #55

Open
sfindeisen opened this issue Apr 3, 2024 · 0 comments

Comments

@sfindeisen
Copy link
Contributor

I am getting the following error when running the test suite:

======================================================================
ERROR: test__basic_webassembly_api (tests_webassembly_api.test.WebassemblyApiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/usertd/tests/common/utils/__init__.py", line 121, in inner_print_debug
    return method(self, *args, **kwargs)
  File "/home/usertd/tests/common/utils/__init__.py", line 98, in inner_measure_time
    return method(self, *args, **kwargs)
  File "/home/usertd/tests/common/utils/__init__.py", line 107, in inner_log_exception
    return method(self, *args, **kwargs)
  File "/home/usertd/tests/common/utils/__init__.py", line 154, in inner_average_benchmarks
    ab.run(times=int(os.environ.get('AVERAGE_BENCHMARKS_TIMES', '1')))
  File "/home/usertd/tests/common/utils/__init__.py", line 82, in run
    one_run_results = self.method(self.method_self, *self.args, **self.kwargs)
  File "/home/usertd/tests/tests_webassembly_api/test.py", line 31, in test__basic_webassembly_api
    self.assertDriverContainsText('body', 'TC AD')
  File "/home/usertd/tests/common/base_test.py", line 103, in assertDriverContainsText
    WebDriverWait(self.driver, timeout) \
  File "/home/usertd/.local/lib/python3.8/site-packages/selenium/webdriver/support/wait.py", line 105, in until
    raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: Failed to find text "TC AD" in element "body" in given time 5 seconds.


----------------------------------------------------------------------
Ran 13 tests in 100.283s

FAILED (errors=11)

This happens both with run.sh --chromium-revision latest and with run.sh command, both on the master branch. What is the correct way to run the tests?

Thanks

sfindeisen added a commit that referenced this issue Apr 3, 2024
Fixes 8 out of 11 failing tests.
sfindeisen added a commit that referenced this issue Apr 4, 2024
the referenced URL does not work anymore
sfindeisen added a commit that referenced this issue Apr 4, 2024
the referenced URL (trycontra) does not work anymore
sfindeisen added a commit that referenced this issue Apr 4, 2024
This is an obsolete test case based on our own Chromium patch, implemented when Wasm support didn't exist yet.

In addition, it occasionally fails with the following error:

ERROR: test__basic_webassembly (tests_webassembly.test.WebassemblyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/usertd/tests/common/utils/__init__.py", line 121, in inner_print_debug
    return method(self, *args, **kwargs)
  File "/home/usertd/tests/common/utils/__init__.py", line 98, in inner_measure_time
    return method(self, *args, **kwargs)
  File "/home/usertd/tests/common/utils/__init__.py", line 107, in inner_log_exception
    return method(self, *args, **kwargs)
  File "/home/usertd/tests/common/utils/__init__.py", line 154, in inner_average_benchmarks
    ab.run(times=int(os.environ.get('AVERAGE_BENCHMARKS_TIMES', '1')))
  File "/home/usertd/tests/common/utils/__init__.py", line 82, in run
    one_run_results = self.method(self.method_self, *self.args, **self.kwargs)
  File "/home/usertd/tests/tests_webassembly/test.py", line 36, in test__basic_webassembly
    report_win_signals = buyer_server.get_last_request("/reportWin").get_first_json_param('signals')
AttributeError: 'NoneType' object has no attribute 'get_first_json_param'

You should be using test__basic_webassembly_api instead.
sfindeisen added a commit that referenced this issue Apr 4, 2024
barteklos pushed a commit that referenced this issue Apr 8, 2024
Fixes 8 out of 11 failing tests.
barteklos pushed a commit that referenced this issue Apr 8, 2024
the referenced URL does not work anymore
barteklos pushed a commit that referenced this issue Apr 8, 2024
the referenced URL (trycontra) does not work anymore
barteklos pushed a commit that referenced this issue Apr 8, 2024
This is an obsolete test case based on our own Chromium patch, implemented when Wasm support didn't exist yet.

In addition, it occasionally fails with the following error:

ERROR: test__basic_webassembly (tests_webassembly.test.WebassemblyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/usertd/tests/common/utils/__init__.py", line 121, in inner_print_debug
    return method(self, *args, **kwargs)
  File "/home/usertd/tests/common/utils/__init__.py", line 98, in inner_measure_time
    return method(self, *args, **kwargs)
  File "/home/usertd/tests/common/utils/__init__.py", line 107, in inner_log_exception
    return method(self, *args, **kwargs)
  File "/home/usertd/tests/common/utils/__init__.py", line 154, in inner_average_benchmarks
    ab.run(times=int(os.environ.get('AVERAGE_BENCHMARKS_TIMES', '1')))
  File "/home/usertd/tests/common/utils/__init__.py", line 82, in run
    one_run_results = self.method(self.method_self, *self.args, **self.kwargs)
  File "/home/usertd/tests/tests_webassembly/test.py", line 36, in test__basic_webassembly
    report_win_signals = buyer_server.get_last_request("/reportWin").get_first_json_param('signals')
AttributeError: 'NoneType' object has no attribute 'get_first_json_param'

You should be using test__basic_webassembly_api instead.
barteklos pushed a commit that referenced this issue Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant