Sunday, 19 June 2016

Create Dynamic File for each test execution

If we wish to create a new log file for each execution of test,we have to create log file name dynamically.If we hard code the file name,file will be updated for each execution.


Create test plan and add file name as shown in image."TESTSTART.MS" is a system variable that gives test start time.So every time test executes,new file will be generated

Similarly,below variables can also be used to 

START.MS
START.YMD
START.HMS


No comments:

Post a Comment