Skip to content

Commit

Permalink
release 0.0.1 verison
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakovych Alexey committed Nov 16, 2019
1 parent 3e9b19e commit 495ecba
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 45 deletions.
38 changes: 21 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,16 @@

<groupId>com.loliktest</groupId>
<artifactId>ufit</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.0.1</version>

<distributionManagement>
<repository>
<id>artifactory</id>
<name>artifactory-releases</name>
<url>https://pdffiller.jfrog.io/pdffiller/qa</url>
<id>github</id>
<name>GitHub AlexLAA Apache Maven Packages</name>
<url>https://maven.pkg.github.com/AlexLAA/com.loliktest.ufit</url>
</repository>
<snapshotRepository>
<id>artifactory</id>
<name>artifactory-snapshots</name>
<url>https://pdffiller.jfrog.io/pdffiller/qa</url>
</snapshotRepository>
</distributionManagement>


<repositories>
<repository>
<id>artifactory</id>
<url>https://pdffiller.jfrog.io/pdffiller/qa</url>
</repository>
</repositories>

<build>
<plugins>
<plugin>
Expand All @@ -40,6 +27,23 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
</plugin>
</plugins>
</build>
<dependencies>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/loliktest/ufit/Browser.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public void get(String url) {
public void quit() {
listeners.forEach(l -> l.quite(this));
driver().quit();
System.out.println("QUITE");
}

public String getCurrentUrl() {
Expand Down
23 changes: 23 additions & 0 deletions src/main/java/com/loliktest/ufit/BrowserQuiteListener.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.loliktest.ufit;

import org.testng.*;

public class BrowserQuiteListener implements ISuiteListener {


@Override
public void onStart(ISuite suite) {

}

@Override
public void onFinish(ISuite suite) {
for (Browser browser : UFitBrowser.runtimeBrowsersList) {
try {
browser.quit();
} catch (Exception e){
continue;
}
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/loliktest/ufit/UFitBrowser.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class UFitBrowser {

private static ThreadLocal<List<Browser>> BROWSERS = ThreadLocal.withInitial(ArrayList::new);
private static ThreadLocal<Browser> CURRENT_BROWSER = new ThreadLocal<>();
private static List<Browser> runtimeBrowsersList = new ArrayList<>();
static List<Browser> runtimeBrowsersList = new ArrayList<>();

private UFitBrowser() {
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
com.loliktest.ufit.listeners.testng.BrowserQuiteListener
com.loliktest.ufit.BrowserQuiteListener
com.loliktest.ufit.listeners.testng.AllureAttachmentsListener

0 comments on commit 495ecba

Please sign in to comment.