whuang
5 years agoRegular Contributor
how can export single test log file by using Log.SaveResultsAs?
Hi everyone,
Currently I am using Log.SaveResultsAs(FileName, lsMHT, True, lesCurrentTestItem) in each test to export test log file, what Iwant is to export the log file when the test is completed, but when the test is one of a test set/project, it exports the whole project log even through I used "lesCurrentTestItem" for LogScope, but I don't want other test logs mix together. I also tried using value "2" for LogScope, but didn't work either. Does anyone know how I can export log file for the current running test?
Thanks in advance!