Coder Social home page Coder Social logo

nativedriver's People

Contributors

matvore avatar

Watchers

James Cloos avatar  avatar

nativedriver's Issues

With server jar imported, manifest.xml configured, apk installed, still got ClassNotFound for ServerInstrument

Tested on android 4.0.4 

Steps
1. Download the source code from SVN, using ant for build, import the 
"simplelayouts" project, confirmed :
   1) "server-standalone.jar" was imported in eclipse project
   2) In the app's AndroidManifest.xml file, instrument & permission was added
2. launch the activity, it was successful
3. Start the instrumentation by running this at the command line:
adb shell am instrument 
com.google.android.testing.nativedriver.simplelayouts/com.google.android.testing
.nativedriver.server.ServerInstrumentation


in logcat, it said "Unable to instantiate instrumentation"
but actually, by pm list, it was found:
-------------------------------------------------------------
nativedriver/android# adb shell pm list instrumentation
instrumentation:com.google.android.testing.nativedriver.simplelayouts/com.google
.android.testing.nativedriver.server.ServerInstrumentation 
(target=com.google.android.testing.nativedriver.simplelayouts)

logcat log:
------------------------------------------------------------
W/dalvikvm(30906): threadid=1: thread exiting with uncaught exception 
(group=0xb1fb56f0)
E/AndroidRuntime(30906): FATAL EXCEPTION: main
E/AndroidRuntime(30906): java.lang.RuntimeException: Unable to instantiate 
instrumentation 
ComponentInfo{com.google.android.testing.nativedriver.simplelayouts/com.google.a
ndroid.testing.nativedriver.server.ServerInstrumentation}: 
java.lang.ClassNotFoundException: 
com.google.android.testing.nativedriver.server.ServerInstrumentation
E/AndroidRuntime(30906):    at 
android.app.ActivityThread.handleBindApplication(ActivityThread.java:3903)
E/AndroidRuntime(30906):    at 
android.app.ActivityThread.access$1300(ActivityThread.java:123)
E/AndroidRuntime(30906):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
E/AndroidRuntime(30906):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(30906):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(30906):    at 
android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime(30906):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(30906):    at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(30906):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime(30906):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime(30906):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(30906): Caused by: java.lang.ClassNotFoundException: 
com.google.android.testing.nativedriver.server.ServerInstrumentation
E/AndroidRuntime(30906):    at 
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
E/AndroidRuntime(30906):    at 
java.lang.ClassLoader.loadClass(ClassLoader.java:501)
E/AndroidRuntime(30906):    at 
java.lang.ClassLoader.loadClass(ClassLoader.java:461)
E/AndroidRuntime(30906):    at 
android.app.ActivityThread.handleBindApplication(ActivityThread.java:3900)
E/AndroidRuntime(30906):    ... 10 more
W/ActivityManager(  241): Error in app 
com.google.android.testing.nativedriver.simplelayouts running instrumentation 
ComponentInfo{com.google.android.testing.nativedriver.simplelayouts/com.google.a
ndroid.testing.nativedriver.server.ServerInstrumentation}:
W/ActivityManager(  241):   java.lang.ClassNotFoundException
W/ActivityManager(  241):   java.lang.ClassNotFoundException: 
com.google.android.testing.nativedriver.server.ServerInstrumentation
I/ActivityManager(  241): Force stopping package 
com.google.android.testing.nativedriver.simplelayouts uid=10066
I/ActivityManager(  241): Killing proc 
30906:com.google.android.testing.nativedriver.simplelayouts/10066: force stop




Original issue reported on code.google.com by [email protected] on 17 May 2012 at 7:02

Does NativeDriver support apps develpoed on IOS 6.0.

Faced issues while trying to make an IOS 6.0 app Testable following the steps 
mentioned in the following link 
http://code.google.com/p/nativedriver/wiki/IOSMakeAnAppTestable.

Here is what my inference is 
Every Xcode does have an implementation over the touch interface as in 
TouchSynthesis.h (from NativeDriver). 
It was found that the implementation in this file is totally different in Xcode 
4.5.1 & there are many undeclared variable errors, which proves that there is 
no activity on NativeDriver on Xcode version 4.5.1.(can't say for xcode 
versions like 4.3, 4.4, 4.6) 

What steps will reproduce the problem?

1. Get an app developed on IOS 6.0
2. Follow the steps mentioned in the link 
http://code.google.com/p/nativedriver/wiki/IOSMakeAnAppTestable
to make it testable.


What is the expected output? What do you see instead?
1. The build should succeed & the Native driver should run in the target app 
for test.
2. Instaed the following errors are found.

 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:41: error: '_tapCount' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:42: error: '_locationInWindow' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:46: error: '_previousLocationInWindow' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:50: error: '_window' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:51: error: '_view' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:52: error: '_phase' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:53: error: '_touchFlags' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:55: error: '_timestamp' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:67: error: '_phase' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:68: error: '_timestamp' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:78: error: '_previousLocationInWindow' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:78: error: '_locationInWindow' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:80: error: '_timestamp' undeclared (first use in this function)
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:42:3: Use of undeclared identifier '_locationInWindow'
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:46:3: Use of undeclared identifier '_previousLocationInWindow'
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:46:31: Use of undeclared identifier '_locationInWindow'
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:48:41: Use of undeclared identifier '_locationInWindow'
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:50:3: Use of undeclared identifier '_window'
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:51:3: Use of undeclared identifier '_view'; did you mean 'view'?
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:52:3: Use of undeclared identifier '_phase'
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:53:3: Use of undeclared identifier '_touchFlags'
 Apps/nativedriver/iphone/ThirdParty/TouchSynthesis/TouchSynthesis.m:41:3: Unknown type name '_tapCount'; did you mean 'ItemCount'?


What version of the product are you using? On what operating system?
MAC 10.7.4
XCode 4.5.1
IOS 6.0

Please provide any additional information below.
Can someone post a matrix on the supported versions of xCdoe & IOS versions for 
NativeDriver

Original issue reported on code.google.com by [email protected] on 18 Apr 2013 at 11:51

Working with Android Native Classes such as WebView errors at Runtime

In order to extract the current URL, using  GetUrl() find a WebView on screen.

this gives no error at runtime: 
driver.findAndroidNativeElements(AndroidNativeBy.id("myWebview")); 

this errors at runtime:
WebView webView = 
(WebView)driver.findAndroidNativeElements(AndroidNativeBy.id("myWebview")); 

with the error:
java.lang.NoClassDefFoundError: android/webkit/WebView 


Original issue reported on code.google.com by [email protected] on 24 Feb 2012 at 9:24

ERROR/com.google.android.testing.nativedriver.server.ServerInstrumentation(7289): java.net.BindException: The address is already in use

What steps will reproduce the problem?
1. Start the instrumentation by running this at the command line: 
adb shell am instrument 
{app_package_name}/com.google.android.testing.nativedriver.server.ServerInstrume
ntation
2. Then at the logcat, I see the exception output.
3.

What is the expected output? What do you see instead?
expected output:no exception
I see "java.net.BindException"

What version of the product are you using? On what operating system?

Sonyericsson X10i, Android 2.1-update1 system

Please provide any additional information below.

I am the first time to use NativeDriver to test our app, but I don't known how 
to use it . I see the url below, but when I follow it, I also have the problem, 
I can't start the service, I think maybe I had started it,but not 
close.Though,what's the command to stop the ServerInstrumentation? 
url:http://code.google.com/p/nativedriver/wiki/AndroidMakeAnAppTestable


Original issue reported on code.google.com by [email protected] on 28 Jul 2011 at 9:59

"Connection reset" error

What steps will reproduce the problem?
1. do the things from the wiki for the android native driver
2. run one of the 3 java classes which are in the test project (doesn't matter 
which one)

What is the expected output? What do you see instead?
the expected output should be something on my screen but instead of this I see 
an error which begins with org.openqa.selenium.WebDriverException: 
java.net.SocketException": Connection reset"

What version of the product are you using? On what operating system?
I'm using Android Native Driver with android_server_2.16.apk on Mac OS X, 
version 10.6.8.

Please provide any additional information below.
my full stack trace is here:
org.openqa.selenium.WebDriverException: java.net.SocketException: Connection 
reset
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', 
java.version: '1.6.0_29'
Driver info: driver.version: AndroidNativeDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:406)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:103)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:86)
    at com.google.android.testing.nativedriver.client.AndroidNativeDriver.<init>(Unknown Source)
    at com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder.build(Unknown Source)
    at com.google.android.testing.nativedriver.TextValueTest.getDriver(TextValueTest.java:49)
    at com.google.android.testing.nativedriver.TextValueTest.setUp(TextValueTest.java:38)
    at junit.framework.TestCase.runBare(TestCase.java:128)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:130)
    at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:127)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:233)
    at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:210)
    at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:271)
    at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:233)
    at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:209)
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:292)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:126)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:483)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
    at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:272)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:252)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:389)
    ... 19 more



Original issue reported on code.google.com by [email protected] on 30 Jan 2012 at 11:34

Click doesn't work after scrolling

I have a test for an activity that just about fills the screen in portrait mode 
and has a button at the bottom (about half of it is visible in landscape mode).

On portrait mode, clicking on it works fine (using 
driver.findElementByPartialText(buttonText).click()). However, when switching 
to landscape, the same test no longer works. The button is found, and it 
scrolls down until it becomes visible, but click() doesn't seem do anything.

I've noticed this on a different test when trying to click on a spinner, it 
scrolled and then clicked on a different element that now showed up where the 
spinner used to be.

Original issue reported on code.google.com by [email protected] on 5 Jul 2011 at 10:15

Connection reset error

What steps will reproduce the problem?
1. Follow the "Getting Started for Android" instructions on a Mac. 
2. Continue following the "Getting Started" instructions.
3. Finish following the "Getting Started" instructions.

Expected output: Successfully running a test.

Actual output:

Oct 28, 2011 10:06:45 AM org.apache.http.impl.client.DefaultRequestDirector 
execute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when 
processing request: The target server failed to respond
Oct 28, 2011 10:06:45 AM org.apache.http.impl.client.DefaultRequestDirector 
execute
INFO: Retrying request

Using version: no idea, since this project is only obtained through SVN, rather 
than a download/archive file with a normal version number.

Additional information:

The ServerInstrumentation and port forwarding commands were executed as 
instructed, and LogCat showed the expected confirmation message. It's not clear 
exactly what connection the test app is making that is being reset, although 
after telnetting to the port in question, the connection is opened and then 
immediately disconnected by the server.


Original issue reported on code.google.com by [email protected] on 28 Oct 2011 at 2:19

iPhone NativeDriver dependency JSON Framework is removed from google code

What steps will reproduce the problem?
1. Checkout
2. Build SimpleApp

What is the expected output? What do you see instead?
It is expected to build and run SimpleApp. Instead XCode can't find needed 
headers, "NSString+SBJson.h" for example. While checking out from SVN there is 
an error too, saying that it can't find repo with JSON Framework.

What version of the product are you using? On what operating system?
I'm using latest NativeDriver from trunk, OS X Lion, XCode 4.2

Please provide any additional information below.
Look at comment here 
http://code.google.com/p/nativedriver/wiki/IOSMakeAnAppTestable on 27 June 2012

Original issue reported on code.google.com by [email protected] on 27 Jun 2012 at 3:54

Injecting to another application requires INJECT_EVENTS permission

I'm testing an android application when step and the values ​​for an 
EditText this error occurs as above.

step values ​​this way:

driver.findElement (AndroidNativeBy.id ("editname")). click ();
driver.findElement (AndroidNativeBy.id ("editname")). SendKeys (name);

Has anyone ever seen something like that might help.

Thank you.

Original issue reported on code.google.com by [email protected] on 17 Oct 2012 at 8:28

Unable to run native drive examples with IOS 5 sdk and XCODE 4.2

Hi Have any body tried native driver with IOS sdk 5 and xcode 4.2? i am getting 
this unsupported GCC 4.2 selected for architecture i386, compiler issue when 
tried to execute example tests that comes with native driver..any ideas? 

Original issue reported on code.google.com by rasangaKS on 17 Oct 2011 at 10:40

Please upgrade Selenium server and client jar to latest jar 2.15.0

With new Webdriver version following command is breaking
driver.getKeyboard().sendKeys(AndroidKeys.MENU);

Can you please provide a fix by supporting the latest selenium jar

uild info: version: '2.3.0', revision: 'unknown', time: '2011-08-03 19:22:45'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', 
java.version: '1.6.0_29'
Driver info: driver.version: AndroidNativeDriver
org.openqa.selenium.UnsupportedCommandException: 
Build info: version: '2.3.0', revision: 'unknown', time: '2011-08-03 19:22:45'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', 
java.version: '1.6.0_29'
Driver info: driver.version: AndroidNativeDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.6.0_29]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) ~[na:1.6.0_29]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) ~[na:1.6.0_29]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513) ~[na:1.6.0_29]
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:131) ~[selenium-remote-driver-2.3.0.jar:na]
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:105) ~[selenium-remote-driver-2.3.0.jar:na]
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:405) ~[selenium-remote-driver-2.3.0.jar:na]
    at com.google.android.testing.nativedriver.client.AndroidNativeDriver.access$000(Unknown Source) ~[android-client-standalone-1.0.jar:na]
    at com.google.android.testing.nativedriver.client.AndroidNativeDriver$AndroidKeyboard.sendKeys(Unknown Source) ~[android-client-standalone-1.0.jar:na]
    at com.yahoo.mobile.client.mmc.android.test.login.BasicTest.createConversation(BasicTest.java:23) ~[test-classes/:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_29]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_29]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_29]
    at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_29]
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:76) ~[testng.jar:6.0.2beta-201104211507]
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:673) [testng.jar:6.0.2beta-201104211507]
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846) [testng.jar:6.0.2beta-201104211507]
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170) [testng.jar:6.0.2beta-201104211507]
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) [testng.jar:6.0.2beta-201104211507]
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) [testng.jar:6.0.2beta-201104211507]
    at org.testng.TestRunner.runWorkers(TestRunner.java:1147) [testng.jar:6.0.2beta-201104211507]
    at org.testng.TestRunner.privateRun(TestRunner.java:749) [testng.jar:6.0.2beta-201104211507]
    at org.testng.TestRunner.run(TestRunner.java:600) [testng.jar:6.0.2beta-201104211507]
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:317) [testng.jar:6.0.2beta-201104211507]
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312) [testng.jar:6.0.2beta-201104211507]
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274) [testng.jar:6.0.2beta-201104211507]
    at org.testng.SuiteRunner.run(SuiteRunner.java:223) [testng.jar:6.0.2beta-201104211507]
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) [testng.jar:6.0.2beta-201104211507]
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) [testng.jar:6.0.2beta-201104211507]
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1049) [testng.jar:6.0.2beta-201104211507]
    at org.testng.TestNG.runSuitesLocally(TestNG.java:974) [testng.jar:6.0.2beta-201104211507]
    at org.testng.TestNG.run(TestNG.java:905) [testng.jar:6.0.2beta-201104211507]
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) [testng.jar:6.0.2beta-201104211507]
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:203) [testng.jar:6.0.2beta-201104211507]
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174) [testng.jar:6.0.2beta-201104211507]
After Method

Original issue reported on code.google.com by [email protected] on 13 Jan 2012 at 12:27

Unable to fetch nativedriver code

What steps will reproduce the problem?
1. svn checkout https://nativedriver.googlecode.com/svn/trunk nativedriver 
--username {Google account e-mail address}

What is the expected output? What do you see instead?
I expect it to be installed successfully. Instead I am getting 
Fetching external item into 
'nativedriver-read-only/iphone/ThirdParty/iphone_webdriver/lib/buildtime-src/jso
n-framework/project'
Authentication realm: <http://json-framework.googlecode.com:80> Google Code 
Subversion Repository
Password for '[email protected]':

The password  I enter does not seem to be working

Also tried this using tortoiseSVN and there too it asks me for credentials for 
logging into 
json-framework.googlecode.com

What version of the product are you using? On what operating system?
Latest version on the website. I am using Windows 7 for tortoise and subversion 
through command line on Ubuntu

Please provide any additional information below.
Is there a non-SVN way to access this code?

Thanks
Balaji

Original issue reported on code.google.com by [email protected] on 18 Apr 2012 at 5:16

How do I run Native driver on the simulator which is on remote system?

I tried
androidNativeDriver = new 
AndroidNativeDriverBuilder().withServer("http://<remote ip>:54129").build();

this is not launching the app in remote host simulator.

Any workaround?

Here is the setup

Remote host:
This system has android ask and the simulator has instrumented app apk 
installed. I have also executed following commands in this host
Example:
adb forward tcp:54129 tcp:54129
adb shell am instrument -w <app 
package>/com.google.android.testing.nativedriver.server.ServerInstrumentation

Driver Host:
This has a test class, which gets the handle to driver using
androidNativeDriver = new 
AndroidNativeDriverBuilder().withServer("http://<remote ip>:54129").build();

But using this approach I am unable to launch the app on remote host. Any 
pointers?


Original issue reported on code.google.com by [email protected] on 13 Jan 2012 at 12:33

Implement FindsByClassName

Purpose of code changes on this branch:
Implement FindsByClassName

When reviewing my code changes, please focus on:
r46+r47:
client.ClassNames
http://code.google.com/p/nativedriver/source/browse/branches/findbyclass/android
/src/com/google/android/testing/nativedriver/client/ClassNames.java?spec=svn47&r
=47

server.AndroidNativeElement
http://code.google.com/p/nativedriver/source/browse/branches/findbyclass/android
/src/com/google/android/testing/nativedriver/server/AndroidNativeElement.java?r=
46

server.ElementFInder
http://code.google.com/p/nativedriver/source/browse/branches/findbyclass/android
/src/com/google/android/testing/nativedriver/server/ElementFinder.java?r=46

server.ViewElement
http://code.google.com/p/nativedriver/source/browse/branches/findbyclass/android
/src/com/google/android/testing/nativedriver/server/ViewElement.java?spec=svn46&
r=46

After the review, I'll merge this branch into:
/trunk


Original issue reported on code.google.com by [email protected] on 27 Jun 2011 at 1:40

Don't build test NativeDriver

Hi all! 
I'm trying to write test demo NativeDriver?, but when i build, it have on 
error. 
This is my code: 
import com.google.android.testing.nativedriver.client.AndroidNativeDriver?; 
import 
com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder?; 
import com.google.android.testing.nativedriver.client.AndroidNativeElement?; 
import org.openqa.selenium.; 
import junit.framework.; 
//import android.test.InstrumentationTestCase?; 
public class TestNativeOSs extends TestCase? {

public void test(){
AndroidNativeDriver? driver = new AndroidNativeDriverBuilder?()
.withDefaultServer() .build();
driver.startActivity("com.google.android.testing.nativedriver.simplelayouts 
.TextValueActivity?");
AndroidNativeElement? b = driver.findElement(By.id("@+id/
EditText01?"));
b.sendKeys("1"); 
driver.navigate().back();
}
}
And this is error: java.lang.NoClassDefFoundError?: 
com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder? at 
com.google.android.testing.nativedriver.simplelayouts.test.TestNativeOSs.te 
st(TestNativeOSs.java: 12) at java.lang.reflect.Method.invokeNative(Native 
Method) at android.test.AndroidTestRunner?.runTest(AndroidTestRunner?.java:169) 
at android.test.AndroidTestRunner?.runTest(AndroidTestRunner?.java:154) at 
android.test.InstrumentationTestRunner?.onStart(InstrumentationTestRunner?.ja 
va: 520) at android.app.Instrumentation 
$InstrumentationThread?.run(Instrumentation.java:1447) 
I don't fix an error. Please help me! 
Thanks and Regards, 
Duy

Original issue reported on code.google.com by [email protected] on 21 Sep 2011 at 8:48

Attachments:

Getting "Conversion to Dalvik format failed with error 1" While running sample applicaiton

What steps will reproduce the problem?
1. I have imported samplelayout application
2.I have added a testcase to the sample application 
3. When I run it i am getting "Conversion to Dalvik format failed with error 1"

Note: No error in the code.
What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
Android 2.3 emulator, Windows vista

Please provide any additional information below.

Kindly help

Original issue reported on code.google.com by [email protected] on 25 Feb 2012 at 10:31

iOS Connection refused


org.openqa.selenium.WebDriverException: 
org.apache.http.conn.HttpHostConnectException: Connection to 
http://localhost:3001 refused
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.8', 
java.version: '1.6.0_31'
Driver info: driver.version: IosNativeDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:402)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:104)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:87)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:95)
    at com.google.iphone.testing.nativedriver.client.IosNativeDriver.<init>(Unknown Source)
    at com.google.iphone.testing.nativedriver.client.IosNativeDriver.<init>(Unknown Source)
    at com.google.iphone.testing.nativedriver.client.IosNativeDriver.<init>(Unknown Source)
    at com.google.iphone.testing.nativedriver.client.NativeDriverTest.testNativeDriver(NativeDriverTest.java:33)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:164)
    at junit.framework.TestCase.runBare(TestCase.java:130)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to 
http://localhost:3001 refused
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:159)
    at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
    at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:108)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
    at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:272)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:252)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:385)
    ... 25 more
Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
    at java.net.Socket.connect(Socket.java:529)
    at org.openqa.selenium.remote.ReusingSocketSocketFactory.connectSocket(ReusingSocketSocketFactory.java:122)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:133)
    ... 32 more



Original issue reported on code.google.com by [email protected] on 31 May 2012 at 10:57

Doesn`t work in Android 3.2

What steps will reproduce the problem?
1. I made an Android App with NativeDriver. I used 
http://code.google.com/p/nativedriver/wiki/AndroidMakeAnAppTestable
2. Jetty server started ok


What is the expected output? What do you see instead?
I saw in Logcat error:
java.lang.NoSuchMethodError: com.google.common.collect.Lists.reverse


What version of the product are you using? On what operating system?
Virtual Android 3.2, Mac OS 10.7.5, Eclipse

Please provide any additional information below.
I made simply test in Virtual Android 2.2. Everything ok. But, if I run this 
test in Android 3.2., I saw error "java.lang.NoSuchMethodError: 
com.google.common.collect.Lists.reverse"

Original issue reported on code.google.com by [email protected] on 11 Dec 2012 at 9:55

MissingResourceException: Can't find resource for bundle 'javax.servlet.LocalStrings_it_IT', key ''

What steps will reproduce the problem?
1. inject the server in an Android app
2. install it on a device
3. start the instrumentation via adb

What is the expected output? What do you see instead?
excpected:
I/com.google.android.testing.nativedriver.server.ServerInstrumentation(  273): 
Jetty started on port 54129
seen;
E/AndroidRuntime( 8318): FATAL EXCEPTION: Instr: 
com.google.android.testing.nativedriver.server.ServerInstrumentation
E/AndroidRuntime( 8318): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 8318):        at 
com.google.android.testing.nativedriver.server.ServerInstrumentation.createHandl
er(Unknown Source)
E/AndroidRuntime( 8318):        at 
com.google.android.testing.nativedriver.server.ServerInstrumentation.startJetty(
Unknown Source)
E/AndroidRuntime( 8318):        at 
com.google.android.testing.nativedriver.server.ServerInstrumentation.onStart(Unk
nown Source)
E/AndroidRuntime( 8318):        at 
android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)
E/AndroidRuntime( 8318): Caused by: java.util.MissingResourceException: Can't 
find resource for bundle 'javax.servlet.LocalStrings_it_IT', key ''
E/AndroidRuntime( 8318):        at 
java.util.ResourceBundle.missingResourceException(ResourceBundle.java:225)
E/AndroidRuntime( 8318):        at 
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:425)
E/AndroidRuntime( 8318):        at 
java.util.ResourceBundle.getBundle(ResourceBundle.java:133)
E/AndroidRuntime( 8318):        at 
javax.servlet.GenericServlet.<clinit>(GenericServlet.java:64)
E/AndroidRuntime( 8318):        ... 4 more
W

What version of the product are you using? On what operating system?
Revision 69, from http://nativedriver.googlecode.com/svn
On Ubuntu 12.04

Please provide any additional information below.
The issue seems connected to Jetty, which tries to locate a localization
file failing and dies.
Same issue has been "reported" in 
http://code.google.com/p/nativedriver/wiki/AndroidMakeAnAppTestable in a couple 
of comments.

Original issue reported on code.google.com by [email protected] on 22 Oct 2012 at 10:16

findElementsByText should not find text that is invisible

What steps will reproduce the problem?
1. Create a <TextView> like the following:
        <TextView
                android:id="@+id/textViewId"
                android:text="SOME_TEXT"
                android:visibility="gone">

2. Invoke driver.findElementsByText("SOME_TEXT") or 
driver.findElementsByPartialText("SOME_TEXT")
3. findElements will find and return the above web element.

What is the expected output? What do you see instead?
There should be no matches found as the text is not visible on the screen.

What version of the product are you using? On what operating system?
MacOSX, Android 2.2

Please provide any additional information below.

Would it make sense to add an isShown() to AndroidNativeElement.java?  We'd 
then have:

ViewElement.java
============
@Override
public boolean isShown() {
    return view.isShown();
}

ElementFinder.java
============
In the find methods, utilize input.isShown() to filter out those that are not 
visible.


Thanks.

Original issue reported on code.google.com by [email protected] on 25 Jul 2011 at 7:32

Don't build test NativeDriver 2

Hi all! 
I'm trying to write test demo NativeDriver?, but when i build, it have on 
error. 
This is my code: 
package com.google.android.testing.nativedriver.simplelayouts.test;

import com.google.android.testing.nativedriver.client.AndroidNativeDriver;
import 
com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import junit.framework.*;

public class TestNativeApps extends TestCase {
    private AndroidNativeDriver driver;

    @Override
    protected void setUp() { 
        driver = getDriver(); 
    } 

    @Override
    protected void tearDown() { 
        driver.quit(); 
    } 


    protected AndroidNativeDriver getDriver() { 
      return new AndroidNativeDriverBuilder()
        .withDefaultServer()
        .build(); 
    } 

    public void testTextValue() {
        driver.startActivity("com.google.android.testing.nativedriver.simplelayouts.TextValueActivity");

        WebElement textView = driver.findElement(By.id("TextView01"));
        assertEquals("Hello, Android NativeDriver!", textView.getText());

        WebElement textEditView = driver.findElement(By.id("EditText01"));
        textEditView.clear();
        textEditView.sendKeys("this is some input");
        assertEquals("this is some input", textEditView.getText());
      }
}

And this is error:
[2011-09-21 16:23:57 - BBBB] Android Launch!
[2011-09-21 16:23:57 - BBBB] adb is running normally.
[2011-09-21 16:23:57 - BBBB] Performing android.test.InstrumentationTestRunner 
JUnit launch
[2011-09-21 16:23:57 - BBBB] Automatic Target Mode: using existing emulator 
'emulator-5554' running compatible AVD 'duy'
[2011-09-21 16:23:57 - BBBB] Uploading BBBB.apk onto device 'emulator-5554'
[2011-09-21 16:24:02 - BBBB] Installing BBBB.apk...
[2011-09-21 16:24:13 - BBBB] Success!
[2011-09-21 16:24:13 - BBBB] Project dependency found, installing: simplelayouts
[2011-09-21 16:24:15 - simplelayouts] Application already deployed. No need to 
reinstall.
[2011-09-21 16:24:15 - BBBB] Launching instrumentation 
android.test.InstrumentationTestRunner on device emulator-5554
[2011-09-21 16:24:16 - BBBB] Collecting test information
[2011-09-21 16:24:20 - BBBB] Test run failed: Instrumentation run failed due to 
'java.lang.NoSuchMethodException'
I don't fix an error. Please help me! 
Thanks and Regards, 
Duy


Original issue reported on code.google.com by [email protected] on 21 Sep 2011 at 9:28

Attachments:

nativedriver doesnot support inject text to a view

What steps will reproduce the problem?
1. when i use driver.findElementById("id").sendKeys("xxxx"); 
   the sendKeys Method can only support ascii string。


What is the expected output? What do you see instead?

what i really need is a method that can support unicode string.
can you add a function like sendText(String text). 

What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 8 Sep 2011 at 7:47

Click does not work for iOS custom elements

A couple of the elements in our iPad project are custom ones that inherit from 
the UIControl class.  The
findElement(By.id(<element label>)) is working fine for these elements
but when I use click() there is no response.

I have tried the KIF open source project and it works fine with these custom 
elements.

Original issue reported on code.google.com by [email protected] on 13 Sep 2011 at 9:19

implicitlyWait not working properly for AndroidNativeDriver

What steps will reproduce the problem?
1. _phone = new AndroidNativeDriverBuilder().withDefaultServer().build();
2. _phone.manage().timeouts().implicitlyWait(10000, TimeUnit.MILLISECONDS);
3. _phone.findElement(AndroidNativeBy.text("Pluto"));  // doesn't exits

What is the expected output? What do you see instead?
The test should take about 10 seconds, but takes more than a minute.

What version of the product are you using? On what operating system?
SVN trunk from 17.02.2012. Android 2.2 (API level 8).

Please provide any additional information below.
The problem occurs both on the device and the emulator. On the iPhone, it works 
fine.
Here are some results: 1000ms (timeout) ==> 24.3s (duration), 100ms ==> 22.1s, 
10ms ==> 2.7s.

Original issue reported on code.google.com by [email protected] on 17 Feb 2012 at 2:24

iPhone webdriver gives connection refused error

What steps will reproduce the problem?
1. As said in Wiki Document GettingStartedIOS
2. Tried for localhost
3. Tried for Remote URL

What is the expected output? What do you see instead?
Sample App test script "NativeDriverTest.java" should run

What version of the product are you using? On what operating system?
MAC OSX 10.6.8, Xcode 3.2 iso sdk 4.3 simulator

Please provide any additional information below.
I am getting connection refused error when executing the script, I have 
included selenium libraries in the eclipse project and have included the client 
implementation classes

Original issue reported on code.google.com by [email protected] on 12 Aug 2011 at 8:43

sample.xcodeproj not running

What steps will reproduce the problem?
1. I opened the native driver sampleapp.xcodeproj
2. Build failed with errors below
3. I tried it running using simulator 4.3 also

What is the expected output? What do you see instead?
#import "RESTServiceMapping.h"
#import "WebDriverResource.h"
cp: 
/Users/subashini/Desktop/nativedriver/iphone/ThirdParty/iphone_webdriver/lib/bui
ldtime-src/cocoahttpserver/project/HTTPResponse.h: No such file or directory
cp: 
/Users/subashini/Desktop/nativedriver/iphone/ThirdParty/iphone_webdriver/lib/bui
ldtime-src/cocoahttpserver/project/HTTPConnection.m: No such file or directory

What version of the product are you using? On what operating system?
xcode 4.2 ios 5.0 simulator mac os 10.7

Please provide any additional information below.
also getting this error wen i change simulator to 5.0 
Build task claims to succeed in spite of generating error messages

error: 
/Users/subashini/Desktop/nativedriver/iphone/ThirdParty/iphone_webdriver/lib/bui
ldtime-src/cocoahttpserver/project/HTTPServer.h: No such file or directory

error: 
/Users/subashini/Desktop/nativedriver/iphone/ThirdParty/iphone_webdriver/lib/bui
ldtime-src/cocoahttpserver/project/AsyncSocket.h: No such file or directory

Build task failed without generating error messages.

Build task failed without generating error messages.


Original issue reported on code.google.com by [email protected] on 11 Apr 2012 at 6:41

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.