No, I wasn't implying that selenium should be part of web2py.  I agree 
with you that it is more of an app.  But it would be nice to be able to 
invoke normal python unit tests from the admin interface.

-tim

mdipierro wrote:
> I only gave it a quick look but I like selenium, yet I do not believe
> it belongs to web2py. I think it is mainly client side so it belongs
> to an app.
>
> Massimo
>
>
> On Oct 17, 9:25 am, Timothy Farrell <[EMAIL PROTECTED]> wrote:
>   
>> Massimo,
>>
>> I implied in my previous post, that I don't use web2py's built-in
>> testing.  This brings me to a question...what is the "test" directory
>> for under the application root?  Since the admin interface only runs
>> doctests, what would be a good way of running a unittest that I place in
>> /applications/init/tests/ ?
>>
>> This sort of setup, combined with selenium-rc, would be the ultimate in
>> web app testing (well almost, but it's really close).
>>
>> -tim
>>
>> Timothy Farrell wrote:
>>     
>>> An excellent question.  Testing in web2py is somewhat of a misnomer
>>> since you use web2py to create web applications but you can only truly
>>> test the models or controllers, not the product of all three MVC
>>> components.  However, there isn't really a better way unless Massimo
>>> wants to include another external libary (and therefore dependency).
>>>       
>>> What I use for webpage testing is Selenium.  Selenium is a
>>> javascript-based scripting/testing engine.  However, it has Python
>>> modules that you can use to write and invoke tests (which it translates
>>> to Javascript and runs.)  It even has a cool IDE plugin for Firefox
>>> which makes test-making pretty easy.  Take a look.
>>> http://www.openqa.org/selenium/
>>>       
>>> -tim
>>>       
>>> morningovermidnight wrote:
>>>       
>>>> I've been reading earlier posts on unittests and using doctests in
>>>> web2py. I have tried and run some successful doctests in web2py.
>>>> However, it seems that the doctest is testing the value that my
>>>> function returns, as it should, but is there a way to write a test to
>>>> check an intermediate value in my function, say the value of a session
>>>> variable that is stored but not returned to the view?
>>>>         
>>>> Also, just curious, what are some of the solutions people here in the
>>>> group are using for testing and for debugging web2py applications?
>>>>         
>>
>>  tfarrell.vcf
>> < 1KViewDownload
>>     
> >
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

begin:vcard
fn:Timothy Farrell
n:Farrell;Timothy
org:Statewide General Insurance Agency;IT
adr:;;4501 East 31st Street;Tulsa;OK;74135;US
email;internet:[EMAIL PROTECTED]
title:Computer Guy
tel;work:(918)492-1446
url:www.swgen.com
version:2.1
end:vcard

Reply via email to