William Warby
Member (5+)
Offline
Posts: 8
|
Hi all,
I was the user who posted this request by email. First, I should clarify exactly what I mean:
Suppose I create a vTask project in a folder named "myproject" and I create 100 image-based automation steps using the built-in tool to capture a screen area to generate the image. I place each of those images in the "myproject" folder along with the .vxm file. By default, as each image is created, the path inserted into the properties of the "Click on Image" step is "C:\path\to\myproject\newimage.bmp". Now, if I ever want to move the "myproject" folder, I have instantly broken every single step in my project, so whenever I insert a new image into a "Click on Image" or "Move to Image" step, I delete "C:\path\to\myproject\" from the path, leaving just "newimage.bmp". This works well, and enables me to move the "myproject" around with ease, but it is tedious to have to delete the path leading to the image every time I use an image in a step. I want a user selectable option in "Tools > Options" to do this behaviour by default, so when I select or create an image, instead of using an absolute path it uses a path relative to the .vxm file. When I say default, I mean that when the option is enabled by the user, it becomes the default behavior - the option itself should probably not be enabled by default.
Now, it seems logical to me that if this option were enabled, then selecting an image in a subfolder 1 level down from the .vxm file, the inserted path would be ".\subfolder\newimage.bmp" and likewise a folder 1 level up would create a path like " "..\newimage.bmp". This would make it easier to organise lots of images into subfolders below the .vxm file. So, cappy, to answer your point, I would see it inserting "abc company" or "xyz company" as part of the relative path, so that's how it would know which image you meant. It would work on the same principal as relative paths in hyperlinks in HTML pages in that it is relative to the location of the .vxm file.
Having said that, I'd be quite happy at the moment if all it did was dump the entire path and insert "newimage.bmp" in all cases (requiring me to re-insert the folder path if the image was in a different folder) or more sensibly, have this behaviour only apply when the selected image was in the same folder as the .vxm file.
I'm not asking for new behaviour in how relative paths are resolved, only that the already existing behaviour for resolving relative paths is made easier to use by making it the default.
|