Ask a Question

send TestResult of all the project via Email

rdidi
New Contributor

send TestResult of all the project via Email

i am having a problem pack the files  - "Unable to Pack the fileas error"





this is the event i add - on stoptest

function GeneralEvents_OnStopTest(Sender)

{

  slPacker.PackCurrentTest("C:\New")

}



what am i donig wrong



thanks

3 REPLIES 3
AlexKaras
Community Hero

Hi Rotem,



Just a guess:

> slPacker.PackCurrentTest("C:\New")

As the parameter for the PackCurrentTest() method must specify full file name, this means that the code will create a 'New.zip' file in c:\ folder. Do you have write permissions for this folder?
Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
rdidi
New Contributor

Hi Alex , yes i do have premissions



attched my Packer configuration

TanyaYatskovska
SmartBear Alumni (Retired)

Hi Rotem,

 


As you are using JScript, you need to use double slashes to specify the path to save the archive:




slPacker.PackCurrentTest("C:\\New")




 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: