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

Run artillery within an express server loops infinite #264

Closed
cesarZubillaga opened this issue Feb 27, 2017 · 2 comments
Closed

Run artillery within an express server loops infinite #264

cesarZubillaga opened this issue Feb 27, 2017 · 2 comments
Labels

Comments

@cesarZubillaga
Copy link

Hi!

After artillery printing "all scenarios completed" i get infinite:

Report for the previous 10s @ 2017-02-27T09:43:03.046Z
  Scenarios launched:  0
  Scenarios completed: 0
  Requests completed:  0
  RPS sent: NaN
  Request latency:
    min: NaN
    max: NaN
    median: NaN
    p95: NaN
    p99: NaN
  Scenario duration:
    min: NaN
    max: NaN
    median: NaN
    p95: NaN
    p99: NaN

This is my enviroment:

artillery -V 1.5.1
node -v v6.8.0
express -v 4.14.1

I have created a repository so you can reproduce the error.

https://github.com/cesarZubillaga/artilleryexpresstesting

I have tested this with LTS node version 6.10.0 and last node 7.6.0 resulting in the same error.

Thanks

@hassy
Copy link
Member

hassy commented Mar 8, 2017

Thanks for the bug report @cesarZubillaga.

Potentially related to #238

@hassy hassy added the bug label Mar 8, 2017
hassy added a commit to hassy/artillery that referenced this issue Mar 8, 2017
hassy added a commit to hassy/artillery that referenced this issue Mar 8, 2017
@cesarZubillaga
Copy link
Author

To make my code run inside the server i did some changes and now i am running artillery as a command. I needed to capture the output and send to the client. This is how i solved it.

BTW thanks for this cool tool.

var exec = require('child_process').exec;
var command = 'artillery run test.yml';
var child = exec(command);
child.stdout.on('data', function(data) {
      //do what you want with the data output of the command
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants