Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GTK+ user interface testing

Tags:

c

testing

gtk

I have created a user interface using GTK+ and C. I was wondering if there are any testing frameworks for testing this interface, similar to how selenium (a software testing framework for web applications) can be used for testing the interfaces of web applications. I want to create some regression tests for my GTK+ interface. Thanks!

like image 636
Corey Jeffco Avatar asked Oct 14 '22 23:10

Corey Jeffco


2 Answers

I know it has been answered already. However ...

Dogtail is very usefull, however Dogtail isn't a unittest framework. From it's own description:

dogtail is a GUI test tool and automation framework written in ​Python. It uses Accessibility (a11y) technologies to communicate with desktop applications. dogtail scripts are written in Python and executed like any other Python program.

If you want to unit test your GTK applications you should look at GLIB TESTING. A unit testing framework for GLIB written in C for C applications.

like image 152
oz123 Avatar answered Nov 05 '22 19:11

oz123


Check out dogtail.

like image 45
florin Avatar answered Nov 05 '22 19:11

florin