lphilippe_macau
14 years agoContributor
Validate a Windows shortcut?
Hi,
I just ran into a problem with Test Complete. The application I am testing creates shortcuts on the windows deskop during the installation. I want to validate that the shortcuts are pointing to the right path. So basically I want to validate the target property of the shortcut. I have no idea how to do this with Test Complete.
I tried using;
None of this seems to work.
The only option right now I can think of is to keep a baseline of the shortcut and validate with file.compare , but still this would not work well when testing different envrionnements. Plus I have to keep one baseline for every shortcut created.
Do any of you see another way of doing this??
Thank's
L-P
I just ran into a problem with Test Complete. The application I am testing creates shortcuts on the windows deskop during the installation. I want to validate that the shortcuts are pointing to the right path. So basically I want to validate the target property of the shortcut. I have no idea how to do this with Test Complete.
I tried using;
- aqFileInfo.Attributes
- aqFileSystem.CheckAttributes
- Reading the file with "ReadWholeTextFile" to find a meaningful string inside
- Readint the file as a binaray file
None of this seems to work.
The only option right now I can think of is to keep a baseline of the shortcut and validate with file.compare , but still this would not work well when testing different envrionnements. Plus I have to keep one baseline for every shortcut created.
Do any of you see another way of doing this??
Thank's
L-P