Comments (3)
Having the same issue, and it's definately connected to the run_time variable. My guess is that the script is having a thread timeout prior to returning the resp_stats_list, or the stats_list object returned is None.
But it's a bugger of an issue, as I can't seem to get it consistently, and all my efforts to trap the issue in the "results.py" have been useless.
from multi-mechanize.
I 'm getting the same issue on Win 7 platform and also multiple results directories are being created with empty "results.csv" files. Is there a fix for code?
from multi-mechanize.
If the "elapsed time" for all of the threads (second field in a CSV result record) are longer than the run_time
config value, then the conditional, if elapsed_time < self.run_time:
on line 292
of results.py
(the __parse_file()
method of the Results
class) prevents any records being added to the resp_stats_list
list that the method returns. If the returned list has no entries, line 253
of results.py
in the __init__()
method of the Results
class will raise an exception since it tries to access index 0
of the returned list.
I'm not sure how the elapsed_time
value that gets written into the 2nd fields of the results.csv
records is calculated, but with my very simple test configuration (with run_time
set to 30
seconds), I consistently get this error since the elapsed_time
on every record is slightly larger than 30
(31.838
, 36.141
, etc.). This is definitely a problem.
Perhaps the __init__()
method of Results
should check the length of the resp_stats_list
returned by __parse_file()
and, if empty, output a useful error message so users don't get a confusing "index out of range" exception. They could be informed that they likely need to increase run_time
setting to be more than any values in the second column of results.csv
or something similar.
from multi-mechanize.
Related Issues (20)
- multimech-run causes infinite loop HOT 1
- Problem w/ sqlite database result storage. HOT 2
- multimech-run v1.2.0 does not work under Windows HOT 4
- Wrong number of threads HOT 1
- multi-mechanize still doesn't work on Windows HOT 5
- Wrong couting HOT 1
- Create transaction object with params defined in general config
- http://multimechanize.com/ -- domain expired HOT 1
- Add support for sqlalchemy 0.8.x
- Errors not reported correctly in results.csv
- Add header row to results.csv
- 'NoneType' object has no attribute 'Empty' HOT 1
- Traceback output while running
- Project Dead? HOT 4
- Website URL not working HOT 1
- what's the meaning of 80pct, 90pct & rate HOT 2
- can not find test script: v_user.py HOT 3
- how can I get the requests per second?
- Fix simple typo: exeption -> exception
- Create settings file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multi-mechanize.