Forum Discussion

OliverWu's avatar
OliverWu
Occasional Contributor
5 years ago

Does SaveResultsAs Junit work?

There is a very simple routine like below. It alwasy fails. All other types of LogFormat works and I can see the file(s) generated. Do I miss something?   function test() { Log.SaveResultsAs("...
  • AlexKaras's avatar
    AlexKaras
    5 years ago

    Hi,

     

    Weird, but I can confirm the problem.

    This code:

     

    function test() {
      Log.Message("Pass");
      Log.Message(Log.SaveResultsAs("D:\\Work\\junit\\", BuiltIn.lsJUnit, false));
    }

     

    posts False as a result of the SaveResultAs() call (which means export failure) and the reason for this is not clear to me at the moment.

    I would suggest to create Support ticket via the https://support.smartbear.com/message/?prod=TestComplete form.