Hi Benjamin!

On Mi, 28 Jul 2010, Benjamin R. Haskell wrote:
> 
> Is anyone aware of anything like a terminal-emulator version of 
> Selenium?  I've thought for several things like this that that would be 
> incredibly useful.
> 
> Brief summary of Selenium is that it's an automated web application 
> testing toolkit.  It consists of a scripting language with capabilities 
> like (pseudocode):
> 
> open(URL)
> type 'bhaskell' in the 'username' field
> click the button with name 'login'
> 
> and corresponding tests, like:
> verify that the text 'logged in' appears in the current page
> ensure that there's a 'div' with id attribute 'maincontent'
> 
> It has support for a wide range of browsers (ie/moz/chromium/opera).  
> And it supports creating template profiles (so, starting Firefox with 
> GreaseMonkey already installed).  I've used it at my current job to test 
> things via a headless X server (Xvfb).
> 
> For Vim's purposes, a similar framework with support for a wide range of 
> terminal emulators (for non-gvim) and the major GUI frameworks (Vim 
> supports GTK and ...?) would be very handy.
> 
> Scripts like:
> 
> execute(vim -U NONE -u NONE -N)  " start vim
> type ':e testfile'               " edit a new file
> type 'isometext<esc>'            " insert 'sometext'
> click and drag from column 3-6   " highlight the 'mete' portion
> type 'o'                         " open new line
> middle-click on terminal         " terminal-paste the 'mete'
> 
> Tests like:
> 
> ensure that the buffer displays "sometext\nmete"
> 

That reminds me, that I have once read about a test tool, that the 
author of the rss reader newsbeuter has written, to test newsbeuter. 

Ah, here is the announcement (sorry, German only):
http://synflood.at/blog/index.php?/archives/758-Automatisiertes-Text-User-Interface-Testing.html

and the github page:
http://github.com/akrennmair/tuitest

regards,
Christian

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui