allure-framework / allure-framework/allure-python

allure plugin for robotframework-seleniumlibrary

未关闭
#476 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
theme:robotframework
主要语言
Python
星标
814
派生
260
PR 合并指标
30 天内没有已合并 PR

描述

[//]: # (
. Note: for support questions, please use Stackoverflow or Gitter**.
. This repository's issues are reserved for feature requests and bug reports.
.
. In case of any problems with Allure Jenkins plugin** please use the following repository
. to create an issue: https://github.com/jenkinsci/allure-plugin/issues
.
. Make sure you have a clear name for your issue. The name should start with a capital
. letter and no dot is required in the end of the sentence. An example of good issue names:
.
. - The report is broken in IE11
. - Add an ability to disable default plugins
. - Support emoji in test descriptions
)

#### 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.

This could be an good example or part of a robot adapter
```python
import allure
from SeleniumLibrary import ScreenshotKeywords
from SeleniumLibrary.base import keyword, LibraryComponent

class AllureSeleniumPlugin(LibraryComponent):

@keyword
def capture_page_screenshot(self, filename='selenium-screenshot-{index}.png'):
path = ScreenshotKeywords(ctx=self.ctx).capture_page_screenshot(filename)
allure.attach.file(path, attachment_type=allure.attachment_type.PNG)
```

```robot
Library SeleniumLibrary plugins=AllureSeleniumPlugin
```

贡献指南

打开贡献指南

调研方向

从提议的 Python AllureSeleniumPlugin 示例及其 capture_page_screenshot 入口点开始。检查 Robot Framework Library 设置如何传递 plugins=AllureSeleniumPlugin,然后确定集成所需的范围。Done 应提供一个可用的 SeleniumLibrary 插件,将捕获的页面截图附加到 Allure 报告中。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
testing
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。