automatedowl / allure-environment-writer Goto Github PK
View Code? Open in Web Editor NEWJava library which allows to write environment.xml file into allure-results directory.
License: Apache License 2.0
Java library which allows to write environment.xml file into allure-results directory.
License: Apache License 2.0
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
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.
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;
pls help me
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)
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>
29.0-jre
-> 31.0.1-jre
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 :(
Dependabot has two open PRs. They are tied to active CVEs. It would be helpful if they were accepted and a new release pushed.
in case in pom have first com.github.automatedowl, Allure class losts its methods (for example : step())
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.