[web2py] Re: A new and easier way to test your apps

2020-07-31 Thread 'Daniela Festi' via web2py-users
> did you or someone else manage to login anybody with webclient and a > correct email address ? > I managed today. For my testcases, I separated the user registration and the user login and ran into the same problem. The solution was to call client.get() one time before calling the client

[web2py] Re: A new and easier way to test your apps

2016-10-21 Thread Pierre
I managed to register Homer Simpson but he can't login..it is sad...:( did you or someone else manage to login anybody with webclient and a correct email address ? Homer's "resurrection" seems tricky so I leave it for now -- Resources: - http://web2py.com - http://web2py.com/book (

[web2py] Re: A new and easier way to test your apps

2016-10-15 Thread 黄祥
perhaps its about the email value : ho...@web2py.com change it into another correct email format best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report

[web2py] Re: A new and easier way to test your apps

2016-10-15 Thread Pierre
Hi, i am testing my app with Massimo's webclient. I did some requests and everything went fine but I can't login users either with their username or email I use the same code as below : I get a client.status=200 but the assert Welcome fails ? I printed client.text and searched manually for the '

[web2py] Re: A new and easier way to test your apps

2016-06-28 Thread David Ripplinger
Thanks. I realized that I was assuming that when testing it out in the python shell the working directory would be translated, which apparently it was not. When instead I ran it as a script from within the web2py directory, it worked fine. On Saturday, June 25, 2016 at 11:20:59 AM UTC-6, Anthon

[web2py] Re: A new and easier way to test your apps

2016-06-27 Thread Marlysson Silva
More or less, Is that I saw the webclient.py at web2py documentation, and long times ago, but anyway great funcionality. Em segunda-feira, 27 de junho de 2016 14:03:08 UTC-3, Anthony escreveu: > > On Monday, June 27, 2016 at 6:59:01 AM UTC-4, Marlysson Silva wrote: >> >> Cool, but I was no longer

[web2py] Re: A new and easier way to test your apps

2016-06-27 Thread Anthony
On Monday, June 27, 2016 at 6:59:01 AM UTC-4, Marlysson Silva wrote: > > Cool, but I was no longer in gluon? > Or it's a change? > Are you asking whether the webclient.py file is still in gluon? Yes, inside /contrib, exactly at the link shown below. Anthony > > Em quarta-feira, 29 de agosto d

[web2py] Re: A new and easier way to test your apps

2016-06-27 Thread Marlysson Silva
Cool, but I was no longer in gluon? Or it's a change? Em quarta-feira, 29 de agosto de 2012 19:49:14 UTC-3, Massimo Di Pierro escreveu: > > I think you are going to like this: > https://github.com/web2py/web2py/blob/master/gluon/contrib/webclient.py > > start web2py on port 8000. Then in a normal

[web2py] Re: A new and easier way to test your apps

2016-06-25 Thread Anthony
If you're running a script from somewhere outside the web2py directory, then of course you must ensure web2py is in the Python path. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web

[web2py] Re: A new and easier way to test your apps

2016-06-25 Thread David Ripplinger
It exists in ~/web2py/gluon/contrib/. Should this be copied to a system directory? Should I have done another step to put the web2py folder on the python PATH? On Saturday, June 25, 2016 at 6:48:42 AM UTC-6, Anthony wrote: > > Is there a webclient.py file in your gluon/contrib folder? -- Resou

[web2py] Re: A new and easier way to test your apps

2016-06-25 Thread Anthony
Is there a webclient.py file in your gluon/contrib folder? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subsc

[web2py] Re: A new and easier way to test your apps

2016-06-25 Thread David Ripplinger
How come when I try `from gluon.contrib.webclient import WebClient` I get `No module named gluon.contrib.webclient`? On Wednesday, August 29, 2012 at 4:49:14 PM UTC-6, Massimo Di Pierro wrote: > > I think you are going to like this: > https://github.com/web2py/web2py/blob/master/gluon/contrib/web

[web2py] Re: A new and easier way to test your apps

2012-08-30 Thread Massimo Di Pierro
In 2.0.2 it is even simpler: from gluon.contrib.webclient import WebClient client = WebClient('http://127.0.0.1:8000/welcome/default/') client.get('user/register') data = dict(first_name = 'Homer', last_name = 'Simpson', email = 'ho...@web2py.com'

[web2py] Re: A new and easier way to test your apps

2012-08-29 Thread Michael Toomim
Sometimes you write things that are just really exciting. --

[web2py] Re: A new and easier way to test your apps

2012-08-29 Thread Dave
Very cool! On Wednesday, August 29, 2012 6:49:14 PM UTC-4, Massimo Di Pierro wrote: > > I think you are going to like this: > https://github.com/web2py/web2py/blob/master/gluon/contrib/webclient.py > > start web2py on port 8000. Then in a normal python shell: > > from gluon.contrib.webclient i

[web2py] Re: A new and easier way to test your apps

2012-08-29 Thread Massimo Di Pierro
added: session.time (the time of last request) session.history (a log of all previous requests) On Wednesday, 29 August 2012 18:16:34 UTC-5, Massimo Di Pierro wrote: > > Some simplifications: > > I think you are going to like this: > https://github.com/web2py/web2py/blob/master/gluon/contrib/webc

[web2py] Re: A new and easier way to test your apps

2012-08-29 Thread Massimo Di Pierro
Some simplifications: I think you are going to like this: https://github.com/web2py/web2py/blob/master/gluon/contrib/webclient.py start web2py on port 8000. Then in a normal python shell: from gluon.contrib.webclient import WebClient session = WebClient('http://127.0.0.1:8000/welcome/def