hrcorval / behavex

BDD testing solution designed to enhance your Behave-based testing workflows
https://github.com/hrcorval/behavex
MIT License
89 stars 20 forks source link

HTML Report converts the backslashes to Forward Slashes #172

Open prasanmgc opened 4 weeks ago

prasanmgc commented 4 weeks ago

Describe the bug When generating the HTML report, if the logs contains \a\b\c then in the report it is getting converted to //a/b/c.

To Reproduce Steps to reproduce the behavior:

  1. Console.log('\a\b\c")
  2. run the test
  3. Report is generated
  4. check the report for the link. It is shown as //a/b/c. But somehow the logs attached isn't disturbed. it is having the expected Backslashes

Expected behavior Backslashes should remain the same in the report. This is especially useful, if we are printing the directory path, so that user can copy & navigate to that using File Explorer.

Desktop (please complete the following information):

Could you please look into this?

hrcorval commented 4 weeks ago

Hi @prasanmgc, thanks for posting your issue. When trying to reproduce it, we cannot map this action: Console.log('\a\b\c")

Where and how you run this command? As it seems this is not a python command, and when using logging.info or print commands, we were not able to reproduce it.

Thanks!

prasanmgc commented 3 weeks ago

@hrcorval First of all Apologies. It was my Bad. It should be logger.info.

Example Code: network_drive = '\a\b\c' logger.info(network_drive)

I could see the logs in the report with proper value as \a\b\c, Whereas in the report scenario steps, it is displayed as //a/b/c.

Hope this helps.