Forum Discussion

rdidi's avatar
rdidi
New Contributor
10 years ago

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

  • TanyaYatskovska's avatar
    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")




     

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    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?
  • rdidi's avatar
    rdidi
    New Contributor
    Hi Alex , yes i do have premissions



    attched my Packer configuration