@Jai_P : I too am facing the same issue. Enclosing the logs here :
[Appium] Welcome to Appium v1.6.4
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.4","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 16 ms - 83
[HTTP] --> POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"app":"/Users/testUser/Downloads/SYW_Test.app","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone 6","platformVersion":"10.3"},"requiredCapabilities":{}},"desiredCapabilities":{"app":"/Users/testUser/Downloads/SYW_Test.app","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone 6","platformVersion":"10.3"},"requiredCapabilities":{}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/testUser/Downloads/SYW_Test.app","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone 6","platformVersion":"10.3"},{},{"desiredCapabilities":{"app":"/Users/testUser/Downloads/SYW_Test.app","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone 6","platformVersion":"10.3"},"requiredCapabilities":{}},null,null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1496686816632 (23:50:16 GMT+0530 (IST))
[Appium] Creating new XCUITestDriver (v2.27.2) session
[Appium] Capabilities:
[Appium] app: '/Users/testUser/Downloads/SYW_Test.app'
[Appium] automationName: 'XCUITest'
[Appium] platformName: 'iOS'
[Appium] deviceName: 'iPhone 6'
[Appium] platformVersion: '10.3'
[debug] [XCUITest] XCUITestDriver version: 2.27.2
[BaseDriver] Session created with session id: f3b32d31-7cb2-4108-9f84-25289d9460c9
[debug] [XCUITest] Xcode version set to '8.3.2' (tools v8.3.2.0.1.1492020469)
[debug] [XCUITest] iOS SDK Version set to '10.3'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1496686816769 (23:50:16 GMT+0530 (IST))
[iOSSim] Constructing iOS simulator for Xcode version 8.3.2 with udid '5AF8A9CF-E81C-4E04-8553-3FFC3561A528'
[XCUITest] Determining device to run tests on: udid: '5AF8A9CF-E81C-4E04-8553-3FFC3561A528', real device: false
[BaseDriver] Using local app '/Users/testUser/Downloads/SYW_Test.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1496686816921 (23:50:16 GMT+0530 (IST))
[debug] [XCUITest] Checking whether app '/Users/testUser/Downloads/SYW_Test.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/Users/testUser/Downloads/SYW_Test.app': 'com.test.app'
[debug] [BaseDriver] Event 'resetStarted' logged at 1496686816925 (23:50:16 GMT+0530 (IST))
[XCUITest] Not scrubbing third party app in anticipation of uninstall
[debug] [BaseDriver] Event 'resetComplete' logged at 1496686817076 (23:50:17 GMT+0530 (IST))
[debug] [iOSLog] Starting iOS 10.3 simulator log capture
[debug] [iOSLog] System log path: /Users/testUser/Library/Logs/CoreSimulator/5AF8A9CF-E81C-4E04-8553-3FFC3561A528/system.log
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1496686817202 (23:50:17 GMT+0530 (IST))
[XCUITest] Setting up simulator
[debug] [iOS] No reason to set locale
[debug] [iOS] No iOS / app preferences to set
[XCUITest] Simulator with udid '5AF8A9CF-E81C-4E04-8553-3FFC3561A528' already booted
[debug] [BaseDriver] Event 'simStarted' logged at 1496686817350 (23:50:17 GMT+0530 (IST))
[debug] [XCUITest] Installing /Users/testUser/Downloads/SYW_Test.app on Simulator with UUID '5AF8A9CF-E81C-4E04-8553-3FFC3561A528'...
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1496686827078 (23:50:27 GMT+0530 (IST))
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1496686827080 (23:50:27 GMT+0530 (IST))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage not found. Install using `brew install carthage`
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=5AF8A9CF-E81C-4E04-8553-3FFC3561A528 -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /Users/testUser/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/D4ACCD95-0F2D-40E4-A46E-A0225934D38A/Session-WebDriverAgentRunner-2017-06-05_235028-7kLg1P.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"10.3\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"10.3\",\n \"ip\" : \"192.168.0.104\"\n },\n \"build\" : {\n \"time\" : \"Jun 5 2017 18:24:30\"\n }\n },\n \"sessionId\" : \"661423A1-3D2F-43D5-903C-54C49FB451CD\",\n \"status\" : 0\n}"
[debug] [XCUITest] WebDriverAgent running on ip '192.168.0.104'
[debug] [XCUITest] WebDriverAgent successfully started after 7059ms
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1496686834237 (23:50:34 GMT+0530 (IST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.test.app","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"4DB0F8C6-4B66-4911-A944-56E7140FBB1C","capabilities":{"device":"iphone","browserName":"SYW Test","sdkVersion":"10.3","CFBundleIdentifier":"com.test.app"}},"sessionId":"4DB0F8C6-4B66-4911-A944-56E7140FBB1C","status":0}
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1496686837232 (23:50:37 GMT+0530 (IST))
[debug] [XCUITest] Found WDA derived data folder: '/Users/testUser/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy'
[XCUITest] Setting '555' permissions to '/Users/testUser/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/Attachments' folder
[debug] [XCUITest] Found WDA derived data folder: '/Users/testUser/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs'
[XCUITest] Setting '555' permissions to '/Users/testUser/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments' folder
[debug] [BaseDriver] Event 'wdaPermsAdjusted' logged at 1496686837234 (23:50:37 GMT+0530 (IST))
[debug] [BaseDriver] Event 'wdaStarted' logged at 1496686837234 (23:50:37 GMT+0530 (IST))
[debug] [XCUITest] Setting initial orientation to 'PORTRAIT'
[debug] [JSONWP Proxy] Proxying [POST /orientation] to [POST http://localhost:8100/session/4DB0F8C6-4B66-4911-A944-56E7140FBB1C/orientation] with body: {"orientation":"PORTRAIT"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{},"sessionId":"4DB0F8C6-4B66-4911-A944-56E7140FBB1C","status":0}
[debug] [BaseDriver] Event 'orientationSet' logged at 1496686837386 (23:50:37 GMT+0530 (IST))
[Appium] New XCUITestDriver session created successfully, session f3b32d31-7cb2-4108-9f84-25289d9460c9 added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1496686837388 (23:50:37 GMT+0530 (IST))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"app":"/Users/testUser/Downloads/SYW_Test.app","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone 6","platformVersion":"10.3","udid":"5AF8A9CF-E81C-4E04-8553-3FFC3561A528"}
[HTTP] <-- POST /wd/hub/session 200 20757 ms - 460
Jun 05, 2017 11:50:37 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
[HTTP] --> GET /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: ["f3b32d31-7cb2-4108-9f84-25289d9460c9"]
[debug] [XCUITest] Executing command 'getSession'
[debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/4DB0F8C6-4B66-4911-A944-56E7140FBB1C] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"sessionId\" : \"4DB0F8C6-4B66-4911-A944-56E7140FBB1C\",\n \"capabilities\" : {\n \"device\" : \"iphone\",\n \"browserName\" : \"SYW Test\",\n \"sdkVersion\" : \"10.3\",\n \"CFBundleIdentifier\" : \"com.test.app\"\n }\n },\n \"sessionId\" : \"4DB0F8C6-4B66-4911-A944-56E7140FBB1C\",\n \"status\" : 0\n}"
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [MJSONWP] Responding to client with driver.getSession() result: {"udid":"5AF8A9CF-E81C-4E04-8553-3FFC3561A528","app":"/Users/testUser/Downloads/SYW_Test.app","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone 6","platformVersion":"10.3","device":"iphone","browserName":"SYW Test","sdkVersion":"10.3","CFBundleIdentifier":"com.test.app"}
[HTTP] <-- GET /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9 200 94 ms - 367
[HTTP] --> GET /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: ["f3b32d31-7cb2-4108-9f84-25289d9460c9"]
[debug] [XCUITest] Executing command 'getSession'
[debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:8100/session/4DB0F8C6-4B66-4911-A944-56E7140FBB1C] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"sessionId\" : \"4DB0F8C6-4B66-4911-A944-56E7140FBB1C\",\n \"capabilities\" : {\n \"device\" : \"iphone\",\n \"browserName\" : \"SYW Test\",\n \"sdkVersion\" : \"10.3\",\n \"CFBundleIdentifier\" : \"com.test.app\"\n }\n },\n \"sessionId\" : \"4DB0F8C6-4B66-4911-A944-56E7140FBB1C\",\n \"status\" : 0\n}"
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [MJSONWP] Responding to client with driver.getSession() result: {"udid":"5AF8A9CF-E81C-4E04-8553-3FFC3561A528","app":"/Users/testUser/Downloads/SYW_Test.app","automationName":"XCUITest","platformName":"iOS","deviceName":"iPhone 6","platformVersion":"10.3","device":"iphone","browserName":"SYW Test","sdkVersion":"10.3","CFBundleIdentifier":"com.test.app"}
[HTTP] <-- GET /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9 200 57 ms - 367
[HTTP] --> POST /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9/timeouts {"type":"implicit","ms":60000}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",60000,"f3b32d31-7cb2-4108-9f84-25289d9460c9"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] Set implicit wait to 60000ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9/timeouts 200 5 ms - 76
[HTTP] --> POST /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9/timeouts {"type":"implicit","ms":0}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",0,"f3b32d31-7cb2-4108-9f84-25289d9460c9"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] Set implicit wait to 0ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9/timeouts 200 3 ms - 76
[HTTP] --> POST /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9/timeouts {"type":"implicit","ms":15000}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",15000,"f3b32d31-7cb2-4108-9f84-25289d9460c9"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] Set implicit wait to 15000ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9/timeouts 200 4 ms - 76
[HTTP] --> POST /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9/timeouts {"type":"implicit","ms":0}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",0,"f3b32d31-7cb2-4108-9f84-25289d9460c9"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] Set implicit wait to 0ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9/timeouts 200 4 ms - 76
[HTTP] --> POST /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9/timeouts {"type":"implicit","ms":15000}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",15000,"f3b32d31-7cb2-4108-9f84-25289d9460c9"]
[debug] [XCUITest] Executing command 'timeouts'
[debug] [BaseDriver] Set implicit wait to 15000ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/f3b32d31-7cb2-4108-9f84-25289d9460c9/timeouts 200 5 ms - 76
FAILED: test_isVideoSlide2UnlockPage
java.lang.NoSuchMethodError: org.openqa.selenium.support.ui.FluentWait.until(Lcom/google/common/base/Function;)Ljava/lang/Object;
at io.appium.java_client.pagefactory.AppiumElementLocator.waitFor(AppiumElementLocator.java:91)
at io.appium.java_client.pagefactory.AppiumElementLocator.findElement(AppiumElementLocator.java:112)
at io.appium.java_client.pagefactory.interceptors.InterceptorOfASingleElement.intercept(InterceptorOfASingleElement.java:61)
at io.appium.java_client.ios.IOSElement$$EnhancerByCGLIB$$d311658.isEnabled(<generated>)
at com.test.app.awstestiosapp.pages.VideoSlide2UnlockPage.isVideoSlide2UnlockPage(VideoSlide2UnlockPage.java:44)
at com.test.app.awstestiosapp.tests.LoginTest.test_isVideoSlide2UnlockPage(LoginTest.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:744)
at org.testng.TestRunner.run(TestRunner.java:602)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)
at org.testng.TestNG.runSuites(TestNG.java:1144)
at org.testng.TestNG.run(TestNG.java:1115)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)
===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
===============================================
Default suite
Total tests run: 1, Failures: 1, Skips: 0
BasePage
public abstract class BasePage {
/**
* Driver
*/
protected final AppiumDriver driver;
/**
* A Base Page Constructor that set's the page driver
*
* The page structure is being used within this test in order to separate the page actions from the tests
*
* Please use the AppiumFieldDecorator class within the page Factory. This way annotations like
* @AndroidFindBy or @IOSFindBy within the page objects
*
* @param driver the appium driver created in before suite method
*/
protected BasePage(AppiumDriver driver) {
this.driver = driver;
PageFactory.initElements(new AppiumFieldDecorator(driver,15,TimeUnit.SECONDS),this);
}
}
VideoPage
public class VideoSlide2UnlockPage extends BasePage {
/**
* Constructor for this Page
* @param driver
*/
public VideoSlide2UnlockPage(AppiumDriver driver) {
super(driver);
// TODO Auto-generated constructor stub
}
/**
* VideoSlide2UnlockElement
*/
@iOSFindBy(accessibility = "Video")
private MobileElement videoElement;
public void performSlideToContinueUsingJsExecutor() {
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, String> scrollObject = new HashMap<String, String>();
scrollObject.put("direction", "right");
scrollObject.put("element", ((RemoteWebElement) videoElement).getId());
js.executeScript("mobile: swipe", scrollObject);
}
public boolean isVideoSlide2UnlockPage() {
return videoElement.isEnabled();
}
Test Page
public class LoginTest extends TestBase {
private VideoSlide2UnlockPage videoPage;
@BeforeTest
@Override
public void setUpPage() {
// TODO Auto-generated method stub
videoPage = new VideoSlide2UnlockPage(driver);
}
/**
* Test slide2Continue
*/
@Test
public void test_isVideoSlide2UnlockPage() {
Assert.assertEquals(true, videoPage.isVideoSlide2UnlockPage());
}
@Test
public void test_slide2ContinueVideoPage() {
videoPage.performSlideToContinueUsingJsExecutor();
}
/*@Override
public void restartApp() {
// TODO Auto-generated method stub
}*/
}
Pom File
<dependencies>
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>5.0.0-BETA4</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.5</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>21.0</version>
</dependency>
<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.11</version>
</dependency>
org.apache.maven.plugins
maven-jar-plugin
2.6
test-jar
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/dependency-jars/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<finalName>zip-with-dependencies</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/zip.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
I followed this sample based out on “https://github.com/awslabs/aws-device-farm-appium-tests-for-sample-app”
Someone kindly look into this and let me know any solution.