Appium Newby: Nothing shows on Browserstack Dashboard

Hi, I am a complete newby to Appium and Browserstack.
I think I have successfully loaded WikipediaSample.apk to my browserstack account. I got an app url back for it - but nothing is shown on my browserstack dashboard.

When I run my test in Intellij using Appium, NOTHING at all is shown on my browserstack dashboard. It does NOT show any tests running. I have entered the correct browserstack username, password and app url but I see nothing happening on browserstack. No logs or screenshots.

The test fails saying that an element couldn’t be found on the page, so it looks like it is doing something and successfully connecting to browserstack but I have no idea if the app has loaded as there is nothing at all shown on browserstack.

Any help would be appreciated. Thanks.

Below is my test file (with my username and key removed):

import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.OutputType;

import io.appium.java_client.MobileElement;
import io.appium.java_client.android.AndroidDriver;

import java.net.URL;
import java.util.Set;

public class deleteme {
public static final String USERNAME = “myusername”;
public static final String AUTOMATE_KEY = “mykey”;
public static final String URL = “http://” + USERNAME + “:” + AUTOMATE_KEY + "@hub-cloud.browserstack.com/wd/hub";

public static void main(String[] args) throws Exception {

    DesiredCapabilities caps = new DesiredCapabilities();
    caps.setCapability("browserstack.debug", "true");
    caps.setCapability("platformName", "android");
    caps.setCapability("device", "Google Nexus 6");
    caps.setCapability("realMobile", true);
    caps.setCapability("app", "bs://8e61982712fae5ea639fc51b0264156e4758e258");

    AndroidDriver driver = new AndroidDriver(new URL(URL), caps);

    ((TakesScreenshot)driver).getScreenshotAs(OutputType.BASE64);

            MobileElement searchElement = (MobileElement) driver.findElementById("Search Wikipedia");
    searchElement.click();

    driver.quit();
}

}

There was a simple answer to this, I was looking on the wrong browserstack dashboard for activity.

I was looking here:

https://automate.browserstack.com/dashboard

But when you are testing on uploaded app, you need to go here:

https://app-automate.browserstack.com/dashboard

HI Matt,

Did you integrate browser stack with appoum studio application using cloud?
I want to use browser stack but unable to start with. Can you please help?

Hi Vaishali,

There are some example repositories on github that you can clone and use as your starting point.

For example: Java, Appium Browserstack;

Type git clone https://github.com/browserstack/java-appium-app-browserstack.git in a command prompt and you will have an example solution you can use.

1 Like