javashelljenkinsselenium-webdriver

How to convert windows batch file to mac sh file?


I was using windows batch file to execute my automation scripts through Jenkins but now I have to move to Mac OS x. Can anyone help me to convert following batch file to shell scripts?

java –cp C:/somepath/bin; C:/somepath/lib/* org.testng.TestNG testng.xml

Solution

  • this should work:

    java –cp <path1>:<path2> org.testng.TestNG testng.xml
    

    if Java is not in the path you have to add it in front of the Java command