On 2011-01-27, Tommaso Cucinotta wrote:

> I'd like to have a set of automated tests for:
> -) searching stuff in a number of cases (e.g., various combinations of 
> options from the GUI) for a few simple test .lyx files;
> -) emulating the hit of the "Find Next" button by the user and checking 
> whether the selected text matches with what should be found: this is the 
> key point, I don't want to check merely whether I get a crash or not, 
> but I'd like to extract some information from the program (e.g., cursor 
> position, selection begin and end, perhaps latex export of parts of the 
> text) and compare them with their pre-computed expected values;
> -) stressing searching and replacing under various borderline conditions.

The lyx server can be used to execute any LFUN.

Some years (and LyX versions) ago, I wrote an object-oriented Python
interface package which should be very helpful (if your test scripts are
in Python) and can be found under http://wiki.lyx.org/Tools/PyClient

Günter


Reply via email to