Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s-soroosh/loadimpact-jmx-importer
https://github.com/s-soroosh/loadimpact-jmx-importer
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/s-soroosh/loadimpact-jmx-importer
- Owner: s-soroosh
- Created: 2014-11-19T11:09:05.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-22T13:00:51.000Z (almost 10 years ago)
- Last Synced: 2023-05-25T03:10:19.500Z (over 1 year ago)
- Language: Python
- Size: 285 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
loadimpact-jmx-importer
=======================This project is an easy to use API for converting your Jmeter JMX files to a compatible scenario and configuration for http://loadimpact.com platform.
HOW TO USE
==========1. First you need to set your API Token in settings.py
2. Select an appropriate TIME_ZONE and USER_TYPE and set them in settings.py
3. import jmx_importer
4. pass jmx file paths to upload_jmx_files method as a list.```
import jmx_importer
api = jmx_importer.SimpleAPI()
failed_results = api.upload_jmx_files(['path_to_jmx1','path_to_jmx2'])
map(lambda failed_result: print 'File: %s, Error is:%s' % failed_result ,failed_results)
```Note: The result of upload_jmx_files is a list of tuples which contains failed jmx path and its error.
Note: You can pass boolean value for fail_fast parameter. If fail_fast is True then uploading will stop on first failure.Also you could use jmx_importer to upload just scenario or create just test configuration. For more information please check the tests.