Script to run automation on mac on sauceLab

echo “Hello World!”
brew cask reinstall adoptopenjdk8
echo $(/usr/libexec/java_home)
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
echo $JAVA_HOME
brew install maven@3.6
mvn -v
echo ‘export PATH=”/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home:$PATH”‘ >> ~/.zshrc
java -version
mvn clean test -Dtest=com.runner.CukeRunner -Dcucumber.options=”Feature/Dashboard.feature –tags @Test125″ -DfailIfNoTests=false -DplatformValue=sauceAndroid

Leave a Reply

Your email address will not be published. Required fields are marked *