allure-framework / allure-framework/allure2

Encoding failure of the "ENVIRONMENT" section

Open
#1,244 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
5.5k
Forks
782
Avg merge
2d 33m
Merged PRs (30d)
16

Description

**Describe the bug**

before generateing report
![image](https://user-images.githubusercontent.com/30285620/116966163-c6e96f80-acd9-11eb-9583-77ec4a21baaa.png)

after generating report
![image](https://user-images.githubusercontent.com/30285620/116966236-f00a0000-acd9-11eb-8645-5213cfdfc5a4.png)

Russian words are displayed incorrectly after generatin report. The order of the key=value pairs not corresponds to the order in the file environment.properties

**To Reproduce**

1. create new file environment.properties with utf-8 encoding
2. fill some keys and values with russian words and save file
![image](https://user-images.githubusercontent.com/30285620/116964898-c9969580-acd6-11eb-94cf-a031a41d0a0d.png)
3. generate some test results and put environment.properties in the results folder
![image](https://user-images.githubusercontent.com/30285620/116964973-f9459d80-acd6-11eb-9633-d2d0721e69b6.png)
4. do generate report with command line: ...\bin\allure generate -c -o report-folder results-folder
5. open report with command line ...\bin\allure open report-folder
6. pay attention to the "ENVIRONMENT" section:
![image](https://user-images.githubusercontent.com/30285620/116965618-73c2ed00-acd8-11eb-92f5-b9b659e10720.png)
........6.1 pay attention to the **encoding** of russian words
........6.2 note the **order of values** in the "ENVIRONMENT" section

**Expected behavior**
6.1 russian words are displayed correctly
6.2 the order of the key=value pairs corresponds to the order in the file environment.properties

-----
| Allure version | 2.13.0 |
| --- | --- |
| Test framework | ![image](https://user-images.githubusercontent.com/30285620/116966050-7d008980-acd9-11eb-909c-5f22141ae46d.png)|

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with a UTF-8 environment.properties containing Russian key/value pairs, then run the documented allure generate and allure open commands. Inspect the generated ENVIRONMENT section; done means the Russian text displays correctly and key=value pairs retain the file's order.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.