Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display in report shows broken characters. (Report_builder) #101

Open
valeriaA opened this issue Aug 12, 2021 · 2 comments
Open

Display in report shows broken characters. (Report_builder) #101

valeriaA opened this issue Aug 12, 2021 · 2 comments

Comments

@valeriaA
Copy link

valeriaA commented Aug 12, 2021

I configured to display the report:

at_exit do
    $driver.driver_quit

ReportBuilder.input_path = 'reports/emissaoDeApolice.json'
    
ReportBuilder.configure do |config|
  config.report_path = 'resultsReportBuilder/my_test_report'
  config.report_types = [:json, :html]
end

options = {
   report_title: 'My Test Results'
}

ReportBuilder.build_report options
end

But when I checked the report I noticed that it prints characters that are not expected, they are not part of the text. It looks like an encoding problem.

image

Does anyone know what can it be? And how can this be resolved?

Thanks a lot.

@GabrielForchesatto
Copy link

Opa, você tentou colocar #encoding: utf-8 no topo do arquivo .feature?

#encoding: utf-8

@valeriaA
Copy link
Author

Opa, você tentou colocar #encoding: utf-8 no topo do arquivo .feature?

#encoding: utf-8

Opa, sim tem o encoding utf-8 na minha feature, eu descobrir oq era, estou usando o colorize para que na saída do terminal fique uma visualização melhor mas quando gera o report JSON ele "escreve o código das cores" em json, só que quando o report_builder vai ler o JSON para gerar o relatório ele não interpreta aquele código como cores, aí ele imprime o que ta escrito.

Quando eu tiro o colorize os caracteres incorretos são removidos do report_builder é chato porque a saída no terminal estava muito legal, categorizado por cores.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants