Contributions
Why does iterating through children seem to go in reverse order?
So I am doing testing of a React web application and I wanted to iterate through items in a drop-down list so that I can see if a specific item exists there. It seems like it's iterating through the children in reverse order. Why is that? Here is a screenshot of my ObjectBrowser: Here is the code that I am executing: function findAndSelectAbsenceType(absenceType) { var absenceTypePanel = NameMapping.Sys.browser.wfsPage.panelRoot.panel.panel.panel2.panel.panel.panel4.absenceTypePanel; var dropDownListOfAbsenceTypes = NameMapping.Sys.browser.wfsPage.menuPanel.dropDownListOfAbsenceTypesPanel; var i, child; for (i = 0; i < dropDownListOfAbsenceTypes.ChildCount; i++) { child = dropDownListOfAbsenceTypes.Child(i); Log.Message(i + " " +child.contentText + " " + child.Name, "", 0); } } and here is a screenshot of the test results: Any insights would be much appreciated? Also, I did find this other post from a few years back that seems like it might be related: Find, FindChild, FindAllChildren have "visual" object orderSolved1KViews0likes1CommentRe: "Waiting for Button Object" occurs AFTER the button has already been pressed for a Java Swing app
OK, so SmartBear did find me a solution that worked fine. It was actually a bug in TestComplete, and they provided me with a patch that fixed the behavior. After applying the patch, TestComplete not longer "waits" for buttons it already clicked. It shaved off quite a bit of execution time from my test. The patch they gave me was not in that recent big update, but they assured me that the fix will be in a future release.2.3KViews0likes0CommentsAdd Perforce Integration for TestComplete
It would be great to have source control integration for Perforce users who are using TestComplete. Currently, it seems the only way to have this is to select the "SCC API Providers Plugin" for the "Current source control plugin:" field on the Source Control dialog. However, I heard from Perforce tech support today that they no longer support their P4SCC plugin. They said I could still download it, but it is only 32-bit and they were not going to develop a 64-bit version. Apparently, according to Perforce, Microsoft no longer supports the SCC API. Perforce tech support also told me that they have not tested P4SCC with TestComplete, so they do not know if it would work.1.5KViews2likes1CommentRe: "Waiting for Button Object" occurs AFTER the button has already been pressed for a Java Swing app
Thanks again. I just might do that (open a support ticket). Could you give me an idea of how to implement your solution in a keyword test? For example what operation would I use to grab the timeout setting?2.9KViews1like0CommentsRe: "Waiting for Button Object" occurs AFTER the button has already been pressed for a Java Swing app
Thanks for the suggestion! I was hoping for a solution that didn't involve any coding, though. Like I said, the test runs fine. It is just taking longer than it has to because of the unnecessary waits.2.9KViews1like1CommentRe: "Waiting for Button Object" occurs AFTER the button has already been pressed for a Java Swing app
Screenshot attached. I will also just paste in the related code that was generated. Aliases.jp2launcher.SecondExemptBankBandsDialog.RootPane.null_layeredPane.null_contentPane.SplitPane.ScrollPane.Viewport.Panel.ExemptSecondBankBands5MaxHours.SetText(ExemptSecondBankBand5MaxHours); Aliases.jp2launcher.SecondExemptBankBandsDialog.RootPane.null_layeredPane.null_contentPane.SplitPane.ScrollPane.Viewport.Panel.ExemptSecondBankBands6RangeBegin.SetText(ExemptSecondBankBand6RangeBegin); Aliases.jp2launcher.SecondExemptBankBandsDialog.RootPane.null_layeredPane.null_contentPane.SplitPane.ScrollPane.Viewport.Panel.ExemptSecondBankBands6RangeEnd.SetText(ExemptSecondBankBand6RangeEnd); Aliases.jp2launcher.SecondExemptBankBandsDialog.RootPane.null_layeredPane.null_contentPane.SplitPane.ScrollPane.Viewport.Panel.ExemptSecondBankBands6HoursToAccrue.SetText(ExemptSecondBankBand6HoursToAccrue); Aliases.jp2launcher.SecondExemptBankBandsDialog.RootPane.null_layeredPane.null_contentPane.SplitPane.ScrollPane.Viewport.Panel.ExemptSecondBankBands6MaxHours.SetText(ExemptSecondBankBand6MaxHours); Aliases.jp2launcher.SecondExemptBankBandsDialog.RootPane.null_layeredPane.null_contentPane.SplitPane.Panel.ExemptSecondBankBandsConfirmButton.ClickButton(); //Switch to the Non-Exempt General Options tab. Aliases.jp2launcher.TemplateImportDialog.RootPane.null_layeredPane.null_contentPane.Panel.TabbedPane4.ClickTab("Non-Exempt General Options"); //Populate parameters on the Non-Exempt General Options tab. Aliases.jp2launcher.TemplateImportDialog.RootPane.null_layeredPane.null_contentPane.Panel.TabbedPane5.ScrollPane.Viewport.Panel.NonExemptTimesheetSubmittalRemindersComboBox.ClickItem(NonExemptEEtimesheetSubmittalReminder); Aliases.jp2launcher.TemplateImportDialog.RootPane.null_layeredPane.null_contentPane.Panel.TabbedPane5.ScrollPane.Viewport.Panel.NonExemptElapsedHoursIncrementTextField.SetText(NonExemptElapsedHrsIncrement); Aliases.jp2launcher.TemplateImportDialog.RootPane.null_layeredPane.null_contentPane.Panel.TabbedPane5.ScrollPane.Viewport.Panel.NonExemptGraceTextField.SetText(NonExemptGrace);2.9KViews0likes0Comments"Waiting for Button Object" occurs AFTER the button has already been pressed for a Java Swing app
Greetings, I have a keyword test for a Java Swing application that is working perfectly fine.However, I am noticing behavior that I don't understand that I believe is making the execution time of the test unnecessarily long. There are several dialog boxes that pop-up in the app during test execution. When I am done interacting with the dialogs, I am closing them by doing a ClickButton operation on the "Close" buttons on each dialog. These buttons are javax.swing.JButtons. TestComplete is correctly clicking on the buttons and the dialogs are dismissed, but then, strangely, I can see in the "indicator" a message like, "Waiting for [Button] Object" and the test paused for several seconds. Normally, I am used to seeing such pauses BEFORE interacting with components. Anyway, I feel like, when you add up all the times that this happens in my test, it is costing me about half a minute (in a test that runs in three minutes). Does anyone have any answers for why this is happening, or what I can do to prevent it from happening so that I can reduce my test execution time?Solved3.2KViews0likes11CommentsRe: IE 11 is not working with Testcomplete
Hmmm...as I feared, it's back to not working, though I know what to do to fix it. I made the necessary Registry edit and I see it there after a reboot, but I am still finding some background IE processes. See the screenshot if you are curious.2.6KViews0likes1Comment