Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. QA Tools
  3. Squish
  4. type(waitForObject(names.address_Book_Add_Surname_Edit), "Dine") Not getting in simple QML application
Forum Updated to NodeBB v4.3 + New Features

type(waitForObject(names.address_Book_Add_Surname_Edit), "Dine") Not getting in simple QML application

Scheduled Pinned Locked Moved Unsolved Squish
2 Posts 2 Posters 5.9k Views
  • 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.
  • IamSumitI Offline
    IamSumitI Offline
    IamSumit
    wrote on last edited by
    #1

    Hi,
    I have developed QML application having two Inputbox and one button with mentioning the ids of each component.
    When I recording and verifying with Squish tool I am not getting type(waitForObject(..), "") function/API in my script. I want to have text/caption of the button and input text of the both input box from my QML application.
    The same thing i am getting by running the addressbook example exe with Squish tool as following.
    startApplication("Addressbook")
    mouseClick(waitForObjectItem(names.address_Book_Unnamed_Menubar, "File"))
    mouseClick(waitForObjectItem(names.file_MenuItem, "New"))
    mouseClick(waitForObject(names.add_ToolbarItem))
    type(waitForObject(names.address_Book_Add_Forename_Edit), "sumit")
    mouseClick(waitForObject(names.address_Book_Add_Surname_Edit), 42, 14, MouseButton.PrimaryButton)
    type(waitForObject(names.address_Book_Add_Surname_Edit), "Dine")
    mouseClick(waitForObject(names.address_Book_Add_Email_Edit), 37, 15, MouseButton.PrimaryButton)
    type(waitForObject(names.address_Book_Add_Email_Edit), "djihf")
    mouseClick(waitForObject(names.address_Book_Add_Phone_Edit), 29, 5, MouseButton.PrimaryButton)
    type(waitForObject(names.address_Book_Add_Phone_Edit), "1233")
    clickButton(waitForObject(names.address_Book_Add_OK_Button))

    What need to do further ? Is there anything require to add or missed either on Qt side or Squish side ?
    Please help.

    Be Cute

    H 1 Reply Last reply
    0
    • IamSumitI IamSumit

      Hi,
      I have developed QML application having two Inputbox and one button with mentioning the ids of each component.
      When I recording and verifying with Squish tool I am not getting type(waitForObject(..), "") function/API in my script. I want to have text/caption of the button and input text of the both input box from my QML application.
      The same thing i am getting by running the addressbook example exe with Squish tool as following.
      startApplication("Addressbook")
      mouseClick(waitForObjectItem(names.address_Book_Unnamed_Menubar, "File"))
      mouseClick(waitForObjectItem(names.file_MenuItem, "New"))
      mouseClick(waitForObject(names.add_ToolbarItem))
      type(waitForObject(names.address_Book_Add_Forename_Edit), "sumit")
      mouseClick(waitForObject(names.address_Book_Add_Surname_Edit), 42, 14, MouseButton.PrimaryButton)
      type(waitForObject(names.address_Book_Add_Surname_Edit), "Dine")
      mouseClick(waitForObject(names.address_Book_Add_Email_Edit), 37, 15, MouseButton.PrimaryButton)
      type(waitForObject(names.address_Book_Add_Email_Edit), "djihf")
      mouseClick(waitForObject(names.address_Book_Add_Phone_Edit), 29, 5, MouseButton.PrimaryButton)
      type(waitForObject(names.address_Book_Add_Phone_Edit), "1233")
      clickButton(waitForObject(names.address_Book_Add_OK_Button))

      What need to do further ? Is there anything require to add or missed either on Qt side or Squish side ?
      Please help.

      H Offline
      H Offline
      henry.ishiyama
      wrote on last edited by
      #2

      @IamSumit
      can you reproduce the issue and share the Support Information logs.
      Please refer to the following Knowledge Base Article regarding how to obtain the Support Information is
      https://qatools.knowledgebase.qt.io/misc/collecting-support-info/collecting-support-information-linux-mac-windows/

      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