Job Conf for Sending Custom Mail Report From Jenkins

Go to job panel 

For custom test result mail, You can first make package (jar) of your project, after in post build-step, you can run your  command using terminal by selecting Execute shell. (Please not use windows batch command, it creates temporary file which will not execute many times showing error file not found.)
Run testng xml the shell command is as follow:

java -cp path_to_jar org.testng.TestNG path_to_testNG_xml

All path must be absolute.

Comments

Popular posts from this blog

Security Testing

API Automation using Rest Assured

Manage Jenkins