cancel
Showing results for 
Search instead for 
Did you mean: 

LogScope constants undefined for Log::SaveResultsAs()

SOLVED
Highlighted
Community Expert

LogScope constants undefined for Log::SaveResultsAs()


Hi, I am using Log::SaveResultsAs() to save and compress results logs.


 


In the documentation, the LogScope parameter is defined as being one of the following constants:







However, these constants are not available in the intellisense








and when attempting to use the constants as such


 


Log.SaveResultsAs( fileName, lsMHT, false, lesCurrentTestItem );


 


I receive the following error (at which I am not surprised)








Should these constants be defined or there others which I should be using? I am currently working around this by using the hard coded integer value (not nice)


 


The version of Test Complete I am using is Test Complete 10


 


Regards,


Phil Baird





1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

RE: LogScope constants undefined for Log::SaveResultsAs()


Hi Phil,


 


I've added this issue to our bug-tracking system. It will be fixed in one of future product updates.


 

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

3 REPLIES 3
Highlighted
Community Manager

RE: LogScope constants undefined for Log::SaveResultsAs()


Hi Phil,


 


I've added this issue to our bug-tracking system. It will be fixed in one of future product updates.


 

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

Highlighted
Community Expert

RE: LogScope constants undefined for Log::SaveResultsAs()

Cool, thanks Tanya

Senior Member

Re: RE: LogScope constants undefined for Log::SaveResultsAs()

Hi Tanya,

 

Do you know if a fix was ever made?  I am using TC14 and seem to be getting the same outcome (entire project log included in .mht file when 'lesCurrentTestItem' parameter), as follows:

 

FullFileName := ('C:\Work\Log\' + TestName + '_' +FileDateTime + '_TC_Log.mht');
Log.SaveResultsAs (FullFileName, lsMHT,False,lesCurrentTestItem);

 

Thanks for your help,

 

Ramsay

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors