Ajay Hinduja Swiss - Android Image Touch – "Interface Not Supported" Error
Hi Everyone, I'm Ajay Hinduja Swiss and trying to use the Touch method on an image object from an image set I created in Ranorex Studio. I've set the current device to my locally connected Android device and am running the app via JSON capabilities using a local Appium server. However, every time I attempt to run a method on the image object, I receive the following error: "Python runtime error. Interface not supported." Here’s a simplified version of my test case: capabilities = { "app": "some_apk_path.apk", "deviceName": "droid", "platformName": "Android" } server = "http://localhost:4723/wd/hub" Mobile.ConnectDevice(server, capabilities, 600) Mobile.SetCurrent("droid") set = ImageRepository.ImageSet1 set.AllowNotif.Touch() Environment: Ranorex Version: 15.74.33.7 x64 (Trial) Appium: Local server setup The image set is recognized, but calling Touch() on any image object triggers the error. Is there a compatibility limitation with the trial version, or am I missing a configuration step? Any help would be appreciated! Ajay Hinduja Geneva, Switzerland (Swiss)Solved104Views0likes5CommentsAndroid Image Touch - Interface not supported problem
Hi, I'm trying to use method Touch on object from the Imgae set I've created. I have set the current device to my locally connected device, I'm running the app thru the json capabilities and local appium server. I'm not able to run any method on image object, every time I got the "Python runtime error. Interface not supported" The code of my test case: capabilities = { "app": "some_apk_path.apk", "deviceName": "droid", "platformName": "Android" } server = "http://localhost:4723/wd/hub" Mobile.ConnectDevice(server, capabilities, 600) Mobile.SetCurrent("droid") set = ImageRepository.ImageSet1 set.AllowNotif.Touch() I'm using trial Version: 15.74.33.7 x64257Views0likes5CommentsHow To: Read data from the Windows Registry
Hello all, I have recently learned how to retrieve data from the Windows registry in JavaScript test units. I am using this to return the OS information and application path information. This is very useful when added to the EventControl_OnStartTest event code. This will allow you to return OS information and other needed data at each test run. Some test management systems may provide this information for you or it may be logged in the in data produced in a pipeline run. This will embed the information directly into your test log. SmartBear KB Links: Storages Object Storages Object Methods Storages.Registry Method Section Object Get SubSection Method This bit of code will return the Product Name and Current Build from the registry. This location may vary between OS's so you will want to check this with RegEdit. let Section = Storages.Registry("SOFTWARE\\Microsoft\\Windows NT", HKEY_LOCAL_MACHINE); let regKeyString = Section.GetSubSection("CurrentVersion").Name; let productIdString = Storages.Registry(regKeyString, HKEY_LOCAL_MACHINE, 1, true).GetOption("ProductName", ""); let currentBuildString = Storages.Registry(regKeyString, HKEY_LOCAL_MACHINE, 1, true).GetOption("CurrentBuild", ""); Log.Message("Windows Version: " + productIdString + " Build: " + currentBuildString ) I have also found the need to find and set an application path and work folder in the project TestedApp for running through a pipeline because the pipeline deploys the application to a non-standard path. let Section = Storages.Registry("SOFTWARE\\WOW6432Node\\<_yourSectionName>\\", HKEY_LOCAL_MACHINE); let regKey = Section.GetSubSection(<_yourSubSectionName>).Name; let Path = Storages.Registry(regKey, HKEY_LOCAL_MACHINE, 0, true).GetOption("", ""); let WorkFolder = Storages.Registry(regKey, HKEY_LOCAL_MACHINE, 0, true).GetOption("Path", ""); let appIndex = TestedApps.Find(<_yourAppName>); if (appIndex >= 0){ if(TestedApps.Items(<_yourAppName>).Path != Path){ TestedApps.Items(<_yourAppName>).Path = Path } if(TestedApps.Items(<_yourAppName>).WorkFolder != WorkFolder){ TestedApps.Items(<_yourAppName>).Params.ActiveParams.WorkFolder = WorkFolder; } } else{ Log.Error("TestedApp " + <_yourAppName> + " does not Exist.") Runner.Stop(true); } I hope you find these links and code examples as useful as I have! Have a great day!97Views0likes0CommentsTest Complete not able to click on mobile application and record keyword tests
Hi Team, I have setup a MAC appium server for testing both iOS and Android applications. While testing android applications, I'am able to load the application to the mobile device but I'am not able to click on any options in the mobile application from Testcomplete . However Once I load the application to mobile, I can directly click on the mobile to navigate within the application. Another issue is that even if I do all the navigations in the phone directly and try to record keyword test , no test steps are getting recorded. Please help on this issues.131Views0likes4CommentsPerforming select all and delete on BitBar iPad or Android device
I am using TestComplete connected to Bitbar and am trying to simulate selecting the Text in a box and deleting it. I need to do this on the same app but on IOS and Android platforms if the code is different for both? As far as i can tell it doesn't support .SetText , nor key strokes, .Keys("^A[Del]"), for select all and delete I can't find any documentation for how to proform this function. Can anyone give any guidance?42Views0likes1CommentCan Testcomplete connect to two android mobile devices through local appium at the same time?
Hi, I have setup the local appium server and would like to use Testcomplete for recording keyword tests .In our android application testing, we would need to connect to multiple devices at the same time and verify the communication between applications in the two different devices. Is it possible to connect to two mobile devices from Testcomplete at the same time ?Solved54Views0likes2Comments