TextTest 3.21 : blackbox testing with a Python slant

2011-03-27 Thread Geoff Bache
Hi all,

There's a new version of the black-box test tool TextTest out.

The "Traffic interception mechanism" has split off into a new project
"CaptureMock", some migration is needed
Otherwise, there are six months worth of generally minor enhancements
and bug fixes across the board.

Regards,
Geoff Bache


TextTest is a tool for automatic text-based functional testing. This
means running a batch-mode executable in lots of different ways from
the command line, and using the text output produced as a means of
controlling the behavior of that application. As well as being usable
"standalone", it is an extendable framework for black-box testing
written in Python. It's also useful as a test management tool wrapping
some other test tool as a test runner.

Homepage: http://www.texttest.org
Download: http://sourceforge.net/projects/texttest
Mailing list: https://lists.sourceforge.net/lists/listinfo/texttest-users
Bugs: https://bugs.launchpad.net/texttest
Source: https://code.launchpad.net/texttest
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


CaptureMock 0.1 - honestly not just yet another mocking framework!

2011-03-27 Thread Geoff Bache
Hi all,

I can hear the groans already that here comes Python Mocking Framework
Number 15 with new and improved syntax on the other 14, but plase hear
me out for a paragraph or two! I've been following the Python mocking
framework discussions with interest and wondered about joining in with
my own contribution, but as this one is a bit different and is trying
to solve a slightly different problem I've stayed out of it so far.

The problem I'm (primarily) addressing is mocking out substantial
subsystems and third-party modules when doing functional tests, and
being easily able to handle the situation when the mocked subsystem
changes its behaviour. I've found in the past that it's easy for mocks
to diverge from what the real system does, and continue to pass even
when the real code will break. Where other mocking frameworks
primarily focus on mocking code that you own and write yourself,
CaptureMock is more about mocking out code that you don't own.

Anyway, I've created a mock framework that captures interaction with
any given module, attribute or function, and stores the results in a
text file. Any tests using it can then either be run in record or
replay mode each time they are run. An obvious setup is therefore to
ordinarily use replay mode but to re-record if anything in the
interaction changes. And perhaps to have a CI setup somewhere that
always uses record mode and hence verifies that the integration still
works.

Using it doesn't really involve writing mock code like existing mock
tools do. It just requires saying what you want to capture:

from capturemock import capturemock

@capturemock("smtplib")
def test_something_sending_email():
    # etc

@capturemock("datetime.datetime.now")
def test_some_real_time_code():
    # etc

@capturemock("matplotlib")
def test_my_graph_stuff():
    # etc

For more details (including what the recorded format looks like), see
http://www.texttest.org/index.php?page=capturemock
and obviously install from PyPI with "pip install capturemock" or similar.

Any feedback much appreciated. I've been using it for some time, it's
been hardwired into my TextTest tool until now, but it should be
regarded as Alpha outside that context for obvious reasons...

Regards,
Geoff Bache
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


RedNotebook 1.1.4

2011-03-27 Thread Jendrik Seipp

A new RedNotebook version has been released.

You can get the tarball, the Windows installer and links to distribution 
packages at

http://rednotebook.sourceforge.net/downloads.html


What is RedNotebook?

RedNotebook is a **graphical journal** and diary helping you keep track 
of notes and thoughts. It includes a calendar navigation, customizable

templates, export functionality and word clouds. You can also format,
tag and search your entries. RedNotebook is available in the 
repositories of most common Linux distributions and a Windows installer 
is available. It is written in Python and uses GTK+ for its interface.



What's new?
---
* Add "phone call" and "personal" templates
* Fix: Application crashes while resetting last position (LP:728466)
* Fix: Editing a category entry that contains a \\ removes the new line 
symbol (LP:719830)

* Fix: Introductory text is not translated
* Fix: Properly convert dates to unicode
* When a format (bold, etc.) is applied with no text selected, add 
whitespace, not descriptive text

* Add a tooltip for the edit button
* Improve introductory text
* Improve help text
* Do not refer to annotations as "nodes" but as "entries"
* Translate the word "Categories" in exports
* In statistics window use "Selected Day" instead of "Current Day"
* Cleanup GUI glade file
* Many translations updated

Cheers,
Jendrik





--
http://mail.python.org/mailman/listinfo/python-announce-list

   Support the Python Software Foundation:
   http://www.python.org/psf/donations/