For questions related to testing Google's Android operating system.

learn more… | top users | synonyms

3
votes
4answers
2k views

How to locate or write Xpath for an element of an Hybrid app which has only class and no other attribute

I am new to mobile automation and Appium and unable to find a way to get xpath or locate an element, getting following node details in uiautomatorviewer: index:0 text: resourceid: class: ...
2
votes
1answer
113 views

Android App api testing with mock

Currently, I ran into a situation where we are having constant Backend/API issues and because of the same, I can't continue with the testing. I was wondering if it is somehow possible to use a server ...
2
votes
1answer
691 views

Running Selenium webdriver scripts in android device (Samsung galaxy tab)-Portrait mode

I have been stuck in an issue while running selenium webdriver script in android device -Portrait mode. Script is running successfully in landscape mode but when we run the same script in android ...
1
vote
1answer
65 views

Automation Java - Android - How to get items from a ListView?

I'm trying to get the items from a ListView so I can compare them with of expected results. The thing is that I can't figure out how to get those Elements. I'm also the developer of the App, so I'm ...
0
votes
1answer
14 views

How to open messaging app during one android app test case is running to fetch otp

How do I open messaging app when test case is running for any other app. Need to fetch OTP from messaging app during a test case is running for my android app. I have tried to create new instance ...
0
votes
1answer
23 views

How do I continuously stream Logcat data from a usb connected device to a file on PC until I decide to disconnect or stop testing?

I used to use the the GUI version of logcat via DDMS for getting Adb logcat info from Android Studio (or monitor.exe from SDK tools), but found it too distracting while trying to test. I would have ...
0
votes
1answer
233 views

Unable to record Android native app requests in jmeter

I have followed the steps given in article http://www.testingdiaries.com/mobile-performance-testing-record-script-jmeter/ I set manual proxy in phone and started the recorder but none of my requests ...
3
votes
0answers
198 views

Why session is not created in Bot-Bot?

I'm using Bot-Bot, Android automation testing tool with record and replay features. I was able to start a server, record and play sample APK accompanied with bot. Now I need to test my own APK, so I ...
2
votes
0answers
171 views

Using MonkeyTalk to test android app, the record button stays disabled

I am unable to record in MonkeyTalk, the record button stays disabled I took the following steps: Created a sample android project in eclipse Created libs folder in the android project and copied ...
1
vote
0answers
1k views

Not able to click on deivce Menu button using appium in android

I am working on automation of mobile native app using Appium in Java language. I want to click on device Menu button. Method 1: JavascriptExecutor js = (JavascriptExecutor) driver; ...
1
vote
0answers
318 views

How to test an SDK built for Android?

My company has an SDK for the Android platform. The SDK sends information to our servers. I need to be able to intercept, interpret, and analyze what the SDK is sending to these servers in terms of ...
0
votes
0answers
16 views

Testing in other languages on an Android device with cellular capabilities

I feel like I'm chasing my tail on this one, but I need to be able to test in languages not listed under Settings > Language & Input > Language. I've spoken with Samsung & Motorola and they ...
0
votes
0answers
117 views

An unknown server-side error occurred while processing the command while swipe

I get the following Exception using appium An unknown server-side error occurred while processing the command. when i run this code driver.Swipe(loc1.X, loc1.Y, loc1.X - 110, loc1.Y, 2000); I use ...
0
votes
0answers
52 views

what is the advantage of using roboectric for android UT over espresso?

I'm new to android testing. I have read espresso is more UI based framework and robolectric is a UT framework. I want to add UT to existing android project with espresso framework in use already. ...
0
votes
0answers
141 views

Selendroid Selenium grid android test couldn't find element

Is it possible to do a parallel test of android native apps with Selendroid and Selenium Grid? If yes, kindly give a code snippet. I am trying to run a test on 2 android devices. Though, being in the ...
0
votes
0answers
459 views

Selendroid: Unable to launch selendroid.shows following error

I have tried to start selenium using following code to relevant path on cmd prompt: java -jar selendroid-standalone-0.14.0-with-dependencies.jar -app selendroid-test-app-0.14.0.apk but i am ...
0
votes
0answers
173 views

Selendroid: Camera click Element ID

I want to know what is the capture button element id in the view finder of the camera in slendroid. I am not able to inspect it