The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> AutomatedQA / SmartBear TestComplete

Pages: 1
speedypeetey
Newbie


Reged: 08/15/11
Posts: 8
Loc: Texas
Log.SaveResultAs FileName
      #719465 - 11/07/12 09:02 AM

Currently when I run the below function it is saving the File name as some random characters.

FileName = project.ConfigPath + "Log\YourResults"
Log.SaveResultsAs FileName,1

10D5C4A3.html

My question is how can I control what we name the file?


Post Extras: Print Post   Remind Me!   Notify Moderator  
JamesK
Member


Reged: 10/07/09
Posts: 59
Loc: Dallas, TX, USA
Re: Log.SaveResultAs FileName [Re: speedypeetey]
      #719492 - 11/07/12 08:50 PM

Here is an exmaple I use in my project for .mht log files.

This is at the beginning of my test script:

var DateTimeLabel = getFileNameDateTimeLabel();
var FileName = "C:\\Logfolders\\Results"+DateTimeLabel+".mht";


This is at end of test script:

Log.SaveResultsAs(FileName, 2);

This part controls how you want to name the file:
Results"+DateTimeLabel+".mht

Results1003230012.mht

Edited by JamesK (11/07/12 08:51 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 16 anonymous users are browsing this forum.

Moderator:  NickAQA, Robert Martin, martinh, brentpaine 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 1539

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5