It may be desirable to automate Drag & Drop from File/Windows Explorer into the AUT, or the other way around.
Unfortunately File/Windows Explorer is very unfriendly towards automation because of these points:
Objects in the right side pane need to identified differently based on the view type (List, Details, etc.).
The right side pane view configuration is not easily configurable, and automating changing the configuration is not easy either.
File/Windows Explorer may run as a separate process, or not, without much user control over this aspect, but this may prevent hook up of this process through Squish.
To overcome these problems it is possible to embed File/Windows Explorer into a custom application, such as embedded_explorer , and then automate this custom application instead.
The point of such a custom application is that it guarantees that it runs in a separate, new process (allowing Squish for Windows to hook it up in the first place), and that the right pane view is configured as desired, thus simplifying identification of objects shown in this pane.
This test script demonstrates Drag & Drop from
From within other Squish packages¶
If you want to move files from File/Windows Explorer on to a Qt application for example, you need to slightly modify the drag_drop*() function.
This also requires access to the Squish for Windows license component in addition to the license for the other toolkit.
You must start a server from a Squish for Windows package and start the embedded explorer on this server.
It would look this then: