Is it possible to unzip a compressed folder through a TestComplete script (c#Script)
Hello,
I've got a .zip stored locally that I'm hoping I can unzip and open using testcomplete. I have had an explore around the aqFileSystem and aqFile objects but haven't been able to work anything out in my scripts. I did stumble upon a forum post from 2011 (https://community.smartbear.com/t5/TestComplete-Questions/How-to-extract-a-zip-file-and-Can-we-hide-the-password-that-we/td-p/52237/page/2) but the method they are indicating to use seems to not work anymore.
Any guidance I can get to take the .zip and unzip it so I can interact with the contents inside would be amazing.
Kind regards,
Dan
Thank you for the help here. I also found another solution to this in one of the comments here: https://community.smartbear.com/t5/TestComplete-Questions/Unzipping-zip-files/m-p/125798/highlight/true#M14273
Basically, I needed to replace
var fso = new ActiveXObject("Scripting.FileSystemObject");
with
var objShell = new ActiveXObject("Shell.Application");
and
var fso = Sys.OleObject("Scripting.FileSystemObject")
with
var objShell = Sys.OleObject("Shell.Application");