Walkthrough: Operate the List in the Qt application

You can find complete project from sample page.

Background

Need to operate and automate the test for the list window developed by Qt's QListView component. QListView is usually used for windows that contain a large number of options, such as file lists, lists, and so on. Hereinafter, we abbreviate the QListView control as List.

the goal

This walkthrough is implemented for several operations of List, but in fact CukeTest has provided suitable APIs to help us automate them. Achieve the following operations:

  • Select the option;
  • Scroll list view The tested application used for testing this time is the Demo application provided in Qt-FetchMore, which demonstrates a simplified file browsing tool. You can enter the path to retrieve the files/folders under the path. The interface is as follows:

FetchMore Application

In order to achieve the goal, we need to implement the following automated operations on the list control:

  1. Enter the path to filter
  2. Use the name or index to locate the target list item
  3. Click/select file list item
  4. Scroll list view

Chinese version click here.

results matching ""

    No results matching ""