allure

Unable to save allure report screeshots using TestNG

大城市里の小女人 提交于 2019-12-05 19:06:54
I am attempting to use Allure reporting for my Selenium Webdriver + TestNG + Maven project. I used AllureListener class as specified in Allure documentation and in example . However I am unable to get screenshots correctly attached to report. Here are my observations: I am able to see only *.xml files generated in target/allure-results , not the screenshot files. I see that images are temporarily stored in /temp folder and then get deleted by the time the test execution report is generated. That means the screenshot images are stored in wrong location I suppose. My requirement: I am expecting

Generate simple html based on jasmine-allure-reporter

余生颓废 提交于 2019-12-04 21:37:19
I'm using jasmine-allure-reporter and the report is simply awesome. Only complaint over the reporter is that I miss option to enable only failed screenshots to be saved and possibility to send it via e-mail. I know that is not possible: How to send an email of allure report? My question is whether I can somehow generate a simple html file with few data based on the allure reports, so that I'll be able to send it via e-mail to relevant people. Hope you have added this in your conf file: onPrepare: function () { browser.manage().timeouts().implicitlyWait(15000); var AllureReporter = require(

Generate HTML report for WebdriverIO/Cucumber framework

。_饼干妹妹 提交于 2019-12-04 14:57:00
I am using WebdriverIO/Cucumber ( wdio-cucumber-framework ) for my test automation. I want to get the test execution result in a HTML file. As of now I am using Spec Reporter ( wdio-spec-reporter ). Which helps to print the results in console window. But I want all the execution reports in a HTML file. How can I get WebdriverIO test execution result in a HTML file? Thanks. OK, finally got some spare time to tackle your question @Thangakumar D . WebdriverIO reporting is a vast subject ( there are multiple ways to generate such a report ), so I'll go ahead and start with my favorite reporter:

allure

為{幸葍}努か 提交于 2019-12-04 09:02:37
allure.feature # 用于定义被测试的功能,被测产品的需求点 allure.story # 用于定义被测功能的用户场景,即子功能点 with allure.step # 用于将一个测试用例,分成几个步骤在报告中输出 allure.attach # 用于向测试报告中输入一些附加的信息,通常是一些测试数据信息 pytest.allure.step # 用于将一些通用的函数作为测试步骤输出到报告,调用此函数的地方会向报告中输出步骤 来源: https://www.cnblogs.com/ruguokeyi/p/11851577.html

testng+maven+allure 的测试框架

淺唱寂寞╮ 提交于 2019-12-04 06:25:32
1. maven和allure都需要下载到本地,然后在path中进行设置。 testng不需要,在pom.xml中写上dependence就可以自己拉取。 mvn和allure的下载和配置就不在展开。 2. allure的配置。 <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-testng</artifactId> <version>2.0-BETA18</version> </dependency> <properties> <aspectj.version>1.8.10</aspectj.version> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.20</version> <configuration> <argLine> -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version

Pytest实战Web测试框架

本小妞迷上赌 提交于 2019-12-04 03:32:44
https://www.jianshu.com/p/9a03984612c1?utm_campaign=hugo&utm_medium=reader_share&utm_content=note&utm_source=weixin-timeline&from=timeline&isappinstalled=0 项目结构 用例层(测试用例) | Fixtures层(业务流程) | PageObject层 | Utils实用方法层 使用pytest-selenium 基础使用 # test_baidu.py def test_baidu(selenium): selenium.get('https://www.baidu.com') selenium.find_element_by_id('kw').send_keys('简书 韩志超') selenium.find_element_by_id('su').click() 运行 $ pytest test_baidu.py --driver=chrome 或配置到pytest.ini中 [pytest] addopts = --driver=chrome 使用chrome options # conftest.py import pytest @pytest.fixture def chrome_options(chrome

安装allure测试报告

时光毁灭记忆、已成空白 提交于 2019-12-03 14:34:20
必须安装 jdk1.8 ,配置环境变量 一、环境准备    Windows10    jdk-9.0.1 二、下载并安装 JDK 到 Java 的官网下载 JDK 安装包,地址: http://www.oracle.com/technetwork/java/javase/downloads/index.html ,选择一个适合自己的 JDK 版本下载并安装即可,具体流程不详述。 二、环境变量配置    1 、右键桌面上 “ 我的电脑 ”>>“ 属性 ” ,在弹出的页面上点击 “ 高级系统设置 ” 。       2 、在弹出的 “ 系统属性 ” 窗口中 “ 高级 ” 标签页下点击 “ 环境变量 ” 按钮。       3 、在弹出的 “ 环境变量 ” 窗口中,点击下方的 “ 新建 ” 按钮,在弹出的 “ 新建系统变量 ” 窗口中,新建一个名为 “JAVA_HOME” 的环境变量,变量值为 Java 的安装路径,本人为: D:\project\tool\Java\jdk_9.0.1 。如图所示。       4 、设置 Path 环境变量,该变量已经存在,所以在列表中选择 Path ,点击下方的 “ 编辑 ” 按钮,在弹出的窗口中添加如下信息: %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin ,然后点击 “ 确认 ” 按钮即可。如图所示:       5 、和

createAttachment using mocha-allure-reporter

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Im trying to add a screenshot as an attachment in allure reports using mocha-allure-reporter. I dont get any errors, but the screenshot does not have save in ./reports/allure-results, and no console log either. Is this the correct way to use allure.createAttachment? declare const allure: any; afterEach('first step', function () { allure.createStep('initial', () => { browser.takeScreenshot().then(function (png) { allure.createAttachment('Screenshot', function () { return new Buffer(png, 'base64'); }, 'image/png')(); console.log('screenshot