Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

Customizing only the image name in defaulted log file .

$
0
0

Hi,

   When I use Log.Picture(Sys.Desktop, MsgString) , after execution that particular image is stored as Picture1.png under the path

C:\Automation\ProjectSuite\TestProject\Log\3_2_2015_2_54 AM_07_935

 

 

Here 3_2_2015_2_54 AM_07_935 is a folder created specifying the time and date of execution. I am fine to have this structure.

 

But inside 3_2_2015_2_54 AM_07_935 folder the images are stored as Picture1.png   picture2.png...

But I want to customize them asStep1.png  Step2.png

 

If I try using 

NewPict.SaveToFile("C:\Automation\ProjectSuite\TestProject\Log\3_2_2015_2_54 AM_07_935\my_new_image.png");
  Log.Picture(NewPict);

 

I can fetch only C:\Automation\ProjectSuite\TestProject\Log part of address using project.config()

How can I get the 3_2_2015_2_54 AM_07_935 part or the folder name at runtime?

 

 

In short, C:\Automation\ProjectSuite\TestProject\Log\X\my_new_image.png

 

1.How can I get value of X at runtime , X is created by defaultly by test complete to save my log files.

2.I want my images named as Step1.png  Step2.png.

 

 

Regards,

 

   Nimeshika


Viewing all articles
Browse latest Browse all 20990

Latest Images

Trending Articles



Latest Images