Unable to run the TestNG through the Terminal on mac for maven project

Hi,

I have maven project in for the automation scripts, I am able to run the automation script through the eclipse using TestNG but when I tried to run the script from terminal then i got error of Classpath. I have maven project so their is no bin folder for it so how should i set the classpath. My script trigger the Appium and start  the session and run the script when it run through the eclipse. I tried following command on terminal to run the script :

My-mac : java -cp “/Library/Java/Extensions/testng-6.11.jar:/Users/jenkins/Desktop/new_v8/SourceCode/iPadAutong_clients/lib/selenium-support-3.6.0.jar:/Users/jenkins/Desktop/new_v8/SourceCode/iPadAutong_clients/lib/selenium-java-3.6.0.jar:/Users/jenkins/Desktop/new_v8/SourceCode/iPadAutong_api/target/_iPadAutoNg_api-8.1.7.jar:/Users/jenkins/Desktop/new_v8/SourceCode/iPadAutong_ahm/target/_iPadAutoNg_ahm-8.1.7.jar:/Users/jenkins/Desktop/new_v8/SourceCode/iPadAutong_clients/target/_iPadAutomation_Clients-8.1.7.jar” org.testng.TestNG /Users/jenkins/Desktop/new_v8/SourceCode/iPadAutong_clients/suites/programs/EngagementBasedProgram/InitiateEngagementBasedConsultingProgram.xml

===============================================

ConsultingPrograms

Total tests run: 0, Failures: 0, Skips: 0

===============================================

Default Asked on March 16, 2018 in Appium.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.