Question

Add Test Runs using Query and Retain Structure

  • 7 July 2023
  • 4 replies
  • 22 views

Userlevel 5
Badge +2
  • Head of Community
  • 45 replies

We have a suite of test cases that we routinely pull to Test Execution for running. We have various queries to pull a subset of the test cases at specific intervals.

  • Is there a way to add a subset of test cases (ie using a query) but still retain the structure set up in Test Design?
  • Is there another way to add items from a query but keep the same structure? 

Thanks.

 

[Originally asked and solved on Tricentis Support Hub]


4 replies

Userlevel 4
Badge +2

When you are adding the tests to execute in a Test Suite in the Test Execution tab, you have the ability to use a Data Query view.  From there you can then use the same query you mentioned to find the tests you want to schedule.

Not sure what you mean exactly by "Is there another way to add items from a query but keep the same structure?"... when you add tests in a suite, it's just a flat list, it does not add nor display it by folder structure.  Only the test suites are going to be in folder structure.

Userlevel 5
Badge +2

Another user asked similar question:

Hello,

I am writing to report the same problem with the Data query import feature in qtest. I believe this is the same as what Joanna had described in her port. Let me explain the problem in more detail.

In Test Design, I have created a folder structure to organize my test cases and scenarios. When I import this folder into Test Execution and select the option "Retain test design structure", qtest preserves the folder structure and imports all the test cases correctly.

For example. The Test Design tab.

The option to retain the structure while importing a folder.

The Test Execution tab after the folder import

However, when I use the Data query to import a subset of test cases from Test Design, Qtest does not retain the folder structure. There isn’t an option to “Retain test design structure” as the folder import does. Instead, it puts all the test cases from the query into one root folder. This is not what I expected. I want the query to retain the Test Design structure the same way as the folder import.

I hope you can fix this problem soon or provide a workaround. Thank you for the support.

Userlevel 4
Badge +2

When you add tests in a suite, it's just a flat list, it does not add nor display it by folder structure.  Only the test suites are going to be in folder structure but not the tests inside it.

Badge +1

So what was the point of that Export Settings “Retain test design structure”?  When adding tests in a suite is only a flat list.  What was that setting for?

Reply