allure

Allure Framework: using @Step and @Attachment annotations with TestNG and Maven

怎甘沉沦 提交于 2019-12-24 04:31:35
问题 I am working on a project that uses Allure framework with Java, TestNG and Maven. But I'm unable to generate correct XML files while using Allure @Step and @Attachment annotations in my Java program. Any sample code demonstrating usage of the above annotations is appreciated. I am using Allure 1.4.0.RC8. 回答1: These annotations are used in the same way with any Java-based test framework. To create a step: Create method with any visibility modifier (public, private, protected) with step logic

Generate simple html based on jasmine-allure-reporter

老子叫甜甜 提交于 2019-12-22 00:31:01
问题 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. 回答1: Hope you have added this in your conf file:

module 'pytest' has no attribute 'allure'问题解决

◇◆丶佛笑我妖孽 提交于 2019-12-17 19:22:06
安装allure后执行命令后报错module 'pytest' has no attribute 'allure' C:\Users\Desktop\xin>pytest -s -q --alluredir report INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "c:\python34\lib\site-packages\_pytest\main.py", line 199, in wrap_session INTERNALERROR> config._do_configure() INTERNALERROR> File "c:\python34\lib\site-packages\_pytest\config\__init__.py", line 636, in _do_configure INTERNALERROR> self.hook.pytest_configure.call_historic(kwargs=dict(config=self)) INTERNALERROR> File "c:\python34\lib\site-packages\pluggy\hooks.py", line 306, in call_historic INTERNALERROR> res =

Allure report: nothing shown in Chrome

谁说胖子不能爱 提交于 2019-12-17 07:33:26
问题 I'm trying to use Allure-framework to generate a report for my Selenium WebDriver tests. I use JUnit framework and allure-maven-plugin with version 1.3.9 of Allure. I run tests with mvn test then generate the report using mvn site . I see generated report in target/site/allure-maven-plugin/ directory. When I open index.html page with Firefox it works normally. However when doing the same thing in Chrome or Safari I see nothing . What's wrong? Am I missing something? My pom.xml file is located

Reporting tool for Nunit 3 and Selenium C#

眉间皱痕 提交于 2019-12-13 08:27:37
问题 I'm using Selenium with C# to create my automated tests. Now i have to use some sort of reporting tools to save the test cases whether they passed,failed...etc. I've seen a lot of tools like Allure, and Jenkins. But they require an XML file. and i can't find it when i run my tests using Visual 2013. Why is that ? how to obtain these XML files in details if i'm missing something ? Is there any way i could achieve this with minimum effort ? EDIT: How can i run my tests using Nunit console

Not able to generate allure report in pytest. Getting 'AttributeError: module 'allure' has no attribute 'severity_level''

倾然丶 夕夏残阳落幕 提交于 2019-12-13 03:59:18
问题 I have 2 files- conftest.py: import pytest from selenium import webdriver driver = None @pytest.fixture(autouse = True) def browserSetAndClose(): global driver EXE_PATH = r'C:\Users\1602746\Softwares\chromedriver.exe' chromeOptions = webdriver.ChromeOptions() chromeOptions.add_experimental_option('useAutomationExtension', False) driver = webdriver.Chrome(executable_path = EXE_PATH, options = chromeOptions, desired_capabilities = chromeOptions.to_capabilities()) driver.implicitly_wait(10)

Generate HTML report for WebdriverIO/Cucumber framework

狂风中的少年 提交于 2019-12-12 08:56:11
问题 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. 回答1: OK, finally got some spare time to tackle your question @Thangakumar D. WebdriverIO reporting is a vast subject (

How to send an email of allure report?

℡╲_俬逩灬. 提交于 2019-12-12 07:28:53
问题 I am trying to send an email of the allure report generated by the framework using selenium. I have read the documentation but could not find any answer on how to send email. Could any one please point me to the correct direction. Thanks, Sudheer 回答1: In case you only need to send the report summary - it is not possible yet. Here you can find the ticket for such feature. 回答2: Allure generates a collection of files, that ought to be viewed via a web server. This due to the browsers

Unable to Deploy Allure report on Jetty server

佐手、 提交于 2019-12-11 20:09:41
问题 I am trying to deploy allure report which was generated after "mvn clean test site". I have used mvn jetty:run and when I tried to open "http://localhost:8080", I got a "Directory:/" as a text in firefox browser instead of actual Allure report. Output of jetty server Error Section No Error pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0

Not able to view Allure report on Jetty server

本秂侑毒 提交于 2019-12-11 18:07:54
问题 I am trying to set up Allure reports in my automation project. I am following - https://github.com/allure-framework/allure-core/wiki/TestNG, but the http://localhost:8080 only shows "Directory: /" text. I also found Unable to Deploy Allure report on Jetty server had the same problem but the solution there didn't help. 回答1: Looks like you have wrong site path for jetty, try to change jetty parameter from: <webAppSourceDirectory>${project.basedir}/site/allure-maven-plugin</webAppSourceDirectory