diff --git a/pom.xml b/pom.xml
index 3d7b32e..2f27ffe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,4 +27,18 @@
1.4.0
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.12
+
+
+ testng.xml
+
+
+
+
+
\ No newline at end of file
diff --git a/src/test/java/com/test/classes/AppiumServer.java b/src/test/java/com/test/classes/AppiumServer.java
index e744dc8..e0d6801 100644
--- a/src/test/java/com/test/classes/AppiumServer.java
+++ b/src/test/java/com/test/classes/AppiumServer.java
@@ -42,23 +42,33 @@ public void startDefaultAppium() throws Exception {
public void appiumServer(String deviceID) throws Exception {
System.out.println("Starting Appium Server");
System.out.println(deviceID);
+ System.out.println("Attempt to get port..");
int port = ap.getPort();
+ System.out.println("Port " + port);
+ System.out.println("Attempt to get chrome port..");
int chromePort = ap.getPort();
+ System.out.println("Chrome port " + chromePort);
+ System.out.println("Attempt to get bootstrap port..");
int bootstrapPort = ap.getPort();
+ System.out.println("Bootstrap port" + bootstrapPort);
Thread.currentThread().sleep(5000);
+
+ System.out.println("Attempt to start server");
builder = new AppiumServiceBuilder()
- .withAppiumJS(new File("/usr/local/lib/node_modules/appium/bin/appium.js"))
- .withArgument(GeneralServerFlag.APP,
- "/Users/saikrisv/Documents/workspace/workspace1/AppiumTest/build/AndroidCalculator.apk")
+ //.withAppiumJS(new File("/usr/local/lib/node_modules/appium/bin/appium.js"))
+ //.withArgument(GeneralServerFlag.APP,
+ // "/Users/saikrisv/Documents/workspace/workspace1/AppiumTest/build/AndroidCalculator.apk")
.withArgument(GeneralServerFlag.LOG_LEVEL, "info")
.withArgument(GeneralServerFlag.UIID, deviceID)
.withArgument(GeneralServerFlag.CHROME_DRIVER_PORT, Integer.toString(chromePort))
.withArgument(AndroidServerFlag.BOOTSTRAP_PORT_NUMBER, Integer.toString(bootstrapPort))
- .withArgument(GeneralServerFlag.SESSION_OVERRIDE).usingPort(port);
+ .withArgument(GeneralServerFlag.SESSION_OVERRIDE).usingPort(port).withLogFile(new File("Log" + Thread.currentThread().getName() +
+ Thread.currentThread().getId()));
/* and so on */;
appiumDriverLocalService = builder.build();
appiumDriverLocalService.start();
+ System.out.println("Server has been started");
//appiumDriverLocalService.getStdOut();
System.out.println(appiumDriverLocalService.isRunning());
diff --git a/testng.xml b/testng.xml
index 5d6e6c8..7aa093d 100644
--- a/testng.xml
+++ b/testng.xml
@@ -1,6 +1,6 @@
-
+