Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to set AutomationId
Forum Updated to NodeBB v4.3 + New Features

How to set AutomationId

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Willie
    wrote on last edited by
    #1

    Hello,

    I am new to Qt and tasked with automating the testing of a Qt application and have selected TestStack.White, however the Qt app has no value in the AutomationId.

    the developers have figured out how to set a value in Name field... but are not seeing a means of putting a value in the AutomationId field.

    searching for AutomationId on the Qt site, on the wiki, and on the forums turns up ZERO hits, how is it no one has asked this question before?

    please realize "because you're an idiot" is most frequently the answer to my stupid questions.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Unless I'm mistaken, the AutomationId would need native windows to work which Qt does not use unless explicitly asked to.

      You should maybe take a look at froglogic's squish

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Willie
        wrote on last edited by Willie
        #3

        I have a conversation going with Squish sales people in asking the price.

        1. didn't want to spend money unless absolutely no possible concievable option exists
        2. TestStack.White is the preferred option the test team

        How does one explicitly ask Qt to do something?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Take a look at winId and windowHandle

          You also have the Qt Test Module that you can use.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved