Questions tagged [qtest]

48 questions
0
votes
1 answer

Qt's QTest doesn't select an item in a drop-down list with a click

There are two drop-downs. I'm trying to click on an item in a drop-down from a QComboBox. For this purpose I created a function, launched for both drop-downs, here's an excerpt: constexpr int DELAY{ 1000 }; void clickDropDown(int row, QComboBox…
Mykola Tetiuk
  • 157
  • 3
  • 9
0
votes
0 answers

How to achieve mouse click in a QDialog while testing?

That's automated testing in Qt. I've got an table of a class inheriting QAbstractItemView, which I get this way from a QDialog dialog: auto *table = window->findChild("myTable"); I've got a point to click, which proves to…
Mykola Tetiuk
  • 157
  • 3
  • 9
0
votes
2 answers

Registering tests on QTest in CTest apart from executable like GTest realizations

I have an executable with multiple tests written with QTest. The executable is being registered using add_tests(NAME test_name COMMAND test_executable). Obviously, tests will be handled as one in CTest, so it will be difficult to find the problem if…
0
votes
0 answers

Clion, cmake, Qt5, window, tests fails with exit code -1073741515 (0xC0000135)

I try to build and run tests on Windows in CLion. My project is built and is runnable, but test after build fails with exit code -1073741515 (0xC0000135). My cmakefile fot folder with tests: project(testBaseProperties) set(CMAKE_INCLUDE_CURRENT_DIR…
0
votes
1 answer

Qt auto test changes only effective after "rebuild" not after "build"

I added an auto test project to my C++ Qt project (QT 5.15.1, MSVC 2019, host and target: Windows 10). But changes in the test source files do only take effect if I rebuild and run the test project, but not if I just build and run, which usually…
Martin
  • 493
  • 6
  • 16
0
votes
3 answers

Unable to integrate Cypress with testmanagement tool

Is there any way to integrate Cypress test cases with any test management tools (Like Testlink, testrail, or qtest)? I want to perform automation testing and try to report the results to test management tools like Testlink, testrail, or qtest. Is…
muller
  • 5
  • 1
  • 9
0
votes
0 answers

How can I measure test coverage in QT?

I use Qt Creator 4.8.2. I already have a working program 'A' and added a subproject 'B' for testing. I am trying to do a unit test using qtest. How can I measure test coverage for Project 'A'? If you have examples, please comment it.
ryu
  • 35
  • 7
0
votes
1 answer

Using a test suite, how can I get the tests to show up in the "Tests" pane view for Qt5?

I have setup a TestSuite in Qt5 basically following the instructions from here and here. It works as described; however; when I switch from the Projects view to Tests view it does NOT show the individual class tests as shown in the TestsView image…
slayer
  • 643
  • 7
  • 14
0
votes
1 answer

Export test cases to Excel using QTest API

I found an API through the QTest backend call for exporting the test cases to Excel. Ex: https://qtestnet.com/p/11111/portal/testdesign/export/testcase. But this is not working either through postman or Java. I feel like this is an internal API,…
Deva Anand
  • 11
  • 1
0
votes
0 answers

How to integrate Qt test framework with Qt C++

I have created a Qt project I want to have Qt unit test with it how can I include unit test in Qt C++.Can some one suggest a way to integrate it.
0
votes
1 answer

How does QTEST_MAIN set everything up automatically to run tests?

I'm working on an existing project written in C++, the entry point for the application is: QTEST_MAIN(className) From the documentation I've read, this will create a standard C main() function, but it isn't at all clear on how the application tests…
SPlatten
  • 5,334
  • 11
  • 57
  • 128
0
votes
1 answer

Data re-driven testing in Qt

Can I get QTest to use a single data-driving set more than once? We using Qt's QTest framework for the low-level tests in a project, and using data-driven style where it makes sense. I've come to a point where I want to do several distinct sets of…
dmckee --- ex-moderator kitten
  • 98,632
  • 24
  • 142
  • 234
0
votes
1 answer

Testing GUIs with GoogleTest & QTest

I have a GUI and I want to test the many functionalities of this GUI. The issue is that the sub-widgets are all private members of this main GUI class. How can I test my main GUI when I can't populate any of these sub-widgets since they are…
0
votes
0 answers

Qt5/QTest: How to mock the clock speed (QTimer, etc.)?

I'm looking for a way to vary (speed up) the clock for unit tests, so automated tests don't need to wait too long for time- or timer-dependent events to happen. Other frameworks sometimes provide e.g. "mock clocks", but I couldn't find anything…
jpw
  • 56
  • 3
-1
votes
1 answer

Git clone not working in Qtest Launch - but it is working from my terminal

I am using Qtest for running the scripts and it is running my local host When i try to git clone from local host url...it is not working Output* error: cannot spawn sh: No such file or directory fatal: could not read Username for…