[Interest] Unit test framework

Konrad Rosenbaum konrad at silmor.de
Fri Mar 9 14:25:43 CET 2018


Hi,

On Fri, March 9, 2018 06:35, Himanshu Vishwakarma wrote:
> I have certain question rise after doing much research. please the
> clear my confusion.

I can clearly see the confusion...

..let's see whether we can clear some things up! ;-)

> Q1. A squish is a software by which we can test the software
> graphically i.e. in GUI mode ?? please comments...

You misunderstand "GUI Test" - it's not a (unit) test framework displaying
results in a GUI, but rather it is a framework that is supposed to test
the GUI of the application under test. Squish can actually run automated
without its own GUI and use a virtual (invisible) screen/terminal to
"display" the application being tested.

Please try to read up on the many different kinds of tests that exist in
the software engineering field. Just to give you some key words you can
type into Google/Wikipedia/whatever:

* white box vs. black box tests
* unit tests
* integration tests
* system tests
* GUI tests
* manual vs. automated tests
* data driven tests
* behavior driven tests
* usability tests
* A/B tests
* test driven development
etc.

Once you've gotten an overview of the width and breadth of testing you may
be better able to discern where in this spectrum your project lies.

> Q2. If yes, there must be alternative by we can test the software in
> non-GUI mode also. If yes, then what are the methods??

There are dozens, if not hundreds of test frameworks out there. Just for
GUI Test frameworks see (1).

(1) https://en.wikipedia.org/wiki/Comparison_of_GUI_testing_tools

Most of them have at least an automatable non-GUI mode and some have an
additional GUI mode.

For Qt based applications/libraries the most commonly used tools are the
built in QtTest module for unit tests and Squish for GUI tests.

There are of course others, but those are the two most of us "senior Qt
citizens" are familiar with and both of them are conveniently automatable.



  Konrad




More information about the Interest mailing list