php - laravel selenium testing - Auth::login -


Using Laravel 4, I'm trying to run some Selenium tests but want to auto login users.

  $ this-> _user = User :: create ([...]); Authentication :: Login ($ this-> _user); ... or ... $ this-> App ['auth'] - & gt; Login ($ this-> _user); Neither work nor (even with  $ this-> startSession () )  

I have also tried to retrieve the session ID and $ this-> app ['session'] - & gt; SetId ($ id);

With two leading calls, what is the correct way to modify the session in the browser?

Edit: I think the problem generates a unique ID from ash: protector :: rewards

If you want to fill in the admission form to use Selenium, you do not have to worry about unique session IDs. Selenium can log on to the website as a normal user.

However, if you want to bypass the login page and log in directly to the website, then you will need to save the login authentication cookies and then use it in all your test scripts. It is in Python.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -