LearnBoost / tobi

Tobi: Expressive server-side functional testing with jQuery
408 stars 33 forks source link

Connection Refused #61

Open pvencill opened 13 years ago

pvencill commented 13 years ago

Tried following the example on the docs and get "connection refused". The app works fine when I fire it up in node and navigate through curl or a browser.

craftgear commented 13 years ago

Don't you write like this?

browser = tobi.createBrowser("3000", "localhost");

This makes "Error: ECONNREFUSED, Connection refused" error.

Make sure the first argument is a number not a string.

browser = tobi.createBrowser(3000, "localhost");
yevgenko commented 12 years ago

thank @craftgear browser = tobi.createBrowser(3000, "localhost"); works for me, probably typo in readme?? i.e.:browser = tobi.createBrowser(app); doesn't work "Error: ECONNREFUSED, Connection refused"

craftgear commented 12 years ago

no worries :-)

nagyv commented 12 years ago

I have the same error:

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: connect ECONNREFUSED
    at errnoException (net.js:642:11)
    at Object.afterConnect [as oncomplete] (net.js:633:18)

I've tried both browser = tobi.createBrowser(3000, 'localhost'); and browser = tobi.createBrowser(app);, the same error occured

my code is simply a vow topic

      browser.post(
        '/register', 
        {
          login: 'mylogin', 
          password: 'password',
          password2: 'password'
        }, 
        this.callback
      );

I'm running tobi 0.3.2, express 2.5.8, node 0.6.10

any ideas how to avoid this error? even a working version triad is fine :)

richzw commented 12 years ago

+1