Can we add custom action to HtmlLoggerState

2019-09-10 16:40发布

问题:

I'm using VS2013/CodedUI and my palybacksetting is as follow:

 Playback.PlaybackSettings.LoggerOverrideState = HtmlLoggerState.AllActionSnapshot;

I also have a 3rd party tool that I have integrated to my code that does some action that codedui can't...Iw an to be able to log those steps into the ActionLog.html file with where codedui capture the actions and screenshot.

I searched a lot but didn't find anything on how we can achieve this.

thanks in advance for any help

回答1:

I posted a response over here: Writing Custom HTML Logs

It sounds like there's not a good way to do this. You can get the path to where the html file lives and write a custom logger from there. I'm not sure it'd be safe to try and write to it while your test is executing, but perhaps once your test is complete.