Questions tagged [qtest]
48 questions
5
votes
1 answer
How to simulate a drag and drop action using QTest
In order to create a test case for a drag and drop bug in the QTreeView widget I tried to simulate a drag and drop mouse movement behavior.
I basically select the first element in the QTreeView and want it to drag and drop on the third element. I…

Aleph0
- 5,816
- 4
- 29
- 80
4
votes
0 answers
How to Create the Custom Plugin in Tricentis QTest that customizes UI
How Can I Create a Custom Plugin in Tricentis QTest that Customizes Custom UI?
I need to add a Custom UI like a button on the existing QTest Test Case UI (Shown in the Below Image) and I want to call Rest API at the click of that button. Is there…

Sachin Bhatia
- 237
- 2
- 9
4
votes
0 answers
QTest with QtCreator, button run all test grayed
I began a project using Qt. I want to add some tests to this project. I want to split tests over differents categories.
Tests for exporting data
Tests for computing data
Tests for manipulating data...
To do this, I created this simple .pro…

Antoine Morrier
- 3,930
- 16
- 37
4
votes
1 answer
Global function recognition failing
When having a simple qtest which compares 2 different objects for a user-defined struct:
Test a, b = {1};
QCOMPARE(a, b);
Why is there a difference between:
(1)
static char* toString(const Test &)
{
using QTest::toString;
return…

jaques-sam
- 2,578
- 1
- 26
- 24
3
votes
1 answer
Simulation mouse movement using QTest
I'm using QTest to test simple widgets and it all works as expected. But now I have a more complex test scenario, where I have basically a widget that allows the user to press the mouse button, then moves some content, and then releases the mouse…

Aleph0
- 5,816
- 4
- 29
- 80
2
votes
1 answer
Maximum amount of warnings exceeded. Use -maxwarnings to override
I'm running a big unit test based on QTest and during the test process, it's stopping with error:
QSYSTEM: ClassXyzTest::xyzTest() Maximum amount of warnings exceeded. Use -maxwarnings to override.
I've got some debugs in the code to have more…

kluszon
- 375
- 5
- 19
2
votes
2 answers
Click on button for several QMessageBox in Qtest
I'm creating a test for my GUI application. At a certain point of the test, I want to click on a button which asks for user's confirmation and then, confirmation for each file I have to delete. So, on the test, to press that button I'm…

Manuninho
- 31
- 1
- 6
2
votes
1 answer
XCUITest pre-testing setup
I need to do the pre-test config, one time setup before I run XCUITest (automation test) cases,
Example of pre-test setup: (This needs to be done once for test cycle, the output of below APIs is used in all test cases)
Fetching qTest access…

Saif
- 2,678
- 2
- 22
- 38
2
votes
1 answer
Use QTest macros (QVERIFY, QCOMPARE, etc.) in function other than the test function
In general, the macros QVERIFY, QCOMPARE, etc. shall not be used outside a test function. The reason is, that in case of a failure, they interrupt the test with a return.
If I want to do tests in a function, I should do them by hand and return false…

Thomas Klier
- 449
- 4
- 16
2
votes
0 answers
Redundant namespace declaration in signal in order to use QSignalSpy
I'm trying to utilize QTest in combination with Catch and QSignalSpy to test my applications. I have to say, that I'm using Qt 5.10.0, which might be important.
Recently I stumbled across a strange behavior, that I couldn't really…

Aleph0
- 5,816
- 4
- 29
- 80
1
vote
0 answers
Customized json report for karate framework
can I customize generated JSON reports in a different format for our specific purposes like for qtest which accepts JSON reports in particular formats?

Ibadur Rehman
- 23
- 2
1
vote
1 answer
problems with highly specific cmake + qtCreator use case and unit tests
My troubles with CMake keep compounding D:
What I have in mind is to create my project so that when I build it, it runs unit tests and if unit tests fail, it cleans up after itself. Otherwise, if they succeed, the build spits the runnable executable…

Narmondur
- 111
- 1
- 2
- 7
1
vote
0 answers
Is there an easy way or a plugin to import test plans/test cases from QTest to Azure Devops?
I just wanted to know if there's a plugin/tool in ADO that imports test cases/Test plans easily from QTest to ADO.
We are looking for different options to move away from QTest. One option we have is to explore ADO to see if that's a best tool for…

Anisha Handoo
- 11
- 1
1
vote
0 answers
QTest::mouseClick RightButton can not work, can someone give some tips?
Recently, I saw a topic about QTest::mouseClick LeftButton(How can you edit a QTableView cell from a QTest unit test?),I trid it and succeeded.
Now I need to simulate a RightButton-Click action and get the customContextMenuRequested, I used the same…

StephennQin
- 81
- 1
- 5
1
vote
0 answers
How to correlate qTest test cases with junit test results (reported by Jenkins)
I have a pre-existing body of automated test cases that are executed by a Jenkins job. Engineers are happy with the Jenkins reports, but managers want to use qTest Manager reporting to get a unified view of automated + manual tests.
There is quite a…

MarkHu
- 1,694
- 16
- 29