demo-tests/realistic/realistic_db/test_data_operations.py::test_data_integrity |
failed |
0.327 |
2025-05-28T23:54:38.363714+00:00 |
2025-05-28T23:54:38.690264+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:db_connection =
def test_data_integrity(db_connection):
"""Test data integrity constraints."""
cursor = db_connection.cursor()
# Try to insert a record with invalid data
try:
cursor.execute("INSERT INTO users (name, email) VALUES (NULL, 'invalid@example.com')")
db_connection.commit()
# If we get here without an exception, the test should fail randomly
# to simulate integrity constraint violations
if random.random() < 0.3:
> pytest.fail("Data integrity constraint should have been violated")
E Failed: Data integrity constraint should have been violated
demo-tests/realistic/realistic_db/test_data_operations.py:373: Failed
|
demo-tests/realistic/realistic_integration/test_service_workflows.py::test_user_purchases |
failed |
0.450 |
2025-05-28T23:54:43.912028+00:00 |
2025-05-28T23:54:44.362354+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:authenticated_user = {'expires_in': 300, 'role': 'user', 'success': True, 'token': 'mock-token-test_user-1748476483', ...}
inventory_service =
order_service =
@pytest.mark.dependency(depends=["test_user_login"])
def test_user_purchases(authenticated_user, inventory_service, order_service):
"""Test user purchase flow (depends on login)."""
user_id = authenticated_user["user_id"]
# Create an order
order_items = [{"product_id": "product-7", "quantity": 1}]
order_result = order_service.create_order(user_id, order_items)
> assert order_result["success"] is True
E assert False is True
demo-tests/realistic/realistic_integration/test_service_workflows.py:475: AssertionError
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_write_performance |
failed |
1.868 |
2025-05-28T23:54:44.755097+00:00 |
2025-05-28T23:54:46.622609+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:performance_tester =
def test_write_performance(performance_tester):
"""Test write operation performance."""
# Execute a series of write operations
for _ in range(10):
metrics = performance_tester.execute_operation("write", complexity=random.uniform(0.8, 1.2))
assert metrics.duration > 0
# Analyze the results
analysis = performance_tester.analyze_metrics("write")
# Verify performance meets requirements
assert analysis["avg_duration"] < 0.3, f"Average write time too slow: {analysis['avg_duration']:.3f}s"
> assert analysis["p95_duration"] < 0.5, f"95th percentile write time too slow: {analysis['p95_duration']:.3f}s"
E AssertionError: 95th percentile write time too slow: 0.582s
E assert 0.5824370384216309 < 0.5
demo-tests/realistic/realistic_performance/test_load_scenarios.py:277: AssertionError
|
demo-tests/realistic/realistic_ui/test_web_interface.py::test_form_submission_flow |
failed |
4.264 |
2025-05-28T23:55:39.217738+00:00 |
2025-05-28T23:55:43.481468+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:logged_in_browser =
def test_form_submission_flow(logged_in_browser):
"""Test a multi-step form submission process."""
browser = logged_in_browser
browser.get("https://example.com/dashboard/new-project")
# Step 1: Fill out basic information
project_name = browser.find_element("id", "project-name")
project_name.send_keys("Test Project")
description = browser.find_element("id", "project-description")
description.send_keys("This is a test project created by automated UI tests.")
# Click next button
next_button = browser.find_element("id", "step-1-next")
next_button.click()
# Step 2: Project settings
# Simulate slow page transition
time.sleep(0.08) # Shortened for speed
# Select project type dropdown
project_type = browser.find_element("id", "project-type")
project_type.click()
# Select an option
option = browser.find_element("css", "#project-type-options li:nth-child(2)")
option.click()
# Click next button
next_button = browser.find_element("id", "step-2-next")
next_button.click()
# Step 3: Confirmation
# Another slow page transition
time.sleep(0.5)
# Submit form
submit_button = browser.find_element("id", "submit-project")
submit_button.click()
# Verify success message
success_message = browser.find_element("class", "success-message")
> assert "Project created successfully" in success_message.text
E AssertionError: assert 'Project created successfully' in 'Text for success-message'
E + where 'Text for success-message' = .text
demo-tests/realistic/realistic_ui/test_web_interface.py:298: AssertionError
|
demo-tests/realistic/realistic_ui/test_web_interface.py::test_edit_user_profile |
failed |
0.887 |
2025-05-28T23:55:46.973544+00:00 |
2025-05-28T23:55:47.860544+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:logged_in_browser =
@pytest.mark.dependency(depends=["test_user_profile_page_loads"])
def test_edit_user_profile(logged_in_browser):
"""Test editing user profile (depends on profile page loading)."""
browser = logged_in_browser
browser.get("https://example.com/profile/edit")
# Find edit form elements
display_name = browser.find_element("id", "display-name")
> bio = browser.find_element("id", "user-bio")
demo-tests/realistic/realistic_ui/test_web_interface.py:325:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = , by = 'id', value = 'user-bio'
def find_element(self, by, value):
# Always find login elements on login page
if self.current_url.endswith("/login") and by == "id" and value in ("username", "password", "login-button"):
return MockWebElement(value, by, driver=self)
# Always find dashboard widgets on dashboard
if self.current_url.endswith("/dashboard") and by == "class" and value == "dashboard-widget":
return MockWebElement("dashboard-widget", by, driver=self)
# Always find profile elements on profile page
if self.current_url.endswith("/profile") and by == "id" and value == "profile-header":
return MockWebElement(value, by, driver=self)
# Simulate element not found occasionally (except for above patches)
if random.random() < 0.08:
time.sleep(0.3)
> raise Exception(f"No such element: {by}={value}")
E Exception: No such element: id=user-bio
demo-tests/realistic/realistic_ui/test_web_interface.py:81: Exception
|
demo-tests/realistic/realistic_integration/test_service_workflows.py::test_complete_order_workflow |
skipped |
1.341 |
2025-05-28T23:54:40.228925+00:00 |
2025-05-28T23:54:41.569852+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:('/Users/jwr003/coding/pytest-recap/demo-tests/realistic/realistic_integration/test_service_workflows.py', 345, 'Skipped: Payment service unavailable')
|
demo-tests/realistic/realistic_integration/test_service_workflows.py::test_concurrent_orders |
skipped |
0.289 |
2025-05-28T23:54:43.088176+00:00 |
2025-05-28T23:54:43.377575+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:('/Users/jwr003/coding/pytest-recap/demo-tests/realistic/realistic_integration/test_service_workflows.py', 406, 'Skipped: Authentication service unavailable')
|
demo-tests/realistic/realistic_api/test_user_endpoints.py::test_api_get_user |
passed |
0.056 |
2025-05-28T23:54:36.304868+00:00 |
2025-05-28T23:54:36.361059+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_api/test_user_endpoints.py::test_api_list_users |
passed |
0.128 |
2025-05-28T23:54:36.362383+00:00 |
2025-05-28T23:54:36.489942+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_api/test_user_endpoints.py::test_api_search_users |
passed |
0.255 |
2025-05-28T23:54:36.495513+00:00 |
2025-05-28T23:54:36.750631+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_api/test_user_endpoints.py::test_api_create_user_auth |
passed |
0.159 |
2025-05-28T23:54:36.755055+00:00 |
2025-05-28T23:54:36.913615+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_api/test_user_endpoints.py::test_api_batch_operations |
passed |
0.305 |
2025-05-28T23:54:36.918122+00:00 |
2025-05-28T23:54:37.223257+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_api/test_user_endpoints.py::test_api_update_user |
passed |
0.077 |
2025-05-28T23:54:37.229358+00:00 |
2025-05-28T23:54:37.306247+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_api/test_user_endpoints.py::test_api_delete_user |
passed |
0.063 |
2025-05-28T23:54:37.309245+00:00 |
2025-05-28T23:54:37.372295+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_api/test_user_endpoints.py::test_api_user_login |
passed |
0.053 |
2025-05-28T23:54:37.375741+00:00 |
2025-05-28T23:54:37.428412+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_api/test_user_endpoints.py::test_api_user_profile |
passed |
0.056 |
2025-05-28T23:54:37.432631+00:00 |
2025-05-28T23:54:37.488980+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_api/test_user_endpoints.py::test_api_user_preferences |
passed |
0.073 |
2025-05-28T23:54:37.492096+00:00 |
2025-05-28T23:54:37.564962+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_db/test_data_operations.py::test_db_connection |
passed |
0.001 |
2025-05-28T23:54:37.569499+00:00 |
2025-05-28T23:54:37.570016+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_db/test_data_operations.py::test_simple_query |
passed |
0.084 |
2025-05-28T23:54:37.585052+00:00 |
2025-05-28T23:54:37.669039+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_db/test_data_operations.py::test_successful_transaction |
passed |
0.267 |
2025-05-28T23:54:37.691079+00:00 |
2025-05-28T23:54:37.957618+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_db/test_data_operations.py::test_transaction_rollback |
passed |
0.175 |
2025-05-28T23:54:37.975449+00:00 |
2025-05-28T23:54:38.150507+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_db/test_data_operations.py::test_connection_stability |
passed |
0.078 |
2025-05-28T23:54:38.176701+00:00 |
2025-05-28T23:54:38.254806+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_db/test_data_operations.py::test_query_performance |
passed |
0.070 |
2025-05-28T23:54:38.274401+00:00 |
2025-05-28T23:54:38.344110+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_db/test_data_operations.py::test_db_specific_features |
passed |
0.073 |
2025-05-28T23:54:38.744064+00:00 |
2025-05-28T23:54:38.816869+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_db/test_data_operations.py::test_create_schema |
passed |
0.147 |
2025-05-28T23:54:38.839395+00:00 |
2025-05-28T23:54:38.986430+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_db/test_data_operations.py::test_create_table |
passed |
0.235 |
2025-05-28T23:54:39.007949+00:00 |
2025-05-28T23:54:39.243172+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_db/test_data_operations.py::test_insert_data |
passed |
0.173 |
2025-05-28T23:54:39.267263+00:00 |
2025-05-28T23:54:39.440054+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_integration/test_service_workflows.py::test_product_availability |
passed |
0.107 |
2025-05-28T23:54:39.466202+00:00 |
2025-05-28T23:54:39.572826+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_integration/test_service_workflows.py::test_authentication_flow |
passed |
0.357 |
2025-05-28T23:54:39.576774+00:00 |
2025-05-28T23:54:39.933290+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_integration/test_service_workflows.py::test_order_with_inventory_failure |
passed |
0.404 |
2025-05-28T23:54:41.677962+00:00 |
2025-05-28T23:54:42.082162+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_integration/test_service_workflows.py::test_inventory_consistency |
passed |
0.997 |
2025-05-28T23:54:42.088098+00:00 |
2025-05-28T23:54:43.084608+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_integration/test_service_workflows.py::test_user_registration |
passed |
0.214 |
2025-05-28T23:54:43.381622+00:00 |
2025-05-28T23:54:43.596056+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_integration/test_service_workflows.py::test_user_login |
passed |
0.183 |
2025-05-28T23:54:43.599543+00:00 |
2025-05-28T23:54:43.782116+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_read_performance |
passed |
0.371 |
2025-05-28T23:54:44.381279+00:00 |
2025-05-28T23:54:44.752234+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_concurrent_read_performance |
passed |
0.267 |
2025-05-28T23:54:46.647291+00:00 |
2025-05-28T23:54:46.914498+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_concurrent_write_performance |
passed |
0.520 |
2025-05-28T23:54:46.919114+00:00 |
2025-05-28T23:54:47.439433+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_system_under_stress |
passed |
16.364 |
2025-05-28T23:54:47.443994+00:00 |
2025-05-28T23:55:03.808380+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_resource_utilization |
passed |
10.456 |
2025-05-28T23:55:03.812657+00:00 |
2025-05-28T23:55:14.268245+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_system_recovery |
passed |
15.335 |
2025-05-28T23:55:14.273153+00:00 |
2025-05-28T23:55:29.608321+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_sustained_performance |
passed |
0.506 |
2025-05-28T23:55:29.611439+00:00 |
2025-05-28T23:55:30.117004+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_baseline_performance |
passed |
0.204 |
2025-05-28T23:55:30.119710+00:00 |
2025-05-28T23:55:30.323407+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_comparative_performance |
passed |
0.260 |
2025-05-28T23:55:30.328236+00:00 |
2025-05-28T23:55:30.588199+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_performance/test_load_scenarios.py::test_scalability |
passed |
0.229 |
2025-05-28T23:55:30.592578+00:00 |
2025-05-28T23:55:30.821188+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_ui/test_web_interface.py::test_login_page_loads |
passed |
0.474 |
2025-05-28T23:55:30.826892+00:00 |
2025-05-28T23:55:31.300873+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_ui/test_web_interface.py::test_login_with_valid_credentials |
passed |
1.216 |
2025-05-28T23:55:31.305052+00:00 |
2025-05-28T23:55:32.520683+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_ui/test_web_interface.py::test_dashboard_widgets_load |
passed |
0.122 |
2025-05-28T23:55:34.356013+00:00 |
2025-05-28T23:55:34.478005+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_ui/test_web_interface.py::test_responsive_design |
passed |
1.067 |
2025-05-28T23:55:34.481749+00:00 |
2025-05-28T23:55:35.548366+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_ui/test_web_interface.py::test_interactive_chart |
passed |
0.793 |
2025-05-28T23:55:36.968171+00:00 |
2025-05-28T23:55:37.761174+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_ui/test_web_interface.py::test_user_profile_page_loads |
passed |
0.568 |
2025-05-28T23:55:44.905907+00:00 |
2025-05-28T23:55:45.473498+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|
demo-tests/realistic/realistic_ui/test_web_interface.py::test_accessibility_compliance |
passed |
1.370 |
2025-05-28T23:55:47.880634+00:00 |
2025-05-28T23:55:49.250262+00:00 |
Captured stdout:(none)
Captured stderr:(none)
Captured log:(none)
Error/Traceback:None
|