innogames / ltc

Online web application-dashboard for report analyzing,running and online monitoring of load tests started with JMeter
MIT License
197 stars 96 forks source link

Failed to upload result file in CSV format [2] #26

Open 0UserName opened 4 years ago

0UserName commented 4 years ago

Can you provide more information about the format, because according to #7 I can use any order of submission, if it is the same as in the file.

The timestamp must be always in the first column so we do not point it, everything else must be entered with the same order as in CSV file, all non-mandatory columns your can name as you want.

Specified file:

1575228262138,422,200,true,https://bla-bla/api/Auth/SignIn
1575228262111,449,200,true,https://bla-bla/api/Auth/SignIn

Specified fields:

response_time,responseCode,success,url

The latest version from the master branch is used. When I try to upload a file, I get an error message:

Environment:

Request Method: POST Request URL: http://localhost:8888/analyzer/upload/test_result_file/

Django Version: 1.11.20 Python Version: 3.6.9 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'analyzer', 'online', 'controller', 'jltc_web', 'administrator'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']

Traceback:

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner

  1. response = get_response(request)

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response

  1. response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response

  1. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/JMeter-Control-Center/analyzer/views/analyzer_views.py" in upload_test_result_file

  1. jmeter_results_file_fields=csv_file_fields)

File "/JMeter-Control-Center/controller/views/data_generator.py" in generate_test_results_data

  1. )].groupby(pd.TimeGrouper(freq=data_resolution))

Exception Type: AttributeError at /analyzer/upload/test_result_file/ Exception Value: module 'pandas' has no attribute 'TimeGrouper'

v0devil commented 4 years ago

Hey, plz pull master again. Was used the outdated function. https://github.com/innogames/JMeter-Control-Center/commit/8a022591f7fda70b5bd216473bddecbbd4bfff63