Contributions
Android Performance Counters
Hi Has anyone tried to configure Testcomplete or test execute to log Android Performance Counters. reason that this has come up is that we have a Multi core CPU and are unable to identify the actual CPU usage. "dumpsys cpuinfo" givesvaluesaveraged over a 60000milliseconds "top/vmstat" are not corellated to Multi-core cpu usage. Any Inputs or directions appreciated.866Views0likes1CommentAndroid FindAll JScript Example
Hi We are using TC12 I am aware of the FindAllChildren example for searching objects Searching Objects var arr = Sys.Process("calc").FindAllChildren("wChecked", true, 4).toArray(); Could someone help with an example to get the list of all TextView Objects instead of Buttons as in the Example> FindAll Buttons Current Layout we have Device = Mobile.Device("Mobile").Process("com.test.myapp") VitalBlock = RootLayout.Layout("maincontainer").Layout("layout").Layout("NO_ID") LabelArea = VitalBlock.Layout("leftcontainer").Layout("top_container") SpecificLabel= LabelArea.TextView("item1") Could someone explain how to get the List of all SpecificLabels in this layout. TestObj.FindAll(PropNames,PropValues,Depth,Refresh) Could someone clarify the type of PropValues and PropNames?1KViews0likes0CommentsRe: General best practice to map Objects in Hybrid Android Application
Many thanks Alex, True that the tree layout is more flexible when seen in light of the unnamed Layout_No_ID(1,2,3,4) as seen in my screenshot.These Layouts as they are unnamed now will not fit in the flat layout. I am using the aapt dump tool to get the list of resources( which reads the list of resources from *.xml in APK) file and map them to the mapped objects so that we have full traceability of the object map. Please provide details about using this: Also, TC 12 (if I remember version correctly) introduced a new parameter that makes it possible to specify object's search strategy - breadth-first or depth-first. You may play with this to improve the performance. I am trying to map the layouts as sub frames in a webpage so that we could visualize the tree by DOM or using LinkText as supported in Selenium. regards, Vikram U3KViews0likes1CommentGeneral best practice to map Objects in Hybrid Android Application
Hi Support/ TC users, I would request your views on the Best practice to use Flat versus Tree Object mapping. My observation so far is that there may be about 450 objects and this is favourable to both Tree as well as Flat mapping. However the flat naming will lead to increased access times rather than the tree format. Any/All suggestions are welcome.. I have noted that in the example there are a lot of unnamed Layout's which could change in both tree/flat naming structure. The screen layout and wireframes are already frozen but the type of controls are subject to change. * using TC 12.10.602 on 4.4.3/Lollipop for API19.Solved3KViews0likes3CommentsExtend Python 3 Libraries inside testComplete
HelloTestComplete Support, Using TC12 has been useful to automate Android applications. We currently need to send XML messages to a Webinterface to send Datathat is used by the Android app. To do this we need to import the packagesurllib, urllib2 to extend this funcionality to TestComplete. Kindly let us know a official procedure to import packages inside theC:\Program Files (x86)\SmartBear\TestComplete 12\Bin\Extensions\Python\Python34 Folders as PIP is not available. regards, Vikram USolved3.2KViews0likes4CommentsTestcomplete 11 Testcases report unsupported version of the PatchServices library on TC12.10
We have activated a TC12.10 Testlicense Existing TC11.0 Testcases when run from TC12.10 report this Error: The tested application x.y.z uses an unsupported version of the PatchServices library. 12:54:37 The tested application uses a version of the PatchServices library that is not compatible with your TestComplete version. Application name: x.y.z Device: To test the application as a white-box application, compile it with the PatchServices library that is shipped with your TestComplete version. See the instructions on how to do this. Else, TestComplete will not be able to access the application's internal objects, methods and properties, and you will be able to run only image-based tests against this application. Cannot obtain the Android control with ViewID "" and Index 1. See Additional Information for details. 12:55:13 The object does not exist. See Additional Information for details. 12:55:01.Solved2KViews0likes2Comments