Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start-up the APP that I want to test through WDA after upgrade appium1.6.2 #7357

Closed
iriszhang1986 opened this issue Dec 5, 2016 · 17 comments

Comments

@iriszhang1986
Copy link

iriszhang1986 commented Dec 5, 2016

The problem

when start test,the log stop on this,And the app can't startup:
Continuing to run tests in the background with task ID 1

Environment

  • Appium version (or git revision) that exhibits the issue:1.6.2
  • Last Appium version that did not exhibit the issue (if applicable):1.6.0
  • Mobile platform/version under test:iOS10.1,xcode8
  • Real device or emulator/simulator:Real device

Detail

now I Have to replace the .../node_modules/.appium_npminstall/appium-xcuitest-driver/2.3.0/appium-xcuitest-driver/WebDriverAgent with appium 1.6.0‘s,and then it's ok.
is it wda's problem?

Link to Appium logs

[Appium] Welcome to Appium v1.6.2
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.2","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 19 ms - 83
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.2","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 10 ms - 83
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"com.gzj.haiuser","automationName":"XCUITest","platformName":"iOS","udid":"1ab4e5d80d69a02d954cb8ab0f456b0774b9a5da","deviceName":"111"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"com.gzj.haiuser","automationName":"XCUITest","platformName":"iOS","udid":"1ab4e5d80d69a02d954cb8ab0f456b0774b9a5da","deviceName":"111"},null,null,null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] app: 'com.gzj.haiuser'
[Appium] automationName: 'XCUITest'
[Appium] platformName: 'iOS'
[Appium] udid: '1ab4e5d80d69a02d954cb8ab0f456b0774b9a5da'
[Appium] deviceName: '111'
[debug] [XCUITest] XCUITestDriver version: 2.3.0
[BaseDriver] Session created with session id: 1178a436-5b47-4de5-931e-8ad3cbdc477c
[debug] [XCUITest] Xcode version set to '8.1'
[debug] [XCUITest] iOS SDK Version set to '10.1'
[debug] [XCUITest] Available devices: 1ab4e5d80d69a02d954cb8ab0f456b0774b9a5da
[debug] [XCUITest] Creating iDevice object with udid 1ab4e5d80d69a02d954cb8ab0f456b0774b9a5da
[XCUITest] Determining device to run tests on: udid: '1ab4e5d80d69a02d954cb8ab0f456b0774b9a5da', real device: true
[debug] [XCUITest] App is an iOS bundle, will attempt to run as pre-existing
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[XCUITest] Setting up real device
[XCUITest] Using WDA path: '/Users/iris/Documents/node-v6.3.1-darwin-x64/lib/node_modules/.appium_npminstall/appium-xcuitest-driver/2.3.0/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Users/iris/Documents/node-v6.3.1-darwin-x64/lib/node_modules/.appium_npminstall/appium-xcuitest-driver/2.3.0/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Using real device logger 'idevicesyslog'
[debug] [XCUITest] Beginning test with command 'xcodebuild build test -project /Users/iris/Documents/node-v6.3.1-darwin-x64/lib/node_modules/.appium_npminstall/appium-xcuitest-driver/2.3.0/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=1ab4e5d80d69a02d954cb8ab0f456b0774b9a5da -configuration Debug' in directory '/Users/iris/Documents/node-v6.3.1-darwin-x64/lib/node_modules/.appium_npminstall/appium-xcuitest-driver/2.3.0/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/iris/Library/Developer/Xcode/DerivedData/WebDriverAgent-agebempnhgnrebfwxttizzlbbbzc/Logs/Test/3C73416E-29E6-4E0B-9BD5-E913E5E45C07/Session-WebDriverAgentRunner-2016-12-05_150539-yg8COq.log
[debug] [WebDriverAgent] Device: Dec 5 15:05:48 duomaiceshide-iPhone XCTRunner[226] : Running tests...
[debug] [WebDriverAgent] Device: Dec 5 15:05:50 duomaiceshide-iPhone XCTRunner[226] : Continuing to run tests in the background with task ID 1

^C[Appium] Received SIGINT - shutting down
[XCUITest] System log exited with code '0'
[XCUITest] xcodebuild exited with code 'null' and signal 'SIGINT'
[HTTP] <-- POST /wd/hub/session - - ms - -

@triager triager added the Needs Triage bugs which are not yet confirmed label Dec 5, 2016
@romainlouvet
Copy link

same for me :(

[debug] [WebDriverAgent] Device: Dec 5 10:20:09 iPhoneQA5SBlanc XCTRunner[4277] : Continuing to run tests in the background with task ID 1
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...

@mykola-mokhnach
Copy link
Collaborator

  1. Are you sure you finished the previous testing session properly?
  2. There should be no active system alerts on the screen while WDA is starting.
  3. Have you tried to compile and run WDA manually on the device from Xcode (Product->Test on WebDriverRunner project)?

@romainlouvet
Copy link

romainlouvet commented Dec 5, 2016

@mykola-mokhnach

  1. Yes
  2. Yes
    3.Compilation seems good
    xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=4c1b23a8f47deeb851bdba9c7aca6c0214779c2e' clean build test

Test Suite 'All tests' started at 2016-12-05 10:34:36.259
Test Suite 'WebDriverAgentRunner.xctest' started at 2016-12-05 10:34:36.263
Test Suite 'UITestingUITests' started at 2016-12-05 10:34:36.264
Test Case '-[UITestingUITests testRunner]' started.
t = 0.00s Start Test at 2016-12-05 10:34:36.274
t = 0.01s Set Up

I downgraded with 1.6.1 -> no problem

@mykola-mokhnach
Copy link
Collaborator

Create an issue here https://github.com/facebook/WebDriverAgent/issues, but replace your local WDA with the most recent sources from master branch and check these first.

@saikrishna321
Copy link
Member

@romainlouvet its the same on ma side too +1

@jlipps
Copy link
Member

jlipps commented Dec 5, 2016

@mykola-mokhnach are we dealing with a legitimate regression in WDA-side code? if so we should see if we can fix and get appium 1.6.3 out asap

@mykola-mokhnach
Copy link
Collaborator

@jlipps Let's see what @marekcirkos thinks about it. I use WDA from master branch and don't see any noticeable issues so far.
@romainlouvet have you created an issue in WDA project? I don't see anything new there.

@RashmiMurthy
Copy link

@romainlouvet : I updated Appium to 1.6.2, when I try to compile after adding valid provisioning profile

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=ae7e4de6d18f3990190a6db32dbc6cb28a908a40' clean build test

throws below error:
Testing failed:
'RoutingHTTPServer/RoutingHTTPServer.h' file not found
** TEST FAILED **

@romainlouvet
Copy link

@mykola-mokhnach I try the last WDA same result
facebookarchive/WebDriverAgent#398

@mykola-mokhnach
Copy link
Collaborator

@romainlouvet What is your Xcode and OS version? I use 8.0 GM @ El Capitan

@romainlouvet
Copy link

romainlouvet commented Dec 6, 2016

@mykola-mokhnach Mac OS Sierra 10.12.1 & Xcode 8.1

@hepilt
Copy link

hepilt commented Dec 6, 2016

I updated Appium to 1.6.2, when I try to compile after adding valid provisioning profile
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination > 'id=ae7e4de6d18f3990190a6db32dbc6cb28a908a40' clean build test

throws below error:
Testing failed:
'RoutingHTTPServer/RoutingHTTPServer.h' file not found
** TEST FAILED **

Just run script from ./WebAgentRunner/Scripts/bootstrap.sh, u have not updated dependencies and npm bundle

@mykola-mokhnach
Copy link
Collaborator

#7313 (comment)

Seems like we've found the reason

@mykola-mokhnach
Copy link
Collaborator

I could even create a PR if I get a t-shirt with Appium logo for that
grinch2

@jlipps
Copy link
Member

jlipps commented Dec 14, 2016

@mykola-mokhnach t-shirt guaranteed! PM me on appium slack and i'll get your details :-)

@jlipps jlipps closed this as completed Dec 14, 2016
@maesiva
Copy link

maesiva commented Dec 23, 2016

Verified on 1.6.3 and I could launch the app. Thanks !!

Now, waiting for "invalid clicks in Landscape mode" (#6994) fix of WDA.

@imurchie imurchie removed the Needs Triage bugs which are not yet confirmed label Apr 13, 2017
@lock
Copy link

lock bot commented Apr 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Apr 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants