GithubHelp home page GithubHelp logo

allure-framework / allure-csharp-commons Goto Github PK

View Code? Open in Web Editor NEW
9.0 19.0 13.0 1.27 MB

Deprecated, use https://github.com/allure-framework/allure-csharp instead

License: Other

C# 99.80% HTML 0.20%

allure-csharp-commons's Introduction

[DEPRICATED]

AllureCSharpCommons

Travis build Status

Appveyor build status

C# implementation of Allure core classes such as event definitions, lifecycle entry point, exceptions.

Docs: Wiki

Available in NuGet package manager:

PM> Install-Package AllureCSharpCommons

allure-csharp-commons's People

Contributors

bakanych avatar ilya-murzinov avatar someuser77 avatar xiaoxinghu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

allure-csharp-commons's Issues

Support for [Issue], [Ignore] attributes, and steps

Hi,
Have a few questions regarding the NUnit adapter and .NET support in general.

  1. I've seen you've implemented the @Issue annotation support for Java frameworks - is there any intention to do the same for NUnit adapter?
  2. Is there any intention to add Step attribute to NUnit adapter? (there is a support of test steps in AllureCSharpCommons tho... and there is already open issue on that - #3)
  3. Is there any intention to allow customization/enhancement of test state? For now, I find it quite unusable to not have the 'ignored' state for the NUnit tests being ignored - they now are marked as 'pending' which is confusing

Just wondering if you pay any attention to the .NET support atm and is there a reason to wait for updates from your side or it's better to fork the projects :)

How to use Allure Attributes with SpecFlow?

There are a few attributes that Allure allows to use: https://github.com/allure-framework/allure-csharp-commons/tree/master/AllureCSharpCommons/Attributes

They are:

  • AllureDescriptionAttribute
  • AllureFeaturesAttribute
  • AllureSeverityAttribute
  • AllureStoriesAttribute
  • AllureTitleAttribute

Is it possible to use them with SpecFlow?

I know that AllureSeverityAttribute can be used by adding a tag to SpecFlow Scenario like @blocker, but it also requires special allureConfig like:

"specflow": {
    "stepArguments": {
      "convertToParameters": "true",
      "paramNameRegex": "",
      "paramValueRegex": ""
    },
    "grouping": {
      "suites": {
        "parentSuite": "^parentSuite:?(.+)",
        "suite": "^suite:?(.+)",
        "subSuite": "^subSuite:?(.+)"
      },
      "behaviors": {
        "epic": "^epic:?(.+)",
        "story": "^story:(.+)"
      }
    },
    "labels": {
      "owner": "^author:?(.+)",
      "severity": "^(normal|blocker|critical|minor|trivial)"
    },
    "links": {
      "tms": "^story:(.+)",
      "issue": "^issue:(.+)",
      "link": "^link:(.+)"
    }

But what about all the other attributes?

Missing XML Attributes

I was just working at an implementation of a Nunit 3 log adapter using the c# commons to generate my log. From what I'm seeing (unless I'm missing something) there is only a limited set of the XML attributes which Allure can consume that can be generated from the C# commons (for example I couldn't figure out how to generate a Product Defect). So I had two questions:

  1. Am I missing some call that would allow me to do that already?
  2. Is this a case of (as I saw in other issues) that the code hasn't been maintained? If that is the case, is there a diff of what needs to be implemented to support the missing items?

Screenshot is taken after browser is already closed

Hello,

Could you please take a look at the following issue. Allure takes screenshot in incorrect time (e.g. when browser is already closed). This is just an example of my test (nUnit)

ChromeDriver driver = new ChromeDriver();
public void SampleTest()
        {           
            driver.Manage().Window.Maximize();
            driver.Navigate().GoToUrl("http://localhost/Basic.html");
            Assert.Fail();
        }

[TearDown]
        public void TearDown()
        {
            driver.Close();
            driver.Quit();
        }

Could you please advise if this can be fixed or there is any workaround for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.