Coder Social home page Coder Social logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
Stack trace available in the wiki document GettingStartedIOS comments

Original comment by [email protected] on 12 Aug 2011 at 8:44

from nativedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
Seems NativeDriver server has not started properly. Can you check the Xcode log?

Original comment by [email protected] on 12 Aug 2011 at 2:48

  • Added labels: Type-Other
  • Removed labels: Type-Defect

from nativedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
libNativeDriver.a is missing in Xcode, highlighted in red, but the build 
doesn't throw any errors,  where can I Find it in the sourcecode?

Original comment by [email protected] on 22 Aug 2011 at 9:08

from nativedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
Xcode logs for Automation Target BuildBuild NativeDriver of project 
NativeDriver with configuration Debug

CompileC 
build/NativeDriver.build/Debug-iphonesimulator/NativeDriver.build/Objects-normal
/i386/NDElementStore.o Classes/VirtualDirectory/NDElementStore.m normal i386 
objective-c com.apple.compilers.gcc.4_2
cd /Users/nileshchaudhri/Downloads/androidnative/iphone
setenv LANG en_US.US-ASCII
setenv PATH 
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/
bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x 
objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs 
-fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -DDEBUG 
-isysroot 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.
sdk -fexceptions -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 
-fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -iquote 
/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/De
bug-iphonesimulator/NativeDriver.build/NativeDriver-generated-files.hmap 
-I/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/
Debug-iphonesimulator/NativeDriver.build/NativeDriver-own-target-headers.hmap 
-I/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/
Debug-iphonesimulator/NativeDriver.build/NativeDriver-all-target-headers.hmap 
-iquote 
/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/De
bug-iphonesimulator/NativeDriver.build/NativeDriver-project-headers.hmap 
-F/Users/nileshchaudhri/Downloads/androidnative/iphone/build/Debug-iphonesimulat
or 
-I/Users/nileshchaudhri/Downloads/androidnative/iphone/build/Debug-iphonesimulat
or/include -IThirdParty/iphone_webdriver/lib/buildtime-src/cocoahttpserver 
-IThirdParty/iphone_webdriver/lib/buildtime-src/cocoahttpserver/extensions 
-IThirdParty/iphone_webdriver/lib/buildtime-src/cocoahttpserver/project 
-IThirdParty/iphone_webdriver/lib/buildtime-src/cocoahttpserver/extensions/patch
ed 
-I/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/
Debug-iphonesimulator/NativeDriver.build/DerivedSources/i386 
-I/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/
Debug-iphonesimulator/NativeDriver.build/DerivedSources -include 
/var/folders/w0/w0DES-hfH9qtJBZi3zACEk+++TI/-Caches-/com.apple.Xcode.501/SharedP
recompiledHeaders/NativeDriver-Prefix-gplxwvooripvwiaqdmjklsmfxreq/NativeDriver-
Prefix.pch -c 
/Users/nileshchaudhri/Downloads/androidnative/iphone/Classes/VirtualDirectory/ND
ElementStore.m -o 
/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/De
bug-iphonesimulator/NativeDriver.build/Objects-normal/i386/NDElementStore.o

/Users/nileshchaudhri/Downloads/androidnative/iphone/Classes/VirtualDirectory/ND
ElementStore.m:22:37: error: GTMNSString+URLArguments.h: No such file or 
directory
/Users/nileshchaudhri/Downloads/androidnative/iphone/Classes/VirtualDirectory/ND
ElementStore.m: In function '-[NDElementStore registerElement:]':
/Users/nileshchaudhri/Downloads/androidnative/iphone/Classes/VirtualDirectory/ND
ElementStore.m:153: warning: 'NSString' may not respond to 
'-gtm_stringByEscapingForURLArgument'
/Users/nileshchaudhri/Downloads/androidnative/iphone/Classes/VirtualDirectory/ND
ElementStore.m:153: warning: (Messages without a matching method signature
/Users/nileshchaudhri/Downloads/androidnative/iphone/Classes/VirtualDirectory/ND
ElementStore.m:153: warning: will be assumed to return 'id' and accept
/Users/nileshchaudhri/Downloads/androidnative/iphone/Classes/VirtualDirectory/ND
ElementStore.m:153: warning: '...' as arguments.)

CompileC 
build/NativeDriver.build/Debug-iphonesimulator/NativeDriver.build/Objects-normal
/i386/GTMNSString+URLArguments.o 
ThirdParty/google-toolbox-for-mac/Foundation/GTMNSString+URLArguments.m normal 
i386 objective-c com.apple.compilers.gcc.4_2
cd /Users/nileshchaudhri/Downloads/androidnative/iphone
setenv LANG en_US.US-ASCII
setenv PATH 
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/
bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x 
objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs 
-fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -DDEBUG 
-isysroot 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.
sdk -fexceptions -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 
-fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -iquote 
/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/De
bug-iphonesimulator/NativeDriver.build/NativeDriver-generated-files.hmap 
-I/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/
Debug-iphonesimulator/NativeDriver.build/NativeDriver-own-target-headers.hmap 
-I/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/
Debug-iphonesimulator/NativeDriver.build/NativeDriver-all-target-headers.hmap 
-iquote 
/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/De
bug-iphonesimulator/NativeDriver.build/NativeDriver-project-headers.hmap 
-F/Users/nileshchaudhri/Downloads/androidnative/iphone/build/Debug-iphonesimulat
or 
-I/Users/nileshchaudhri/Downloads/androidnative/iphone/build/Debug-iphonesimulat
or/include -IThirdParty/iphone_webdriver/lib/buildtime-src/cocoahttpserver 
-IThirdParty/iphone_webdriver/lib/buildtime-src/cocoahttpserver/extensions 
-IThirdParty/iphone_webdriver/lib/buildtime-src/cocoahttpserver/project 
-IThirdParty/iphone_webdriver/lib/buildtime-src/cocoahttpserver/extensions/patch
ed 
-I/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/
Debug-iphonesimulator/NativeDriver.build/DerivedSources/i386 
-I/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/
Debug-iphonesimulator/NativeDriver.build/DerivedSources -include 
/var/folders/w0/w0DES-hfH9qtJBZi3zACEk+++TI/-Caches-/com.apple.Xcode.501/SharedP
recompiledHeaders/NativeDriver-Prefix-gplxwvooripvwiaqdmjklsmfxreq/NativeDriver-
Prefix.pch -c 
/Users/nileshchaudhri/Downloads/androidnative/iphone/ThirdParty/google-toolbox-f
or-mac/Foundation/GTMNSString+URLArguments.m -o 
/Users/nileshchaudhri/Downloads/androidnative/iphone/build/NativeDriver.build/De
bug-iphonesimulator/NativeDriver.build/Objects-normal/i386/GTMNSString+URLArgume
nts.o

i686-apple-darwin10-gcc-4.2.1: 
/Users/nileshchaudhri/Downloads/androidnative/iphone/ThirdParty/google-toolbox-f
or-mac/Foundation/GTMNSString+URLArguments.m: No such file or directory
i686-apple-darwin10-gcc-4.2.1: warning: '-x objective-c' after last input file 
has no effect
i686-apple-darwin10-gcc-4.2.1: no input files
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 
failed with exit code 1


Build Automation of project SampleApp with configuration Debug

Ld build/Debug-iphonesimulator/Automation.app/Automation normal i386
cd /Users/nileshchaudhri/Downloads/androidnative/iphone/SampleApp
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH 
"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/
bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 
-arch i386 -isysroot 
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.
sdk 
-L/Users/nileshchaudhri/Downloads/androidnative/iphone/SampleApp/build/Debug-iph
onesimulator 
-F/Users/nileshchaudhri/Downloads/androidnative/iphone/SampleApp/build/Debug-iph
onesimulator -filelist 
/Users/nileshchaudhri/Downloads/androidnative/iphone/SampleApp/build/SampleApp.b
uild/Debug-iphonesimulator/Automation.build/Objects-normal/i386/Automation.LinkF
ileList -mmacosx-version-min=10.6 -ObjC -all_load -Xlinker -objc_abi_version 
-Xlinker 2 -framework UIKit -framework Foundation -framework CoreGraphics 
-framework CFNetwork -lstdc++ -lCocoaHTTPServer -lNativeDriver -prebind -o 
/Users/nileshchaudhri/Downloads/androidnative/iphone/SampleApp/build/Debug-iphon
esimulator/Automation.app/Automation

ld: library not found for -lCocoaHTTPServer
collect2: ld returned 1 exit status
Command 
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 
failed with exit code 1


Original comment by [email protected] on 22 Aug 2011 at 9:37

from nativedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
You should checkout third party sources under trunk/iphone/ThirdParty directory.
Please try "svn update".
svn:externals setting is submitted at r58:
http://code.google.com/p/nativedriver/source/diff?spec=svn58&r=58&format=side&pa
th=/trunk/iphone/ThirdParty


Original comment by [email protected] on 22 Aug 2011 at 11:08

from nativedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
I have version 69 and still getting connection refused error on sample app

code
 //WebDriver driver = new IosNativeDriver();
      WebDriver driver = new IosNativeDriver("http://10.228.8.55:3001/hub");;
    driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

...same error for localhost.
error...

org.openqa.selenium.WebDriverException: 
org.apache.http.conn.HttpHostConnectException: Connection to 
http://10.228.8.55: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_29'
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.NativeDriverTest.testNativeDriver(NativeDriverTest.java:34)
    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://10.228.8.55: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)
    ... 24 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)
    ... 31 more


Original comment by [email protected] on 24 Jan 2012 at 7:50

from nativedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
GOT it WORKING on sample app!!!

but my app is giving this error....can any one help??

GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul  1 10:44:54 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".Attaching to process 1657.
2012-01-27 20:44:27.665 YSA[1657:207] App settings already initialized. Mode is 
Server
2012-01-27 20:44:27.687 YSA[1657:207] Started HTTP server on port 3001
2012-01-27 20:44:27.689 YSA[1657:207] HTTP server started on addr 10.228.8.55 
port 3001
2012-01-27 20:44:28.428 YSA[1657:207] Bonjour Service Published: domain(local.) 
type(_http._tcp.) name(Nilesh Chaudhari)
2012-01-27 20:44:49.174 YSA[1657:2903] Responding to request: POST /hub//session
2012-01-27 20:44:49.175 YSA[1657:2903] data: 
'{"desiredCapabilities":{"platform":"MAC","browserName":"iphone","version":""}}'
2012-01-27 20:44:49.175 YSA[1657:2903] -[NSCFString JSONFragmentValue]: 
unrecognized selector sent to instance 0x4f3a930
2012-01-27 20:44:49.177 YSA[1657:2903] *** Terminating app due to uncaught 
exception 'NSInvalidArgumentException', reason: '-[NSCFString 
JSONFragmentValue]: unrecognized selector sent to instance 0x4f3a930'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x015bb5a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x0170f313 objc_exception_throw + 44
    2   CoreFoundation                      0x015bd0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x0152c966 ___forwarding___ + 966
    4   CoreFoundation                      0x0152c522 _CF_forwarding_prep_0 + 50
    5   YSA                                 0x0006aa77 -[JSONRESTResource httpResponseForQuery:method:withData:] + 118
    6   YSA                                 0x00063a74 -[HTTPVirtualDirectory httpResponseForQuery:method:withData:] + 90
    7   YSA                                 0x00068b69 -[RESTServiceMapping httpResponseForRequest:] + 246
    8   YSA                                 0x00069633 -[HTTPServerController httpResponseForRequest:] + 49
    9   YSA                                 0x0006ac89 -[WebDriverHTTPConnection httpResponseForRequest:] + 70
    10  YSA                                 0x0006acbf -[WebDriverHTTPConnection httpResponseForMethod:URI:] + 48
    11  YSA                                 0x00065904 -[HTTPConnection replyToHTTPRequest] + 575
    12  YSA                                 0x00067de5 -[HTTPConnection onSocket:didReadData:withTag:] + 1791
    13  YSA                                 0x0005f908 -[AsyncSocket completeCurrentRead] + 454
    14  YSA                                 0x0005f5b4 -[AsyncSocket doBytesAvailable] + 2313
    15  YSA                                 0x0005ea2f -[AsyncSocket maybeDequeueRead] + 472
    16  Foundation                          0x00f9479e __NSFireDelayedPerform + 441
    17  CoreFoundation                      0x0159c8c3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
    18  CoreFoundation                      0x0159de74 __CFRunLoopDoTimer + 1220
    19  CoreFoundation                      0x014fa2c9 __CFRunLoopRun + 1817
    20  CoreFoundation                      0x014f9840 CFRunLoopRunSpecific + 208
    21  CoreFoundation                      0x014f9761 CFRunLoopRunInMode + 97
    22  Foundation                          0x00fb6115 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 295
    23  Foundation                          0x00fb5fe2 -[NSRunLoop(NSRunLoop) run] + 76
    24  YSA                                 0x0006afb5 -[WebDriverHTTPServer connectionThread] + 193
    25  Foundation                          0x00f7fcf4 -[NSThread main] + 81
    26  Foundation                          0x00f7fc80 __NSThread__main__ + 1387
    27  libSystem.B.dylib                   0x98f43259 _pthread_start + 345
    28  libSystem.B.dylib                   0x98f430de thread_start + 34
)
terminate called after throwing an instance of 'NSException'
sharedlibrary apply-load-rules all
Current language:  auto; currently objective-c
kill
quit
Program ended with exit code: 0

Original comment by [email protected] on 27 Jan 2012 at 3:17

from nativedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
hi,
i have still the following problem that iPhone webdriver gives connection 
refused error.
did you resolve it?

org.openqa.selenium.WebDriverException: 
org.apache.http.conn.HttpHostConnectException: Connection to 
http://10.228.8.55:3001 refused
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

Original comment by [email protected] on 23 Apr 2012 at 7:33

from nativedriver.

Related Issues (20)

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.