Re: [Zope3-Users] zope.testbrowser and vhost
Gary Poster schrieb: > > On Jan 2, 2007, at 2:29 PM, Benji York wrote: > >> Dominique Lederer wrote: >>> i see there is a VirtualHostingBrowser class in >>> zope.testbrowser.testing, but i dont have a clue on how to use this. >> >> Use VirtualHostTestBrowserSuite instead of >> unittest.TestSuite and the tests you add to the suite will be run >> twice: once normally and again in a virtual hosting environment. > > Right now it doesn't have the flexibility to do what it sounds like you > want (i.e., insert a skin). Some small adjustments could probably make > it possible. As long as the default behavior doesn't change I think it > would be fine. > > mea culpa for the lack of docs and tests. They are welcome. > > Gary Thanks for your responses, what i would like to do is ftesting an application from the users side (behind a skin), which already has some data stored in the ZODB, so i first tried to >>> browser.open('http://localhost/myapp/') but i got a 404 same result with accessing a skin then i tried >>> browser.open('http://localhost/') >>> browser.contents an tried to find the myapp entry in the html-code, but myapp is gone. Is this because of a clean environment generated with zope.testbrowser.testing ? ok, now i could test the UI behavior of myapp with zope.testbrowser.browser, but how would i revert changes i made with the test? or is there any other approach to this? thanks Dom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] zope.testbrowser and vhost
On Jan 2, 2007, at 2:29 PM, Benji York wrote: Dominique Lederer wrote: i see there is a VirtualHostingBrowser class in zope.testbrowser.testing, but i dont have a clue on how to use this. Use VirtualHostTestBrowserSuite instead of unittest.TestSuite and the tests you add to the suite will be run twice: once normally and again in a virtual hosting environment. Right now it doesn't have the flexibility to do what it sounds like you want (i.e., insert a skin). Some small adjustments could probably make it possible. As long as the default behavior doesn't change I think it would be fine. mea culpa for the lack of docs and tests. They are welcome. Gary ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] zope.testbrowser and vhost
Dominique Lederer wrote: i see there is a VirtualHostingBrowser class in zope.testbrowser.testing, but i dont have a clue on how to use this. Use VirtualHostTestBrowserSuite instead of unittest.TestSuite and the tests you add to the suite will be run twice: once normally and again in a virtual hosting environment. -- Benji York Senior Software Engineer Zope Corporation ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] zope.testbrowser and vhost
hi! i would like to use zope.testbrowser to test my vhosted site http://localhost:8080/++skin++myskin/mysite/++vh++http:my.example.com:80/++/ i see there is a VirtualHostingBrowser class in zope.testbrowser.testing, but i dont have a clue on how to use this. any help would be nice. thanks Dom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users