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

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

Open
0UserName opened this issue Dec 1, 2019 · 1 comment
Open

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

0UserName opened this issue Dec 1, 2019 · 1 comment

Comments

@0UserName
Copy link

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
41. response = get_response(request)

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/JMeter-Control-Center/analyzer/views/analyzer_views.py" in upload_test_result_file
92. jmeter_results_file_fields=csv_file_fields)

File "/JMeter-Control-Center/controller/views/data_generator.py" in generate_test_results_data
223. )].groupby(pd.TimeGrouper(freq=data_resolution))

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

@v0devil
Copy link
Member

v0devil commented Dec 2, 2019

Hey, plz pull master again. Was used the outdated function.
8a02259

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

2 participants