Contributions
Re: Integrate jenkins with test complete tool
I am using TestComplete Jenkins plugin, but I am not really convinced. I am trying to get a better log result visualization using both TestCompleteXUnit and publish TestComplete Result but that does not fit my needs.It is a good start though. Since results visualization in Jenkins is missing something when you have several project or keywords, I am thinking about build my own viewer.I did not understand why you guys chose MHT reporting over JSON or XML but I could work with it. Unfortunately,TCLogs result are not available via Jenkins API, then I think I should develop an extension or something. I have been looking on your blog, under TestComplete section (give it a try : http://blog.smartbear.com/category/testcomplete/) but it is full of Testing career advices, slides and book we should read, but nothing about TC community, features, and so on (You should consider turning your TestComplete blog section into an actual TestComplete updatesand not this kind of thread I would read on LinkedIn, twitter or Medium). Since I am bit stuck here, I also looked in the TestComplete Script Extension community, but could not find anything suitable. I am pretty sure something is achivable here, but it would require a better TestComplete integration (through XUnit, API and so one) with standards. Guillaume898Views0likes0CommentsRe: Custom Web Objects Recognition (TC10 + Angular)
Hey @dganov. I really wonder how you found out this trick, anyway, it does work :). Thanks. Even though itbecome easier to map object automatically, it uses a property (ng-reference) that is not accessible through Object Spy... Still looking for a solution to add Extended Property to Object Browser ! Guillaume3.7KViews0likes0CommentsRe: Custom Web Objects Recognition (TC10 + Angular)
Hi again. Thanks for your answers. @lage: I would rather avoid using textContent. I assumeI can not base my object recognition using innerHTML. There are two many elements(ancestors) that will contains the specify HTML code. Beside, I think it might take longer to parse DOM using regexp. @dganov: Thanks. Indeed, that might help ! I actually never tried to add a non-existing property to identify a object in NameMapping. It is a bit tricky but it would do the job. @alex: I would also avoid using EvaluateByXPath.I use Keyword Test and I avoid as much as possible script as itbecome difficult to understandand maintain test case. I assumed xpath/css selector would work, but I am trying touse namemapping. Since @dganov answers actually works, I amstill wondering how could Ihave TestCompleteObject Browser to add specific property added to Extended Properties... For instance, the following code actually works. I guess TestComplete NameMapping implementation actually uses a similar mechanism to retrieve element. var PropArray = new Array("ng-repeat", "Visible"); var ValuesArray = new Array("*", true); var ngRepeats = Aliases.theBrowser.page.FindAllChildren(PropArray, ValuesArray, 50, true); ngRepeats = (new VBArray(ngRepeats)).toArray(); for(var idx = 0; idx < ngRepeats.length; idx++ ){ Log.Message(ngRepeats[idx].getAttribute("ng-repeat")) } Are there any other solution (less tricky and time consumming) that would let me configure TestComplete in order todirectly provide some property within Object Browser and NameMapping ?! If ng-repeat (or ng-reference, or anything else I would like to configure) attribute exists, then add it to Extended Property ! I tried Open Applications / Web Testing / Object Identification but that is not what I am looking for. Thanks ! Guillaume3.7KViews0likes6CommentsCustom Web Objects Recognition (TC10 + Angular)
Hi. I have been using TCs for couple of years from TC6 to TC9. I amnow trying to understand if TC10 might help us to perform web testing over angularMVVM applications... I have been looking over support but could not find that much information.Only two thread have been createdhere... I have difficulties to identify angular web elements withinTestComplete. Iwould rather avoid using script to enable TestComplete full support of custom property. For instance, angular provides a directive ng-repeatthat will generatefollowing HTML code : <div ng-controller="simplePiecesController" class="pieces-list ng-scope"> <!-- ngRepeat: piece in pieces --> <div class="ng-scope" ng-repeat="piece in pieces"> <div class="piece-form" max-documents-authorized="maxDocumentsAuthorized" validate="savePersistence()">First piece</div> </div> <!-- ngRepeat: piece in pieces --> <div class="ng-scope" ng-repeat="piece in pieces"> <div class="piece-form" max-documents-authorized="maxDocumentsAuthorized" validate="savePersistence()">Second piece</div> </div> <!-- ngRepeat: piece in pieces --> <div class="ng-scope" ng-repeat="piece in pieces"> <div class="piece-form" max-documents-authorized="maxDocumentsAuthorized" validate="savePersistence()">Third piece</div> </div> </div> I am trying to achieve custom object identifying. If I manage to changed HTML to something like this (see following code), is there any chance I could have TestComplete to identify each of mydivs ? <div ng-controller="simplePiecesController" class="pieces-list ng-scope"><br> <!-- ngRepeat: piece in pieces --> <div class="ng-scope" ng-repeat="piece in pieces" ng-reference="first-piece"> <div class="piece-form" max-documents-authorized="maxDocumentsAuthorized" validate="savePersistence()">First piece</div> </div> <!-- ngRepeat: piece in pieces --> <div class="ng-scope" ng-repeat="piece in pieces" ng-reference="second-piece"> <div class="piece-form" max-documents-authorized="maxDocumentsAuthorized" validate="savePersistence()">Second piece</div> </div> <!-- ngRepeat: piece in pieces --> <div class="ng-scope" ng-repeat="piece in pieces" ng-reference="third-piece"> <div class="piece-form" max-documents-authorized="maxDocumentsAuthorized" validate="savePersistence()">Third piece</div> </div> </div> I would like to use NameMapping, but unfortunately, TestComplete Object Spy wont let me access this ng-referencecustom property... And I can't find any documentation about extending Object property without dealing with SDK ! I don't want to use NameMapping hierarchy since it might change often and is kind of dynamic... I would rather use extend find property... Furthermore, I don't want to force developers to add ID or Class property (sinceit is not angular philosophy) ! Any help would be greatly appreciated ! Best regards, Guillaume.3.9KViews0likes10CommentsMemory consumption of tested application
Hi, We are using TestComplete with a WPF application. The execution lasts up to 2 hours. After about 1 hour and a half, the AUT uses 1.6Gb of memory. Then, a Windows Error concerning virtual memory prompts (TestExecute runs on a virtual machine) But when we make manual tests, we don't have the same memory consumption : For instance, a test run with TestComplete increases the memory consumption by 600Mb. The same scenario executed with manual testing increases the memory consumption by 40Mb~. We wonder if TestComplete can be the cause of this problem. Is there something in TestComplete, which for instance, keeps some component of our application in memory ? How can we solve our problem ? Is there a solution ? Thanks for your response. Regards.23KViews0likes1Comment- 737Views0likes0Comments
Re: Namemapping with extended find - invisible Alias?
I agree with Dmytro. If you change manually the hierarchy of mapped object by drag and dropping them to their grand parents, that will not work. According to support page, you have to enable Extended find on a child, and delete his parent. When confirmation dialog popup, simply click no to keep children object mapped. The thing is, even if you follow instruction of the support page http://support.smartbear.com/viewarticle/12466/, you may have others difficulties using them as I wrote earlier http://community.smartbear.com/forum/post/?mode=singleThread&thread=75c33127-e966-4d05-8088-8178db103112 Regards.2.3KViews0likes0CommentsAliases in Keywords OnScreenActions are automatically removed
Hi. I mapped my application using conditional find. At first, I thought this feature would be awesome. After couple of days, it is more a painful than expected. On one hand, when I call the Highlight on screen on an alias, the expected object is highlighted. Wow ! On the other hand, within keywords, I want to use the point and fix method. When I point the previous highlighted object, TestComplete does not detect my alias and prompt something like : Aliases.theBrowser.panelContent.Panel(0).Fieldset(0).Panel(0).Panel(0)... I assume this is due to some bottom to top recognition issue in Aliases (see my previous post: http://community.smartbear.com/forum/post/?mode=singleThread&thread=dd919c33-b341-4189-99a5-206cb7a6ffd9). This should definitely be solved by the way. My main concern now is to be able to work with those Aliases within Keyword. It seems that aliases would work perfectly in script, but I can't afford to loose keywords features. Moreover, even though I write (or paste) the alias of the object I want to use in my OnScreenAction, TestComplete switch to my program, look for my alias, and prompt me back Aliases.theBrowser.panelContent.Panel(0).Fieldset(0).Panel(0).Panel(0).PasswordBox("pwb") while I wrote : Aliases.theBrowser.panelContent.fsIden.pwdBox Am I doing something wrong ? How can I force TestComplete not to update OnScreenActions parameters with what I computed, but keep what the user gave him ? Finally, it appears to me that those features should be implemented. If this is not the case, SmartBear should add it in the request databases or increase its severity. Thanks.17KViews0likes1Comment