Facing issue in Test cloud for Tap Button in iPhones

BhaurajBiradar.9064BhaurajBiradar.9064 USMember ✭✭
edited October 16 in Xamarin Test Cloud

Device : Apple iPhone 7 Plus
OS : iOS 10.0.3
Model : iPhone9,4
Release date : September 2016
Screen size : 5.5 in (13.97 cm)
Resolution : 1080 x 1920

Below is the error i am facing for above device, anyone please help me

NUnit-Console version 2.6.3.13283
Copyright (C) 2002-2012 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.

Runtime Environment -
OS Version: Unix 15.3.0.0
CLR Version: 4.0.30319.17020 ( Mono 4.0 ( 4.2.3 (explicit/832de4b Thu Mar 3 19:24:57 EST 2016) ) )

ProcessModel: Default DomainUsage: Single
Execution Runtime: mono-4.0
Installing test cloud reporter.
Connected to Xamarin.UITest.
Run list: runlist.txt
.F.16-10-2017 16:22:21.173 +02:00 - 0 - Full log file: /Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/tmp/uitest/log-2017-10-16_16-22-21-167.txt
16-10-2017 16:22:21.176 +02:00 - 3 - iOS test running Xamarin.UITest version: 2.0.10
16-10-2017 16:22:21.238 +02:00 - 64 - Using TEST_CLOUD configuration override.
16-10-2017 16:22:21.946 +02:00 - 773 - Running in Test Cloud, on device with iOS8 or higher.
16-10-2017 16:22:58.011 +02:00 - 36836 - Test server version: 0.20.7
16-10-2017 16:22:59.479 +02:00 - 38305 - Took screenshot. { Counter: 1, Title: "First screen.", FileName: "/Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/screenshot-1-873e0b26599e42ad8f305d6dcd9912d9.png", ElapsedMilliseconds: 294 }
16-10-2017 16:22:59.481 +02:00 - 38306 - XTC_STEP_DATA
16-10-2017 16:22:59.482 +02:00 - 38308 - {"Counter":1,"Title":"First screen.","StepHash":"XXXXXXXXXXXX","ScreenshotPath":"/Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/screenshot-1-873e0b26599e42ad8f305d6dcd9912d9.png","ScreenshotElapsedMilliseconds":294,"ScreenshotTotalElapsedMilliseconds":294,"ScreenshotMimeType":null,"ScreenshotRotation":"0"}
16-10-2017 16:22:59.482 +02:00 - 38308 - XTC_STEP_END
Took final screenshot. { Title: "After test", FileName: "/Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/screenshot-final-4e1b801168294d30819e402e2f3a4bc1.png", ElapsedMilliseconds: 223 }
.N.16-10-2017 16:23:00.808 +02:00 - 0 - Full log file: /Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/tmp/uitest/log-2017-10-16_16-23-00-808.txt
16-10-2017 16:23:00.808 +02:00 - 0 - iOS test running Xamarin.UITest version: 2.0.10
16-10-2017 16:23:00.808 +02:00 - 0 - Using TEST_CLOUD configuration override.
16-10-2017 16:23:01.267 +02:00 - 458 - Running in Test Cloud, on device with iOS8 or higher.
16-10-2017 16:23:35.988 +02:00 - 35178 - Test server version: 0.20.7
16-10-2017 16:23:38.445 +02:00 - 37635 - Waiting for element matching Marked("alertTitle").
16-10-2017 16:24:38.593 +02:00 - 97781 - Error while performing WaitForElement(Marked("alertTitle"), "Update Info not loaded", 00:01:00, null, null)
Exception: System.TimeoutException: Update Info not loaded
at Xamarin.UITest.Shared.WaitForHelper.WaitForAny[T] (System.Func1 query, System.String timeoutMessage, Nullable1 timeout, Nullable1 retryFrequency, Nullable1 postTimeout) <0x77b7988 + 0x000db> in :0
at Xamarin.UITest.iOS.iOSApp+c__AnonStorey1C.<>m__0 () <0x77b6b58 + 0x001fb> in :0
at Xamarin.UITest.Utils.ErrorReporting.With[T] (System.Func`1 func, System.Object[] args, System.String memberName) <0x6ef92a0 + 0x00034> in :0
Error while performing WaitForElement(Marked("alertTitle"), "Update Info not loaded", 00:01:00, null, null)
16-10-2017 16:24:39.410 +02:00 - 98598 - Took screenshot. { Counter: 1, Title: "Login Page", FileName: "/Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/screenshot-1-3840f86c0eb545b2a61cdc97e2f47dfe.png", ElapsedMilliseconds: 289 }
16-10-2017 16:24:39.411 +02:00 - 98598 - XTC_STEP_DATA
16-10-2017 16:24:39.411 +02:00 - 98599 - {"Counter":1,"Title":"Login Page","StepHash":"XXXXXXXXXXXXX","ScreenshotPath":"/Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/screenshot-1-3840f86c0eb545b2a61cdc97e2f47dfe.png","ScreenshotElapsedMilliseconds":289,"ScreenshotTotalElapsedMilliseconds":289,"ScreenshotMimeType":null,"ScreenshotRotation":"0"}
16-10-2017 16:24:39.411 +02:00 - 98599 - XTC_STEP_END
16-10-2017 16:24:39.614 +02:00 - 98802 - Waiting for element matching Marked("UserNameEntry").
16-10-2017 16:24:40.632 +02:00 - 99820 - Tapping element matching Marked("UserNameEntry") at coordinates [ 160, 202.67 ].
16-10-2017 16:24:43.724 +02:00 - 102912 - Error while performing EnterText("XXXXXXXX")
Exception: System.Exception: No keyboard is visible for text entry.
at Xamarin.UITest.iOS.iOSApp+c__AnonStorey5.<>m__0 () <0x7899478 + 0x0011f> in :0
at Xamarin.UITest.Utils.ErrorReporting.With (System.Action func, System.Object[] args, System.String memberName) <0x6eedc48 + 0x00030> in :0
16-10-2017 16:24:44.539 +02:00 - 103726 - Took screenshot. { Counter: 2, Title: "Test Fixture Ignored. Reason: Error while performing EnterText("XXXXX")", FileName: "/Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/screenshot-2-3840f86c0eb545b2a61cdc97e2f47dfe.png", ElapsedMilliseconds: 277 }
16-10-2017 16:24:44.540 +02:00 - 103727 - XTC_STEP_DATA
16-10-2017 16:24:44.540 +02:00 - 103727 - {"Counter":2,"Title":"Test Fixture Ignored. Reason: Error while performing EnterText("XXXXXX")","StepHash":"XXXXXX","ScreenshotPath":"/Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/screenshot-2-3840f86c0eb545b2a61cdc97e2f47dfe.png","ScreenshotElapsedMilliseconds":277,"ScreenshotTotalElapsedMilliseconds":277,"ScreenshotMimeType":null,"ScreenshotRotation":"0"}
16-10-2017 16:24:44.540 +02:00 - 103727 - XTC_STEP_END
NTook final screenshot. { Title: "After test", FileName: "/Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/screenshot-final-aced71c638ce4b23a155e8b2afe27060.png", ElapsedMilliseconds: 255 }
Completed run. 60 events collected.

[[[ XTC-Output-Path: '/Volumes/Data/xamarin/workspaces/38761e62-4305-47b2-8bac-b57de55ccb30/workspace/tmp/TestRun-20171016-142445-4287' ]]]

Tests run: 1, Errors: 0, Failures: 0, Inconclusive: 0, Time: 145.0684544 seconds
Not run: 3, Invalid: 0, Ignored: 3, Skipped: 0

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319

Posts

  • LewisKLewisK USUniversity ✭✭

    If its a simulator you might need to press command K two times to enable the keyboard.

  • @LewisK - It's not a simulator, Below is test cloud server device details
    Device : Apple iPhone 7 Plus
    OS : iOS 10.0.3
    Model : iPhone9,4
    Release date : September 2016
    Screen size : 5.5 in (13.97 cm)
    Resolution : 1080 x 1920

  • BhaurajBiradar.9064BhaurajBiradar.9064 USMember ✭✭
    edited October 17

    Below is the error screenshot -

  • @LewisK - what it means pressing command twice
  • LewisKLewisK USUniversity ✭✭
    edited October 17

    Command K is the hotkey to enable keyboard on iOS simulators. Is this a default Entry or a custom one.

    I normally do
    waitforelement
    tap
    entertext

    Seems that is what you are doing. Unless the previous error is causing issues.

    16-10-2017 16:24:38.593 +02:00 - 97781 - Error while performing WaitForElement(Marked("alertTitle"), "Update Info not loaded", 00:01:00, null, null)

  • Hi @LewisK - I am using Custom Entry

  • LewisKLewisK USUniversity ✭✭

    @BhaurajBiradar.9064 said:
    Hi @LewisK - I am using Custom Entry

    Does it manipulate the focus in any way?

  • Hi @LewisK - Yes, we are adding tap gesture to custom entry, that time i am doing focus.

  • BhaurajBiradar.9064BhaurajBiradar.9064 USMember ✭✭
    edited October 18

    @LewisK - I tried without custom entry(only entry used), It's still the same.

  • LewisKLewisK USUniversity ✭✭

    @BhaurajBiradar.9064 said:
    @LewisK - I tried without custom entry(only entry used), It's still the same.

    Try using app.repl at that point and querying for the element. Then check the tree and tap etc. See if it works if you manually invoke it.

  • Hi @LewisK - I tried app.repl, still the same and below is the logs

    18-10-2017 23:02:06.668 +02:00 - 194723 - Ignoring REPL in test cloud.
    18-10-2017 23:02:06.670 +02:00 - 194725 - Waiting for element matching Marked("UserNameEntry").
    18-10-2017 23:02:07.622 +02:00 - 195677 - Tapping element matching Marked("UserNameEntry") at coordinates [ 160, 202.67 ].
    18-10-2017 23:02:08.759 +02:00 - 196814 - Entering text 'value' in element matching Marked("UserNameEntry") at coordinates [ 160, 202.67 ].
    18-10-2017 23:02:14.215 +02:00 - 202270 - Error while performing EnterText(Marked("UserNameEntry"), "value")
    Exception: System.TimeoutException: Timed out waiting for keyboard.
    at Xamarin.UITest.Shared.WaitForHelper.WaitFor (System.Func1 predicate, System.String timeoutMessage, Nullable1 timeout, Nullable1 retryFrequency, Nullable1 postTimeout) <0x6ea09b0 + 0x004db> in :0
    at Xamarin.UITest.iOS.iOSApp+c__AnonStorey6.<>m__0 () <0x73be2d8 + 0x00527> in :0
    at Xamarin.UITest.Utils.ErrorReporting.With (System.Action func, System.Object[] args, System.String memberName) <0x6ea0578 + 0x00030> in :0
    18-10-2017 23:02:15.087 +02:00 - 203142 - Took screenshot. { Counter: 2, Title: "Error while performing EnterText(Marked("UserNameEntry"), "value")", FileName: "/Volumes/Data/xamarin/workspaces/bd9f1ade-6bd7-4a1c-97c9-d7b3de8a4861/workspace/screenshot-2-d9c3ada9cf684f4b978038dd8e9e59ea.png", ElapsedMilliseconds: 336 }
    18-10-2017 23:02:15.088 +02:00 - 203142 - XTC_STEP_DATA
    18-10-2017 23:02:15.088 +02:00 - 203143 - {"Counter":2,"Title":"Error while performing EnterText(Marked(\"UserNameEntry\"), \"value\")","StepHash":"AEA6CF4792D32387C971C8F56F7AF98D09C8CE42","ScreenshotPath":"/Volumes/Data/xamarin/workspaces/bd9f1ade-6bd7-4a1c-97c9-d7b3de8a4861/workspace/screenshot-2-d9c3ada9cf684f4b978038dd8e9e59ea.png","ScreenshotElapsedMilliseconds":336,"ScreenshotTotalElapsedMilliseconds":336,"ScreenshotMimeType":null,"ScreenshotRotation":"0"}
    18-10-2017 23:02:15.088 +02:00 - 203143 - XTC_STEP_END

  • LewisKLewisK USUniversity ✭✭
    edited October 18

    Are there any UI Elements in the tree absorbing the click?

    "tree" command in repl

  • @LewisK - I am unable to debug.. I am running on Test cloud. Could you please help me how to debug Test cloud

  • LewisKLewisK USUniversity ✭✭

    @BhaurajBiradar.9064 said:
    @LewisK - I am unable to debug.. I am running on Test cloud. Could you please help me how to debug Test cloud

    Other than the logs not really. You don't have a simulator/device locally?

    You could use app.repl to and log it out. Never tried that though

  • Kent.GreenKent.Green USXamarin Team Xamurai
    edited October 23

    I noticed this entry in your initial logs:

    16-10-2017 16:22:21.176 +02:00 - 3 - iOS test running Xamarin.UITest version: 2.0.10
    ...
    16-10-2017 16:22:58.011 +02:00 - 36836 - Test server version: 0.20.7
    

    Can you try updating to Xamarin.UITest 2.1.4 in your Xamarin.UITest project & the Xamarin.TestCloud.Agent 0.21.1 package in your iOS app to see if that helps?

    Please note that the latest supported version of NUnit is 2.6.4 in the Test Cloud; so be careful not to update to NUnit 3 when you're updating Xamarin.UITest.

    Next Steps

    If that doesn't work, you can reach out to support by logging into testcloud.xamarin.com & clicking on "Support" in the menubar:

    If you use this link from the page of your affected Test Run, then our support team will automatically receive a link to the page and we can investigate the test in more detail. Otherwise please also include a direct link to the test run. It is not required to set the link to "shareable" when contacting support, since we have administrative settings to view your test run without you displaying it publicly.

Sign In or Register to comment.