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. FileNotFoundError when running test remotely
Forum Updated to NodeBB v4.3 + New Features

FileNotFoundError when running test remotely

Scheduled Pinned Locked Moved Unsolved Squish
4 Posts 3 Posters 1.1k 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.
  • C Offline
    C Offline
    caprice
    wrote on last edited by
    #1

    I am running Squish remotely from a windows host PC to a Hyper-V VM. I have a piece of code that opens a file and scans it for a particular string. When I run this test locally on the VM it works. When I run it remotely from the host PC (i.e. starting 'squishserver' on the VM and then running the test from the host) it is not able to see the file picture attached.

    I am wondering if the open(file_path) function is executing on the host PC rather than the VM?

    FileNotFoundError.png

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, just guessing but those double backslashes at the beginning of the line under "Script Error" (C:\\Users\\archauto/appdata), when you run remotely, they could be interpreted as an SMB path to a PC called \Users and not a path on the C: drive. Just guessing!

      C 1 Reply Last reply
      0
      • hskoglundH hskoglund

        Hi, just guessing but those double backslashes at the beginning of the line under "Script Error" (C:\\Users\\archauto/appdata), when you run remotely, they could be interpreted as an SMB path to a PC called \Users and not a path on the C: drive. Just guessing!

        C Offline
        C Offline
        caprice
        wrote on last edited by
        #3

        @hskoglund I added code that replaces all the backslashes with forward slashes so that the filepath is 'C:/Users/archauto/AppData/Local/ETC/Paradigm/5.1.0/logs . . .' and I get the same error. I appreciate the response though.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          henry.ishiyama
          wrote on last edited by
          #4

          In case you want to access to file on remote system (where squishserver is running),
          you should access them via functions offered by "remotesystem" object.
          For more information regarding this object please refer to the following documentation.
          https://doc.qt.io/squish/squish-api.html#remotesystem-object

          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