This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install brew: | |
/bin/bash -c "$(curl --tlsv1.2 -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew update | |
brew doctor | |
brew tap homebrew/cask-versions | |
# install ohmyzsh | |
ZSH= sh -c "$(curl --tlsv1.2 -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
put this in your POM file | |
<dependencies> | |
<dependency> | |
<groupId>com.applitools</groupId> | |
<artifactId>eyes-images-java3</artifactId> | |
<version>RELEASE</version> | |
</dependency> | |
<dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.testng.asserts.SoftAssert; | |
public class MyTest { | |
private SoftAssert soft; | |
public void sampleMethod() { | |
soft = BaseTest.getSoftAssert(); | |
soft.assertTrue(false, "This is a Soft Assertion usage example"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.commons.lang3.exception.ExceptionUtils; | |
import org.testng.IHookCallBack; | |
import org.testng.IHookable; | |
import org.testng.ITestResult; | |
import org.testng.Reporter; | |
import org.testng.asserts.SoftAssert; | |
public class BaseTest implements IHookable { | |
String testName = null; |