Giter VIP home page Giter VIP logo

allure-environment-writer's Issues

ENV not visible

Hello,
I am trying to use this solution :)
I have test project with Java + Selenium + Gradle + TestNg.

Gradle:
compile group: 'com.github.automatedowl', name: 'allure-environment-writer', version: '1.0.0' testCompile group: 'com.github.automatedowl', name: 'allure-environment-writer', version: '1.0.0'

Code:
@BeforeSuite void setAllureEnvironment() { allureEnvironmentWriter( ImmutableMap.<String, String>builder() .put("Browser", "Chrome") .put("Browser.Version", "70.0.3538.77") .put("URL", "http://testjs.site88.net") .build()); }

And I see no information about the environment now :(

Can you make compatible with gradle?

Im trying to use with gradle and on there the allure results are on build/allure results
But the enviroment always create on target/allure results

I think a quick way to fix t his is create a parameter to indicate the allure results folder

Cannot run test scripts when add allure-environment-writer

I want to add more information to allure report, but when I add this library to pom.xml, I cannot run test scripts. Before adding it, my scripts run normally.
this is the issue console:
java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;
image
image
pls help me

Update TestNG to > 7.7.0 to resolve CVE-2022-4065

Hello there! I wanted to open a new issue for visibility, following up on #10. Unfortunately, the version of TestNG which Dependabot created a PR for was 7.5.1, rather than the semantically newer 7.7.1 or 7.8.0. CVE-2022-4065 is fixed in versions > 7.7.0, so is there any chance you'd be able to update TestNG further to either 7.7.1 or 7.8.0? I can submit a PR if it would be helpful, but hopefully this should be a trivial change.

Guava dependancy conflict

Description of issue

When upgrading our version of selenium-java to 4.1.2 we see the following issue due to a conflict in the dependancy version of Guava used within the dependancy.

java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap.of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;
	at org.openqa.selenium.chrome.AddHasCasting.getAdditionalCommands(AddHasCasting.java:38)
	at org.openqa.selenium.chrome.ChromeDriver$ChromeDriverCommandExecutor.getExtraCommands(ChromeDriver.java:123)
	at org.openqa.selenium.chrome.ChromeDriver$ChromeDriverCommandExecutor.<init>(ChromeDriver.java:118)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:106)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:93)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:82)

Interim fix

Adding an exclusion onto the dependancy within the pom.xml

        <dependency>
            <groupId>com.github.automatedowl</groupId>
            <artifactId>allure-environment-writer</artifactId>
            <version>1.0.0</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

Fix

  • Bump the version of Guava for the dependancy from 29.0-jre -> 31.0.1-jre
  • Remove the need for the Guava dependancy

Info

allure and some conflicts

in case in pom have first com.github.automatedowl, Allure class losts its methods (for example : step())
image

but if first is io.qameta.allure in pom it works properly

<dependency>
            <groupId>com.github.automatedowl</groupId>
            <artifactId>allure-environment-writer</artifactId>
            <version>1.0.0</version>
</dependency>
<dependency>
            <groupId>io.qameta.allure</groupId>
            <artifactId>allure-junit5</artifactId>
            <version>2.16.1</version>
</dependency>

also if I have in pom

<dependency>
            <groupId>com.github.automatedowl</groupId>
            <artifactId>allure-environment-writer</artifactId>
            <version>1.0.0</version>
</dependency>

I always get exception :
java.lang.RuntimeException: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
I use java11
I tried to put it after all dependencies but still got this java.lang.RuntimeException

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.