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

error when re-running the tests #17

Closed
stoefln opened this issue May 16, 2011 · 7 comments
Closed

error when re-running the tests #17

stoefln opened this issue May 16, 2011 · 7 comments

Comments

@stoefln
Copy link

stoefln commented May 16, 2011

hi there!

mink is awesome - thank you!
unfortunatelly i get an error after running the tests a second time:
"PHP Fatal error: Class 'Behat\SahiClient\Expection\ConnectionException' not found in /Library/WebServer/Documents/eventiply/vendor/Behat/SahiClient/src/Behat/SahiClient/Client.php on line 64"

When i restart the sahi service, and restart the test it works very well again- but just once :/

BR Stephan

@everzet
Copy link
Contributor

everzet commented May 16, 2011

Oh... We have 2 problems here, actually. One mine and one yours ;-)

  1. I've misstyped exception message, so you can't get correct error feedback. The good news it is fixed now ;-)
  2. You're trying to start already started session. Instead, you need to do either thing:
    • do not start already started driver, cuz... you know... it's already started, dude ;-)
    • you can stop and then, safely start driver, but why, when you have option to just:
    • reset the driver instead of it's restarting

You can choose either of those 3, but you should choose 1 or 3.

@everzet everzet closed this as completed May 16, 2011
@stoefln
Copy link
Author

stoefln commented May 16, 2011

thanks for explaining. i m not sure but i think you got me wrong:
i DID start the sahi service (=session?) just once. what i startet twice is the test run:
1.) i run the test. everythings fine, browser pops up, some action, browser closes (sahi service is running...)
2.) i run the test again. testingprocess hangs for about 30seconds then it throws the upper exception.
3.) i quit the sahi service and start it again
4.) i run the test again- everythings fine again

@everzet
Copy link
Contributor

everzet commented May 16, 2011

Oh, looks like we have a real problem here ;-)

Yes, we have some missunderstanding in terms of driver/session. I'll fix it today (hopefuly).
Show me your code, please.

@everzet everzet reopened this May 16, 2011
@everzet
Copy link
Contributor

everzet commented May 16, 2011

BTW. It would be better if you could talk with me now in gtalk: ever.zet@gmail.com

@stoefln
Copy link
Author

stoefln commented May 16, 2011

cool thanks for your support. will look how to install gtalk tomorrow. just have skype and IRC :/

@stoefln stoefln closed this as completed May 16, 2011
@stoefln stoefln reopened this May 16, 2011
@everzet
Copy link
Contributor

everzet commented May 16, 2011

You will be happy to know, that your bug was totally fixed just now with 0.3.1 ;-) Update to Mink 0.3.1 and brand new MinkBundle.

But notice, that Mink "driver" switching API slightly changed - now, you don't talk with drivers directly, only with sessions, which is cleaner and simplier interface. I've updated MinkBundle and Mink repo readme's to reflect all changes.

Have a fun ;-)

@everzet everzet closed this as completed May 16, 2011
@stoefln
Copy link
Author

stoefln commented May 17, 2011

thanks a lot!

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