Set Mock location on iOS
Hi there, I am having again some trouble with TestComplete, this time with fake locations. I try to set the fake location of an iOS device using the code from this help article. Now, I get two problems: In the line Mobile.Device.GPS.GPSEnabled = true; I get "Falsche Anzahl an Argumenten oder ungültige Eigenschaftszuweisung" (Wrong number of arguments or illegal parameter assignment) When I debugged that piece of code, I found out that GPSEnabled was already set to true, so I removed that line for experimental purpose. Now I get the very same error but in the line Mobile.Device.GPS.SetLocation(Longt,Lat,Alt,Acc); Please note that the app has granted GPS access (I answered the prompt from iOS with Yes). So I read through TestCompletes help articles and found this article which says: "TestComplete can specify mock location data only when the Allow mock locations setting is enabled in the iOS developer settings." I have no idea if this has something to do with my problem but I couldn't find anything like "Allow mock locations" in the developer options of my iOS device. Thanks for helping, Greetings, vat7.3KViews0likes2CommentsHow do I identify an iOS notification indicator?
We have a Home button in our app that changes to display a small orange circle on the top right corner of it when there is a change. I thought this was just an attribute of the object that was being enabled/disabled. However, my dev says it should be in it's own hierarchy. After we both looked in TC, I don't see anything like it nested in my main Window the app runs in, where this Home button is also located. I also can't get it by itself on the object spy. Is there a way to capture the properties and their state of an object and then compare the properties when the object is in another state? That way I could maybe figure out if this is just a property of the object? Otherwise, any thoughts? In the screen shot, you'll see the Button is what I'm focused on. The two labels and button comprise the entire control. When there is a change, I'm not noticing what attribute has changed to enable that orange indicator, and I'm not seeing any additional objects display in my object browser. Thanks in advance.4.1KViews0likes6CommentsDevice loop does not return correct value for Aliases.Device.Name
I have a very simple device loop. And i have 2 devices connected to my laptop. One is an android device SM-G960W and another is an iphone. The issue i am noticing is that, when i put a debug point on the Log message here and check the value of the following, they return different values. Since 2 devices are connected, the above test will run for 2 iterations. Iteration 1: Iteration 2: While Mobile.Device().Name is returning the correct value, Aliases.Device.Name is always returns the 1st device that i connected to my machine out of the 2 devices connected. In the case above, Android device is connected first and Aliases.Device.Name is returning the android device for both the iterations. Any idea how to fix this issue? Thanks, Sridhar.Solved3.6KViews0likes5CommentsiOS testing - Testing on safari
Hi We have a mobile browser experiences of our website and I need to test that on safari on iPhone. When i connect my iPhone and click on Show mobile screen, it says "Device is not running an application that was prepared for testcomoplete". My question 1. Do we need to prepare safari too, to test via testcomplete 2. If yes, are the steps same as for any other app 3. If not is there a documentation i can use Details TestComplete : 12.5 iPhone : 6s iOS : 11Solved3KViews0likes4CommentsMenu not selected as TC reports as not visible on screen, but i'm looking right at it.
Bit of an unusual one here and i'm very confused. The below code is run and searches for and selects the menu item detailed. The code is used several times in a loop to build a system, so it searches and selects, 'Color', 'Projection', Wall Height' etc. Oddly on the 7th and 8th loop system it builds, it searches for 'Flooring' finds it, but then can't select it as it reports it is waiting for it to be visible on screen. What is strange is that i can see it on screen, it knows it is there as it fails at the touch command, using the object spy reports it as being visible on screen, but for some reason the Watch details for it show as False for Visible on screen. Of the 16 systems it builds it is fine for all the rest procedure Find_Label_Touch(ControlName : String; Driver: OleVariant); var target_CollectionView; target_Label; Value; begin Value := Project.Variables.Driver.Value(ControlName); If Value <> 'Blank' then begin target_CollectionView := Aliases.Device.processApplication.window0.tableview0; target_Label := target_CollectionView.Find( ['ObjectType', 'ObjectText'], ['Label', Value], 20000); target_Label.Touch(); Delay(500); end; end;Solved3KViews0likes5CommentsiOS: Unable to instrument application
Hi I am having problems instrumenting my iOS application. I have the required certificates, provisioning profile and PEM files. When I try to instrument the .ipa file, I get an error message saying: "Unable to instrument the XYZ.ipa application. The application's archive file has an invalid format." Does anyone have any clues to what is causing this error? The same .ipa can be installed on an iDevice and runs as expected. Best regards Lars Lund OlsenSolved2.9KViews0likes2CommentsiOS version not supported
My phone under test has been upgraded to 13.4 version of iOS and testcomplete only supports till version 13.3 Any idea when will testcomplete support 13.4 version? I am using the latest version of testcomplete. (I have disabled auto update now)Solved2.7KViews0likes6CommentsVery long search time for a particular control on iOS
Hey guys, me again, this time I have an issue on iOS. The issue concerns one particular control. If I try to interact with the control in any way (click it, do checkpoints on it, ...), it takes ages for TestComplete to find the object on screen, although there is nothing similar about the control itself. Here are the details: The control in question is a TableViewcell that resides within a ScrollView. The control has some own children: Labels and ImageViews The Scroll View is mapped such that this TableViewCell is a required child. The TableViewCell is mapped to have a label as a required child. Other mapping properties of the control are: ObjectType = TableViewCell wSection = 0 wItem = 0 TestComplete finds the object in the end, but it takes it a very long time to find it. Any ideas on why this happens? Greetings, vatbub2.5KViews0likes2CommentsTest Complete - Is it possible to perform rapid multi taps on iOS device
I am testing a mobile application which has a hidden feature, by request of the client, that is accessed by a 2 fingered tab, three times. Unfortunately as this can't be simulated by TC i currently have the script wait for a user input. I have also asked the devs to put in another access method, of a single finger tap, 6 times rapidly. Unfortunately when i record this it works, but on playback the script has huge delay in it and i can't seem to find any setting to reduce this. Is it possible to produce a playback of a rapid tap? Am i using the wrong touch control or is there a setting or method to reduce the daelay between actions (Delay between Events, ms: was 50 but tried 0) Any advice would be appreciated procedure Test1; var window : OleVariant; var navigationBar : OleVariant; var vlabel : OleVariant; begin Mobile.SetCurrent('Rps iPad Pro (2018)'); window := Aliases.Device.processApplication.window0; navigationBar := window.navigationbar0; vlabel := navigationBar.labelWelcome; vlabel.Touch(28, 12); vlabel.Touch(28, 12); vlabel.Touch(28, 12); vlabel.Touch(28, 12); vlabel.Touch(28, 12); vlabel.Touch(28, 12); end;Solved2.5KViews0likes4CommentsTC is not able to recognise popup window of a xamarin form based iOS app
I am working on automating a xamarin form based iOSapp. In this app 50-60% of core functionality is being covered in popups built using Rg.Plugins.Popup library.I am facing issue in automating these popup windows.As per smartbear support team TC does not support popup built with this plugin. The issue is that TC does not read them as xamarin XF objects but treat them as regular iOS objects which is treating them as windows with dyanamic index.The index of thsese window changes after each navigation. For example if I am on x window right now which TC is showing as window(1) and I navigate to some other area of application and then come back to same x window then index of window changes and TC reads window as window(10) this Please find screenshot attached to see details of it. This Window object is available in all popups of entire app. Aliases.Device.processQaA36020.Window(28).ScrollView().Button("", 0) ---button object Aliases.Device.processQaA36020.Window(39).PickerView().TableView(0) ------TableView object I can not Map these object because of this dynamic window object.I have tried clicking on 'Ok' 'Cancel' button using FindChild Method(by mentioning "Aliases.Device.processQaA36020" as parent)but it does not seem to be stable as at times it works and next it does not.So I cannot automate complex functioanlity availble in these poup using FindChild method . Also this approach does not seem to be reliable to automate 50-60% functionality of the app. Can anyone please suggest a wayout for this problem.Solved2.5KViews0likes2Comments