Questions tagged [qttest]

QtTest is a Qt module for unit testing Qt applications and libraries.

Documentation can be found here.

81 questions
0
votes
1 answer

Testing the opening of files using QTestLib

I am new to unit testing and the Qt framework. I have been assigned to write a unit test to test the opening of text files. I have looked the the tutorials for Qt test. But I have no idea how to proceed. (I have to use QTestLib). Please guide me…
clearScreen
  • 1,002
  • 4
  • 15
  • 31
0
votes
1 answer

Boost Test and QtTest memory access violation with Botan

I've been struggling with this and so far couldn't make it work. A simple main using botan works fine, but when i put the same code in a unittest it fails. // keygeneration_test.cpp #define BOOST_TEST_DYN_LINK #include
Sebastian
  • 1,243
  • 1
  • 18
  • 34
0
votes
1 answer

Access QFiledialog programmatically

I am trying to do the system testing in QT created application. I have encountered the below problem. Open menu action in my application triggers a QFileDialog. I have handle(pointer) for the same. But i am not sure how to select the required file…
Anbu
  • 91
  • 7
0
votes
2 answers

How much does each test case consume in QTest for C++

Is there a simply way to knowing how much time consume each test case in QT Test Framework for C++? It will be incredible helpful to getting some metrics.
Santi Agüero
  • 3,143
  • 8
  • 27
  • 39
-1
votes
1 answer

Real world code examples about usage of four special slots of Qt Test

I am studying about Qt Test and got to know there are four special slots which are executed before and after test cases. initTestCase() will be called before the first testfunction is executed. cleanupTestCase() will be called after the last…
Hareen Laks
  • 1,432
  • 2
  • 17
  • 33
-1
votes
1 answer

Unit testing QWizard with QtTest

I am writing unit test cases for my QT application which contains a QWizard. I am using QtTest framework. But I am not able to get the Next button clicked on my wizard…
1 2 3 4 5
6