Skip to content

Instantly share code, notes, and snippets.

@saikrishna321
saikrishna321 / Appium 1.5 Parallel Run
Created February 27, 2016 10:39
Android Bootstrap port crashes
***********
Total devices connected ---- 2
Generated appium ports
62508
62350
Generated chromerdriver ports
Generated bootstrap ports
********Starting Appium on different ports********
🍺 🍺 🍺 🍺 🍺
Hang on appium is brewing test scripts
public class HtmlReporter {
static File reportOutputDirectory = new File(System.getProperty("user.dir")+"/target"+"/");
static List<String> list = new ArrayList<String>();
public void listFilesForFolder(final File folder) {
for (final File fileEntry : folder.listFiles()) {
if (fileEntry.isDirectory()) {
listFilesForFolder(fileEntry);
} else if (fileEntry.getName().endsWith(".json")) {
[
{
"line": 1,
"elements": [
{
"line": 7,
"name": "Example 1 that sleep 1 seconds",
"description": "",
"id": "this-just-contains-four-scenarios-that-sleeps-for-one-second-each;example-1-that-sleep-1-seconds",
"type": "scenario",
[
{
"line": 1,
"elements": [
{
"line": 3,
"name": "Valid Login",
"description": "",
"id": "login-test;valid-login",
"type": "scenario",
#!/bin/bash
hardware="plughw:1,0"
duration="3"
lang="en"
hw_bool=0
dur_bool=0
lang_bool=0
for var in "$@"
do
package com.appium.utils;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import org.im4java.core.ConvertCmd;
import org.im4java.core.IM4JavaException;
import org.im4java.core.IMOperation;
import org.junit.Test;
import java.io.File;
Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' build/lib/main.js --session-override --debug-log-spacing --platform-version "9.2" --platform-name "iOS" --app "/Users/saikrisv/Downloads/WordPress_2.app" --device-name "iPhone 6" --language "en" --native-instruments-lib
[Appium] Welcome to Appium v1.5.2
[Appium] Non-default server args:
[Appium] sessionOverride: true
[Appium] debugLogSpacing: true
[Appium] platformName: 'iOS'
exports.config = {
//
// ==================
// Specify Test Files
// ==================
// Define which test specs should run. The pattern is relative to the directory
// from which `wdio` was called. Notice that, if you are calling `wdio` from an
// NPM script (see https://docs.npmjs.com/cli/run-script) then the current working
// directory is where your package.json resides, so `wdio` will be called from there.
//
Type safety: Unchecked cast from Object to List<Object>
----------
----------
44. WARNING in /Users/saikrisv/git/java-client/src/main/java/io/appium/java_client/FindsByAccessibilityId.java (at line 19)
import org.openqa.selenium.WebDriverException;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.openqa.selenium.WebDriverException is never used
----------
----------
45. WARNING in /Users/saikrisv/git/java-client/src/main/java/io/appium/java_client/FindsByAndroidUIAutomator.java (at line 19)
21:25:53.000 [DEBUG] [TestEventLogger] io.appium.java_client.pagefactory_tests.IOSPageFactoryTest > isTouchAbleElement STARTED
21:25:53.003 [DEBUG] [TestEventLogger]
21:25:53.004 [DEBUG] [TestEventLogger] io.appium.java_client.pagefactory_tests.IOSPageFactoryTest > isTouchAbleElement STANDARD_OUT
21:25:53.004 [DEBUG] [TestEventLogger] [HTTP] --> GET /wd/hub/session/fcc4be4f-3e69-4cca-bccf-bd3f22aa3c42 {}
21:25:53.004 [DEBUG] [TestEventLogger] [MJSONWP] Calling AppiumDriver.getSession() with args: ["fcc4be4f-3e69-4cca-bccf-b...
21:25:53.004 [DEBUG] [TestEventLogger] [debug] [iOS] Executing iOS command 'getSession'
21:25:53.005 [DEBUG] [TestEventLogger] [MJSONWP] Responding to client with driver.getSession() result: {"webStorageEnabled":false,...
21:25:53.006 [DEBUG] [TestEventLogger] [HTTP] <-- GET /wd/hub/session/fcc4be4f-3e69-4cca-bccf-bd3f22aa3c42 200 2 ms - 696
21:25:53.009 [DEBUG] [TestEventLogger] [HTTP] --> GET /wd/hub/session/fcc4be4f-3e69-4cca-bccf-bd3f22aa3c42 {}
21:25:53.009