Questions tagged [qtest]

48 questions
1
vote
1 answer

In QTest Pulse Test Management tool, unable to link Test Scenarios to the Requirements

We get to set some rules, triggers, actions and constants to perform linking of requirements, linking of scenarios, update cucumber json results etc which will ultimately be reflected in Qtest Manager. This in turn is linked to Jira. SO I get to see…
Manjula
  • 21
  • 4
1
vote
1 answer

How to generate mouse click on QGraphicsWidget in QTest?

I want to test the functionality of pressing a button from my panel. The problem is that the button is not QPushButtons, but rather QGraphicWidget elements. How do I generate this button mouse-click to test its behavior? Buttons are not simple…
siadajpan
  • 55
  • 6
1
vote
1 answer

Testing lambda unique connection in Qt

My question is: How to check whether or not a connection exists in Qt when the slot is a lambda function? I have the following code snippet connect(item1, &Item::somethingChanged, this, [this](){ doSomething(m_someObject1, 2); },…
1
vote
0 answers

How do I test the component given to the highlight property of a ListView?

I'm writing the tests of a component which looks something more or less like this: FocusScope { property ... id: root width: parent.width Component { id: focusMarker Item { z: 100 Rectangle { objectName:…
Manzana
  • 205
  • 4
  • 19
1
vote
0 answers

Does PyQt has support for QTest macros like QTRY_VERIFY

Does PyQt has support for QTest macros like QVERIFY and more importantly QTRY_VERIFY etc I've looked around but couldn't find it but maybe I'm overlooking something If not, what is the best way to support this functionality? I'd rather not use…
Marc Van Daele
  • 2,856
  • 1
  • 26
  • 52
1
vote
2 answers

qTest | Jenkinsfile Pipeline Integration

I have integrated qTest with Jenkinsfile pipeline after following below link. https://www.qasymphony.com/video-training/qtest/project-admin/how-to-integrate-qtest-jenkins-pipeline-projects/ After integration with my pipeline, I am observing below…
asur
  • 1,759
  • 7
  • 38
  • 81
0
votes
0 answers

How to update the expected result in Test Execution Result (Test-Logs) Under a Specific Test-Run on QTest by Rest API

I'm using the following REST API to update the expected result in Test Execution Result (Test-Logs) Under a Specific Test-Run on QTest Sample API: {{QTestURL}}/api/v3/projects/{{QtestProjectID}}/test-runs/{{testRunID}}/test-logs/{{testLogID}} Method…
Sachin Bhatia
  • 237
  • 2
  • 9
0
votes
0 answers

How can we push Azure DevOps test results to qtest manager?

I wanted to integrate Azure DevOps with Qtest and send Azure DevOps test Results to qtest through pipeline execution. Can any one help me with this I have gone through this documentation https://www.tricentis.com/blog/azure-devops-qtest-integration…
Rakesh D
  • 1
  • 2
0
votes
0 answers

Undefined reference to vtable Qt - different behaviour MSVC and MINGW

I am working in a C++ project with configured CMake. I added a test project to the solution. Everything compiles and run ok with MSVC 2019 but with mingw 11.2 I get numerous errors: undefined reference to `LoginCommObj::~LoginCommObj()' undefined…
Cristi
  • 648
  • 1
  • 13
  • 28
0
votes
1 answer

Do we have an API to get Test Cycle Summary in Qtest?

Do we have an API in Qtest that can provide summary of test cycle execution ? E.g. Passed: 23 Failed: 7 Unexecuted: 10 Running: 2 Need this data for generating report in our consolidated reporting tool along with data from some other sources.
0
votes
0 answers

How to use QTest.keySequence?

I'm trying to test if a shortcut is working using PyQt5 and QTest. Here is my code: Main.py from PyQt5.QtGui import QKeySequence from PyQt5.QtWidgets import QWidget, QVBoxLayout, QApplication, QPushButton class Window(QWidget): def…
Searene
  • 25,920
  • 39
  • 129
  • 186
0
votes
0 answers

How to simulate a left click in a (row,column) of a QTableWidget instance?

To do unit tests I need to simulate a left click in a table made by QTableWidget. I can't do it with QTest.mouseClick(Something, Qt.LeftButton). How can I do it? By taking a very simple example: >>> import sys >>> from PyQt5.QtWidgets import * >>>…
servoz
  • 606
  • 9
  • 22
0
votes
1 answer

Is it okay to overload functions/methods for QTest unittests in QT5 C++?

Is it safe to overload functions/methods in QTest files? I need the function/method to give a different result during the tests. The test works when I run it but will it cause any issues like so? or is there a better way to do it? For QT5 QTest,…
0
votes
0 answers

How to test C++ classes when header files contain explicit paths?

I have classes that look like this: Header (.h): class DatabaseX ; //forward declare class DeepClass { public: void DeepClass(DatabaseX* db); void doStuff(); private: DatabaseX *m_db; }; Definition (.cpp) #include…
CodingFrog
  • 1,225
  • 2
  • 9
  • 17
0
votes
0 answers

simulating save into menubar using Qtest

I am trying to simulate save functionality(Tool-Save) using Qtest but not able to find any pointer #!/usr/bin/python from PySide2.QtCore import Qt, QEvent from PySide2.QtWidgets import QApplication from PySide2.QtGui import (QTextCharFormat, QIcon,…
user765443
  • 1,856
  • 7
  • 31
  • 56