Picon
Gravatar

Cleaning stuff up after running twill script

Hello, all!

I am using Twill for automatically test an application. It is great!
However, I've found it cumbersome to execute a cleanup process after
some test fails. In fact, I use Python and Bash for cleaning the mess
up.

Have someone a plan for implementing some kind of "finally" option for
Twill - I mean, a way to specify that some commands should be executed
at the end of the script even if the script fails? It is not
absolutely necessary but seems as a practical functionality.

Thanks in advance!

--

-- 
Adam Victor Nazareth Brandizzi
http://brandizzi.googlepages.com/
Ethan Jucovy | 22 Jan 2011 22:42
Picon
Gravatar

Re: Cleaning stuff up after running twill script

Hey,


You should take a look at flunc, a test runner that uses twill scripts for tests, and includes this cleanup feature:


-Ethan

On Sat, Jan 22, 2011 at 3:53 PM, Adam Victor Nazareth Brandizzi <brandizzi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hello, all!

I am using Twill for automatically test an application. It is great!
However, I've found it cumbersome to execute a cleanup process after
some test fails. In fact, I use Python and Bash for cleaning the mess
up.

Have someone a plan for implementing some kind of "finally" option for
Twill - I mean, a way to specify that some commands should be executed
at the end of the script even if the script fails? It is not
absolutely necessary but seems as a practical functionality.

Thanks in advance!

--
Adam Victor Nazareth Brandizzi
http://brandizzi.googlepages.com/

_______________________________________________
twill mailing list
twill-zFNWeKVCUJJD5a/XDn3G2A@public.gmane.org
http://lists.idyll.org/listinfo/twill

_______________________________________________
twill mailing list
twill@...
http://lists.idyll.org/listinfo/twill
Picon
Gravatar

Re: Cleaning stuff up after running twill script

On Sat, Jan 22, 2011 at 7:42 PM, Ethan Jucovy <ethan.jucovy@...> wrote:
> Hey,
> You should take a look at flunc, a test runner that uses twill scripts for
> tests, and includes this cleanup feature:

Thank you, Ethan, that is exactly what I was looking for!

--

-- 
Adam Victor Nazareth Brandizzi
http://brandizzi.googlepages.com/
Christoph Zwerschke | 25 Jan 2011 22:23
Picon
Gravatar

Re: Cleaning stuff up after running twill script

Am 22.01.2011 22:42 schrieb Ethan Jucovy:
> You should take a look at flunc, a test runner that uses twill scripts
> for tests, and includes this cleanup feature:
>
> http://pypi.python.org/pypi/flunc

Nice, was not aware this existed, need to check it out. Found two broken 
links yesterday, but seems you already fixed them :) There is still a 
broken link to TestGen4Web on http://pypi.python.org/pypi/flunc/0.7. Can 
you fix that, too? Also, links to the PyPI pages for flunc and 
fluncrunner on the Flunc homepage would be helpful.

-- Christoph
Ethan Jucovy | 26 Jan 2011 20:16
Picon
Gravatar

Re: Cleaning stuff up after running twill script

On Tue, Jan 25, 2011 at 4:23 PM, Christoph Zwerschke <cito-BGeptl67XyCzQB+pC5nmwQ@public.gmane.org> wrote:
Am 22.01.2011 22:42 schrieb Ethan Jucovy:

You should take a look at flunc, a test runner that uses twill scripts
for tests, and includes this cleanup feature:

http://pypi.python.org/pypi/flunc

Nice, was not aware this existed, need to check it out. Found two broken links yesterday, but seems you already fixed them :) There is still a broken link to TestGen4Web on http://pypi.python.org/pypi/flunc/0.7. Can you fix that, too? Also, links to the PyPI pages for flunc and fluncrunner on the Flunc homepage would be helpful.
 
Whoops, the TestGen4Web link on the PyPI page is now fixed.  Thanks for pointing that out - let me know if you find any other broken links.  And I added the PyPI link on the project homepage.  

Fluncrunner (http://pypi.python.org/pypi/fluncrunner) is an experimental wrapper for running flunc tests through the web -- experimental meaning it works, but the docs are probably outdated, it may not be secure and it's probably inefficient.  I wrote it with dreams of a sort of mini-CMS for suites of twill scripts: users uploading flunc test suites to automate their common tasks on the web, webhooks triggering scripts based on the results of other scripts, stuff like that.  Unfortunately most public websites don't have stable enough HTML "API"s for this to be useful :( but maybe for narrow targets it would still be useful.

Feel free to join the mailing list <flunc-dev-81qHHgoATdGNjXQcXLqYpGD2FQJk+8+b@public.gmane.org> or fork the github mirror (https://github.com/socialplanning/flunc) - we've never done much to publicize the project, but it's stable and useful if you're already sold on using twill scripts for your test suites (which I am).

-Ethan

_______________________________________________
twill mailing list
twill@...
http://lists.idyll.org/listinfo/twill

Gmane