DavidRedmayneOccasional ContributorJoined 9 years ago14 Posts2 LikesLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: Testing across applications OK thanks - that's promising. Yes we have both of those modules installed. What's the process please? Thanks David Testing across applications Interesting little conundrum! We have a web app (Neon) which feeds a desktop app (DRS) via some middleware. What I need to do is change some data in the web app and check that it's updated the desktop app. Is it possible to have a 'mixed economy' test where by the test starts in a web app, kicks off the desktop app for assertion purposes and then closes both things? An alternative is that we have an old Desktop version of Neon, so in theory we could test two desktop apps...if that's any easier!! Any ideas? Thanks David Re: Check box stays in the unchecked state. Thanks! yes - I'll try those suggestions. You are quite right - the application opens several windows within the main container window. I tried moving the new window with the check box to some clean real-estate and ensured the window had focus. Thanks again David Check box stays in the unchecked state. TestComplete will not seem to replay a checkbox 'on' action. I've tried recording as a normal mouse click and tab+space-bar action - result is the same. I've also tried manually editing to 'point' TC in the right place! Call Aliases.DRSGUILD.wndGuiConClass.MDIClient.wndFedWClass4.checkAllEcashSuspended.ClickButton(cbChecked) This is the line in the script. Any suggestions please? Thanks David Re: Unable to see Dropdowns Excellent! The ClickItem call worked perfectly - that's a big relief - thanks tristaanogre, Colin_McCrae baxatob Re: Unable to see Dropdowns ...if it's any help.. When the test runs and gets to THE part, the CUSTOMER menu is highlighted briefly and the drop-down menu appears. meanwhile, the TC runner text is "waiting until the drop-down box appears" and then stops. Re: Unable to see Dropdowns Hello Colin, Thanks for this - yes your summary is correct! However, I re-recorded this test in the new build and it still doesn't 'see' the dropdown. The reference has certainly changed from the old build which was: Tested object: Aliases.browser.pageNeonCms5.panelMainMenu.panelIgNavbarMenuContainer.navIgNavbarMenu.textnodeCustomermanagementMenu (Sys.Browser("iexplore").Page("https://neonsit.gentingcasinosuk.com/CmsWeb2/Host/Host/Home").Panel(0).Panel("main_menu").Panel(0).Nav(0).TextNode("CustomerManagement_Menu")) And now is: Tested object: Aliases.browser.pageNeonCms2.panelMainMenu.linkCustomers (Sys.Browser("iexplore").Page("https://neonsit.gentingcasinosuk.com/CmsWeb/Host/Host/Home").Panel(0).Panel("main_menu").Panel(0).Panel(1).Link(1)) Re: Unable to see Dropdowns Hi - thanks for your response. Yes - you are quite right - Menus are links and when clicked the drop-down is rendered (see screenshot). The actual log error is "The Drop-Down box cannot be opened". Script is below - sticking point being "Aliases.browser.pageNeonCms8.manelMainMenu.linkCustomers.DropDown" [Mod edit: removed private info] function Test5() { //Launches the specified browser and opens the specified URL in it. Browsers.Item(btIExplorer, "", Browsers.pX64).Run("https://neonsit.gentingcasinosuk.com/cmsweb"); //Waits until the browser loads the page and is ready to accept user input. Aliases.browser.pageNeonCms.Wait(); //Clicks at point (56, 15) of the 'textboxUsername' object. Aliases.browser.pageNeonCms.formIgSigninFormNgPristineNgVali.textboxUsername.Click(56, 15); //Sets the text in the 'textboxUsername' text editor. Aliases.browser.pageNeonCms.formIgSigninFormNgPristineNgVali.textboxUsername.SetText("USERNAME_PLACEHOLDER"); //Enters '[Tab]' in the 'textboxUsername' object. Aliases.browser.pageNeonCms.formIgSigninFormNgPristineNgVali.textboxUsername.Keys("[Tab]"); //Sets the text in the 'passwordboxPassword' text editor. Aliases.browser.pageNeonCms.formIgSigninFormNgPristineNgVali.panelFormGroup.panelIgGridItem.passwordboxPassword.SetText("PASSWORD_PLACEHOLDER"); //Clicks the 'buttonLogin' button. Aliases.browser.pageNeonCms.formIgSigninFormNgPristineNgVali.buttonLogin.ClickButton(); //Waits until the browser loads the page and is ready to accept user input. Aliases.browser.pageNeonCms8.Wait(); //Clicks the 'OK' button of the 'modalNeonCasinoManagementSystem' modal dialog. Aliases.browser.pageNeonCms8.modalNeonCasinoManagementSystem.Keys("[Enter]"); //Opens the 'linkCustomers' drop-down window. Aliases.browser.pageNeonCms8.panelMainMenu.linkCustomers.DropDown(); //Clicks the 'linkCustomermanagementCustomerma' control. Aliases.browser.pageNeonCms8.panelMainMenu.linkCustomermanagementCustomerma.Click(); //Opens the 'linkHome' drop-down window. Aliases.browser.pageNeonCms8.panelMainMenu.linkHome.DropDown(); //Clicks an item of the 'linkHome2' drop-down control. Aliases.browser.pageNeonCms8.panelMainMenu.linkHome2.ClickItem("Log Out"); //Waits until the browser loads the page and is ready to accept user input. Aliases.browser.pageNeonCms3.Wait(); //Closes the 'BrowserWindow' window. Aliases.browser.BrowserWindow.Close(); } Unable to see Dropdowns We had a suite of tests which worked fine! After the latest patch from our third party devs, the tests no longer run. The main issue relates to dropdowns; formerly, a user could hover over a menu item which would render the dropdown menu beneath and then select the item from the list. When we scripted the tests, we obviously used a positive mouse click rather than any hovering! Now, this new patch has done away with the hover over menu function and even though we use a positive click to trigger the dropdown menu, TestComplete is returning an error 'object not found' even though the dropdown is appearing. Any suggestions please? Thanks David Re: Compare properties of two objects Thanks tristaanogre. Yes you're quite right....the objects under comparison are on different pages - however, I think your idea, in conjunction with baxatob's input should work OK. Thanks David