Permalink
Browse files

Bumped up the version to 3.1.0 with Klov support. (#97)

Deprecated the ExtentX related implementation.
  • Loading branch information...
email2vimalraj committed Jul 1, 2018
1 parent dd18d4a commit 74487158e5e8c915109f0454847de258c6cb3876
@@ -14,7 +14,7 @@ If you are using a maven based project, you can directly add this library as a d
<dependency>
<groupId>com.vimalselvam</groupId>
<artifactId>cucumber-extentsreport</artifactId>
<version>3.0.2</version>
<version>3.1.0</version>
</dependency>
```
@@ -97,26 +97,7 @@ The above example shows a JUnit runner. However, you can use the TestNG runner t
Also make sure the `loadXMLConfig`, `setSystemInfo` and `setTestRunnerOutput` methods should be in your `@AfterClass` method.
### Setting up ExtentX
The current release added a support for `ExtentX`. The results of your execution can be sent to `ExtentX` dashboard.
The `ExtentX` configurations can be set up using `ExtentProperties` enum as follows:
```java
plugin = {"com.cucumber.listener.ExtentCucumberFormatter:"}
......
......
@BeforeClass
public static void setup() {
ExtentProperties extentProperties = ExtentProperties.INSTANCE;
extentProperties.setReportPath("output/myreport.html");
extentProperties.setExtentXServerUrl("http://localhost:1337");
extentProperties.setProjectName("MyProject");
}
```
You can either setup ExtentX in your local / remote machine using:
- [A docker approach - 2 minutes to setup](http://www.vimalselvam.com/2017/04/13/shipping-extentx-in-a-docker-container/)
- [A plain vanilla approach](http://extentreports.com/docs/extentx/)
Since ExtentReport does not support ExtentX anymore, we have deprecated the ExtentX and added support for [Klov](#setting-up-klov). Thanks to (@msingh3)[https://github.com/msingh3] for the contribution.
### Setting up Klov
The current release added a support for `Klov`. The results of your execution can be sent to `Klov` dashboard.
@@ -6,7 +6,7 @@
<groupId>com.vimalselvam</groupId>
<artifactId>cucumber-extentsreport</artifactId>
<version>3.0.2</version>
<version>3.1.0</version>
<build>
<plugins>
<plugin>
@@ -58,7 +58,6 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cucumber.version>1.2.5</cucumber.version>
<extentreports.version>3.1.1</extentreports.version>
</properties>
<dependencies>
@@ -100,7 +99,7 @@
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>${extentreports.version}</version>
<version>[3.1.1,)</version>
<scope>provided</scope>
</dependency>
</dependencies>
@@ -65,6 +65,8 @@ private static void setExtentReport() {
}
extentReports = new ExtentReports();
ExtentProperties extentProperties = ExtentProperties.INSTANCE;
// Remove this block in the next release
if (extentProperties.getExtentXServerUrl() != null) {
String extentXServerUrl = extentProperties.getExtentXServerUrl();
try {
@@ -47,6 +47,7 @@ public void setReportPath(String reportPath) {
* Gets the ExtentX server URL
* @return The ExtentX server URL
*/
@Deprecated
public String getExtentXServerUrl() {
return extentXServerUrl;
}
@@ -55,6 +56,7 @@ public String getExtentXServerUrl() {
* Sets the ExtentX server URL
* @param extentXServerUrl The ExtentX server URL
*/
@Deprecated
public void setExtentXServerUrl(String extentXServerUrl) {
this.extentXServerUrl = extentXServerUrl;
}

0 comments on commit 7448715

Please sign in to comment.