简体   繁体   中英

Jenkins with linux machine for selenium script

I have created selenium testng.xml file and make windows batch file for my local window machine and Jenkins build now function perfectly working

But now client expectation is run jenkins projects for same selenium script in Linux server machine.

I m not aware about how can i start for my testng file for linux server?

You created batch file while working with testng.xml on Windows. You would create an equivalent shell file while working with testng.xml on Linux.

Once done, Go to Jenkins Job configuration build section and select Execute Shell option.

Put you shell script in command window or execute shell file directly from command window itself.

To execute shell file, use below syntax:

./<file>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM