allure-framework / allure-framework/allure-python

How to create a custom Allure step function for sensible data

Đang mở
#481 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
task:new feature theme:core
Ngôn ngữ chính
Python
Star
814
Fork
260
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

#### I'm submitting a ...
- [ ] bug report
- [x] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.

#### What is the current behavior?
With a step decorator like this:
![imagen](https://user-images.githubusercontent.com/26765591/77885990-59624880-7268-11ea-9bd6-96906efd1518.png)

Which takes an element (a text box) and enters the value in it. In the step function I display the value that I want to enter No matter what I enter on the step title, the report always shows the info that was passed as arguments to the function.

My report looks like the following image:
![imagen](https://user-images.githubusercontent.com/26765591/77886155-a34b2e80-7268-11ea-9c12-bef4e7382fdf.png)

#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Not a bug

#### What is the expected behavior?
Thus, the "value" argument will always be displayed and that is something that I cannot have on certain projects. I could either use with not showing the value at all or to change it to something like '*****'. Is there anyway to make a custom step function that solves my problem?.

#### What is the motivation / use case for changing the behavior?
I am currently working on a Testing Automation team, using Python and Allure to make reports of all the test cases that we run. Sometimes we deal with sensible data (e.g: passwords) that I can't show directly on the reports due to data protection policies.

#### Please tell us about your environment:

- Allure version: 2.13.0
- Test framework: pytest@3.6.1
- Allure adaptor: pytest-allure-adaptor@1.7.10

#### Other information

[//]: # (
. e.g. detailed explanation, stacktraces, related issues, suggestions
. how to fix, links for us to have more context, eg. Stackoverflow, Gitter etc
)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách xem xét step decorator và đường đi từ các đối số của nó đến tiêu đề báo cáo Allure. Kiểm tra hành vi của pytest adapter được mô tả trong issue và xác định cách một custom step có thể bỏ qua hoặc che giá trị nhạy cảm như mật khẩu. Công việc được xem là hoàn tất khi một custom step có thể tạo ra báo cáo hữu ích mà không làm lộ đối số nhạy cảm của nó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
testing
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.