On Sun, Jun 9, 2013 at 4:40 AM, Tomas Schertel <[email protected]> wrote: > On Saturday, 8 June 2013 09:04:25 UTC-3, Nickname wrote: >> >> Hi, >> >> currently I'm testing my web.py application using twill. I'm not >> happy with twill, however, mainly because I have to reference >> forms and form fields by number (1st, 2nd, ...). I would like to >> reference by id, name etc. >> >> I'm looking into two alternatives to twill: webtest and webunit. >> Does anybody have experiences with either framework? >> Or another one?
I played with webtest and I have to say that it is very powerful: I used it to test the endpoints of a REST API (with standard HTTP status codes, file uploads and stuff like that..) and it worked like a charm. Sometimes the documentation leaves something to be desired but in the end it is I have always found the solution to my problems. My two cents, Matteo >> >> To me, it is important that: >> - I don't need to start a web server, i.e. testing uses the >> WSGI interface directly >> - I don't need a web browser (such as with selenium) >> >> With twill, this works fine, but with the forementioned >> limitation. >> >> TIA and cheers > > > Maybe you can use web.browser: > >>>> import web >>>> web.browser.__doc__ > 'Browser to test web applications.\n(from web.py)\n' > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/webpy?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/webpy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
