⏱️ Duration: 312.48s
❌ Error:
self = <tests.test_web_general.TestWebPhase1 object at 0x7f5228c005b0>
main_page = <pages.main_page.MainPage object at 0x7f5228c01ed0>
@pytest.mark.skip_testenv
@pytest.mark.skip_smoke
@pytest.mark.skip_sanity
def test_w26_promo_performance_tests(self, main_page):
"""
W26 Promo Performance Tests
Navigates to key prod URLs and asserts that server response and DOM
processing times are within acceptable limits.
"""
> main_page.check_performance(_PERF_URLS)
tests/test_web_general.py:206:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages/main_page.py:263: in check_performance
server_avg, dom_avg = self.measure_page_performance(url)
pages/main_page.py:256: in measure_page_performance
round(statistics.mean(server_times), 2),
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
data = []
def mean(data):
"""Return the sample arithmetic mean of data.
>>> mean([1, 2, 3, 4, 4])
2.8
>>> from fractions import Fraction as F
>>> mean([F(3, 7), F(1, 21), F(5, 3), F(1, 3)])
Fraction(13, 21)
>>> from decimal import Decimal as D
>>> mean([D("0.5"), D("0.75"), D("0.625"), D("0.375")])
Decimal('0.5625')
If ``data`` is empty, StatisticsError will be raised.
"""
if iter(data) is data:
data = list(data)
n = len(data)
if n < 1:
> raise StatisticsError('mean requires at least one data point')
E statistics.StatisticsError: mean requires at least one data point
/usr/lib/python3.10/statistics.py:328: StatisticsError
📸 Failure Screenshot: