2025-05-22 09:42:32,246 - INFO - Initialized API Performance Tester 2025-05-22 09:42:32,246 - INFO - Host: http://localhost:5000 2025-05-22 09:42:32,246 - INFO - Concurrency: 10 2025-05-22 09:42:32,246 - INFO - Duration: 30 seconds 2025-05-22 09:42:32,246 - INFO - Running load test... 2025-05-22 09:42:32,246 - INFO - Starting load test with 10 concurrent users for 30 seconds 2025-05-22 09:42:32,246 - INFO - Authenticating test users... 2025-05-22 09:42:32,258 - WARNING - No authentication tokens obtained. Some tests may fail. 2025-05-22 09:43:02,565 - INFO - Load test completed in 30.31 seconds 2025-05-22 09:43:02,566 - INFO - Processed 1002 requests 2025-05-22 09:43:02,567 - INFO - Report saved to test_reports/load_test_report_20250522_094232.json 2025-05-22 09:43:02,928 - INFO - Chart saved to test_reports/load_test_chart_20250522_094232.png 2025-05-22 09:43:02,929 - INFO - Running stress test... 2025-05-22 09:43:02,929 - INFO - Starting stress test to find breaking points 2025-05-22 09:43:02,929 - INFO - Authenticating test users... 2025-05-22 09:43:02,941 - INFO - Testing with 5 concurrent users 2025-05-22 09:43:13,290 - INFO - Concurrency 5: Error rate 100.00%, Avg response time 0.0029s 2025-05-22 09:43:13,290 - INFO - Breaking point detected at 5 concurrent users 2025-05-22 09:43:13,290 - INFO - Error rate: 100.00% 2025-05-22 09:43:13,290 - INFO - Avg response time: 0.0029s 2025-05-22 09:43:13,290 - INFO - Report saved to test_reports/stress_test_report_20250522_094232.json 2025-05-22 09:43:13,290 - INFO - Running endurance test... 2025-05-22 09:43:13,290 - INFO - Starting endurance test for 2 minutes 2025-05-22 09:43:13,290 - INFO - Authenticating test users... 2025-05-22 09:43:13,300 - ERROR - Error running tests: a coroutine was expected, got <_GatheringFuture pending> 2025-05-22 09:43:13,301 - ERROR - Traceback (most recent call last): File "/home/bishal/Desktop/skill_darbar_web/ashlya_academy_home/AshlyaAcademy_api/test/api_performance_test.py", line 660, in main endurance_results = await tester.run_endurance_test(endurance_duration) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/skill_darbar_web/ashlya_academy_home/AshlyaAcademy_api/test/api_performance_test.py", line 494, in run_endurance_test gather_task = asyncio.create_task(asyncio.gather(*tasks)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/tasks.py", line 420, in create_task task = loop.create_task(coro) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/base_events.py", line 458, in create_task task = tasks.Task(coro, loop=self, name=name, context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: a coroutine was expected, got <_GatheringFuture pending> 2025-05-22 09:43:13,303 - ERROR - _GatheringFuture exception was never retrieved future: <_GatheringFuture finished exception=CancelledError()> Traceback (most recent call last): File "/home/bishal/Desktop/skill_darbar_web/ashlya_academy_home/AshlyaAcademy_api/test/api_performance_test.py", line 291, in user_simulation result = await self.make_request(session, endpoint_name, config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/skill_darbar_web/ashlya_academy_home/AshlyaAcademy_api/test/api_performance_test.py", line 233, in make_request async with session.get(full_url, headers=headers, timeout=10) as response: File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/client.py", line 1425, in __aenter__ self._resp: _RetType = await self._coro ^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/client.py", line 703, in _request conn = await self._connector.connect( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/connector.py", line 548, in connect proto = await self._create_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/connector.py", line 1056, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/connector.py", line 1357, in _create_direct_connection hosts = await self._resolve_host(host, port, traces=traces) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/bishal/Desktop/AshlyaAcademy_api/fresh_venv/lib/python3.12/site-packages/aiohttp/connector.py", line 995, in _resolve_host return await asyncio.shield(resolved_host_task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ asyncio.exceptions.CancelledError