jhunter_dps
5 years agoOccasional Contributor
slPacker Pack Method Throwing "Unable to pack the files" Error
I am attempting to compress the .mht file of a test run's log results and attach it to an email and I am attempting to use the slPacker object as a means to do it, however when I attempt to run the "pack" method, I am getting an error thrown saying "Unable to pack the files". Here is the context for how I am using the method below:
workDir = Project.Path + "\\Test_Export\\"
archivePath = Project.Path + "\\Compressed_Results\\" + "Compressed_Test_Results.zip"
testResults = workDir + TEST_DLS_SmokeTestVersion_" + "x" + ".mht"
if (Log.SaveResultsAs(testResults, lsMHT)):
slPacker.Pack(testResults, workDir, archivePath)
Would anyone be able to point me in the right direction for how to get this method working?