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. Verification Points and Global Scripted Object Map
Forum Updated to NodeBB v4.3 + New Features

Verification Points and Global Scripted Object Map

Scheduled Pinned Locked Moved Unsolved Squish
2 Posts 2 Posters 581 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.
  • D Offline
    D Offline
    DIvanova
    wrote on last edited by
    #1

    Hi everyone,

    we are using Squish to test our application and we have defined a global object map - several files containing class definition of the objects for better identification when using them, for example:

    class ObjectContainer(object):
    graph_window = {"text": Wildcard("GRAPH v*"), "type": ObjectType.Window}
    chart_screenshot_window= {"container": graph_window, "text": "*ExampleGraph", "type": ObjectType.Window}
    

    The files are defined as Global scripts and so far we were able to use these files in our tests without problems. The names.py file can stay empty except the imports of our global object map files.

    We now need to use these extracted objects in a verification point. In a VP file we can define the object for example like:

    <Verification object="ObjectContainer.chart_screenshot_window" options="12" type="PNG">
    

    instead of the object listed in the names.py (since it is the same object).
    Unfortunately this does not work. We get the message that the object is not found and we can re-select the object leading to new entry in the names.py.

    What worked is copying the graph_window and chart_screenshot_window definitions in the names.py, but that will lead to unnecessarry doubling of the objects and errors in the long run.

    Is there a way to tell the Verification points to use the global Object map instead the local names.py?

    1 Reply Last reply
    0
    • JakubTopolskiJ Offline
      JakubTopolskiJ Offline
      JakubTopolski
      wrote on last edited by
      #2

      Hi there!
      How about using text.vpWithObject? You should be able to pass a realname from your custom global object map as the second parameter.

      ⚙ Test Automation Consultant 🐸 Squish Expert 🐍 Python Enthusiast
      https://cyberalpaca.com
      https://www.linkedin.com/in/jakub-top/

      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