Working with Jenkins Server?

Is that possible to Scedule Appium(WebDriver)(TestNG) tasks usning Jenkins Server.

Please let me know if it is.

Thanks,
Ajit.

Hi @AjitJ,

Yes, it is possible we have tried the same in our automation setup. You can use necessary plugin to publish TestNG tests’ results.
If you need further information, let me know.

Thanks,
Sujata

Hi Sujata,
I am thankful for your reply.
Will you please let me know those steps in detail so that I can Start to Work On.
Thanks,
Ajit.

Hi @AjitJ,

You can use Maven as a build tool and drive execution of your testng xml or create a Windows batch file to execute your testng xml by following below steps:

  1. Add classpath
  2. Provide location to store compiled classes
  3. Compile all test classes
  4. Execute testng.xml provide any command line parameters required.
    Along with this in case you want to start Appium programmatically, use this link:
    Launching and stopping appium server programmtically [Start appium programmatically][1]

Let me know if you need further info.

Thanks,
Sujata

Hello Sujata,

I am trying to Execute TestNG Class from Jenkins Server on Mac Machine, Any Idea how to done with the gig ?

Thanks,
Ajit.

mvn -Dtestfile=“path_to_you_file”

Hello,Aleksei,
Please let me know in detail.

Thanks,
Ajit Jadhav.

to start tests itself with maven on Mac you need:

  • navigate to test source folder
  • run Example of our testNG start “mvn test -DsuiteFile=src/test/java/resources/testAndroidLocal.xml”

how exactly do it with Jenkins configuration of running test suites i have no idea.

:unamused:

please let me know in details …ASAP.

Thanks,
Ajit Jadhav.