I have a TestNG project where I use testng.xml file to execute. How to take a jar of my project and execute it on another machine. I know how to execute it on the same machine by giving path of bin & lib folders i.e
cd C:\Workspace\projectname java -cp C:\Workspace\projectname\lib*;C:\Workspace\projectname\bin org.testng.TestNG testng.xml.
But if i want to do on another machine how to do this?
You can create a bash file which points to your testng.xml file.
Use this: Bash file is running fine in windows for testng but it is not working in linux/mac
Steps:-
Note: - Java, require browsers must be present in other computer and it's a prerequisite which is nothing to do with your automation script run. they must be pre-installed