1

I am new to automation using Appium. So while using Eclipse i created a TestSuite.java file which includes all of my test cases.I want to run this file using JUnit in eclipse through command terminal.Please help me with command in mac.

I am using macOs. I am adding some screenshots of my project.

(1) This is my project in eclipse

[1]


(2) This is my TestSuite.java file

[2]

(3) Output after running

mvn surefire:test - DrunSuite=com.appium.automation.MobileGesturesRevised/TestSuite.class

Output: output in terminal

(4) pom.xml file

pom.xml

Dinesh Kumar
  • 545
  • 4
  • 17

1 Answers1

2

I think I see a pom.xml in the screen shot so you can run

mvn surefire:test -DrunSuite=com.appium.automation.MobileGesturesRevised/TestSuite.class

You can just create a new run configuration for that under the Eclipse run menu.

fhossfel
  • 2,041
  • 16
  • 24