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();
}
}