sdruker
11 years agoContributor
Keyword Tests Parameters
Hi,
I have a question.
I'm using TC for web testing .
I created a keyword test and I want to save the logs .
I wnat that each time the test runs , a folder with the current date and time will be created and the log file name will be in the format:
mm/dd/yy_hh:mm_Log
Is it possible to do that?
I know that as a script it may be easier but it's important to do that using a keyword test.
this is what I did:
I added "call object method" step, and used the aqDateTime witht he operation Now
then I Created a variable caleed Folder_Name, and added the a "Set Variable Value" witht he value "lastResult"
and then I called aqString with concat of variables.Folder_Name and "_Log"
It didn't work...
I would I would appreciate your help...
Thank!
I have a question.
I'm using TC for web testing .
I created a keyword test and I want to save the logs .
I wnat that each time the test runs , a folder with the current date and time will be created and the log file name will be in the format:
mm/dd/yy_hh:mm_Log
Is it possible to do that?
I know that as a script it may be easier but it's important to do that using a keyword test.
this is what I did:
I added "call object method" step, and used the aqDateTime witht he operation Now
then I Created a variable caleed Folder_Name, and added the a "Set Variable Value" witht he value "lastResult"
and then I called aqString with concat of variables.Folder_Name and "_Log"
It didn't work...
I would I would appreciate your help...
Thank!
- What you've described to this point is simply creating the title of the folder... Have you called the Log.SaveResultsAs method to actually save the log results to a file/folder?
http://support.smartbear.com/viewarticle/55787/