Contributions
Problem with MAPI (can't receive recent emails)
Hello! I use Microsoft Outlook 2010 to receive messages with attachments under TestComplete 12.42 x64 with Windows 10. Very often I can find, that MAPI returns to me outdated or invalid number of items in he box. For example, I know, that mail box containing new email and can see, that this email is already received by Outlook, but MAPI provides for me, that this email does not exists. ////////////////////////////// var OutlookApplication = Sys.OleObject("Outlook.Application"); var NamespaceMAPI = OutlookApplication.GetNamespace("MAPI"); if (NamespaceMAPI.Accounts.Item("myemail@bk.ru") !== null) { NamespaceMAPI.SendAndReceive(false); inbox = NamespaceMAPI.Folders(accountName).Folders("Inbox"); items = inbox.Items; Log.Message(items.Count); } OutlookApplication.Quit(); ////////////////////////////// If I move this code to cycle, and will debug number of items in the box, some times I can get following results (as example): 11 emails, 10 email, 10 email, ........... If I terminate script in the TestComplete and run it again, then emails, which comes to box during previous test, will be appeared, but new emails will not as usual. I tried to terminate OUTLOOK.EXE application manually from bat files, but these actions doesn't bring 100% effect. Full version of my function you can find in the attachment. Thanks for help. Ilya852Views0likes0CommentsTestComplete 10.60 and Chrome 47
Hello! I use official TestComplete 10.60 for functional web testing. We need to use latest version of Google Chrome (it is 47 right now) for testing. Unfortunatelly I cannot find plugins and patches for TestComplete 10.60 for this version of Chrome. Latest version is 43. Will be available plugins for Chrome 47 in the nearest future? Thanks, Ilya878Views0likes2CommentsRe: Problem with simulating pressing Ctrl+A and Enter keys in the Flex under Chrome
Problem with Enter key: There is not-worked code: editBox.Click(); editBox.FlexObject.text = fontColor; editBox.Click(); editBox.Keys("[Enter]"); But there is worked code: editBox.Click(); editBox.Keys("^a[Del]"); Delay(shortDelay); editBox.Keys(fontColor + "[Enter]");3.3KViews0likes0CommentsProblem with simulating pressing Ctrl+A and Enter keys in the Flex under Chrome
Hello! I test Flex application which use rich text editor. For initial clearing of text I use simulation of keypresses Ctrl+A, Del: ///////////////////////////// var editor = RockstarFlex.FindChild(["ObjectType"], ["SpriteIME"], 3); editor.Click(editor.Width - 1, editor.Height - 1); RockstarFlex.Keys("^A"); RockstarFlex.Keys("[Del]"); ///////////////////////////// It's worked fine in the Internet Explorer 10, but in the Google Chrome (39.0.2171.65m) combination "^A" does not work. Test engine "eats" these strings, but in the UI I can't see that text was selected. Another problem, which I can reproduce only under Chrome (but cannot reproduce under MSIE10) is the following: Color palette should be closed by clicking "Enter" key and value from textBox should be saved. However, if I run test from Chrome, palette closes, but color does not saves. If I do same actions manually from keyboard, all works fine. Thanks, IlyaSolved3.4KViews0likes3CommentsCannot get access to Flex object (MSIE11, TC10.60, Win8.1)
Hello! I am testing Flex web application. I have no problems in the Windows 8.0 and MSIE10. After upgrading to Windows 8.1 and MSIE11 I have following problem. I have the object: Sys.Browser("*").Page("*").Panel("all").Panel("container").Panel("inner").Panel("center").Panel(0).Object("RockStar").RockStar("RockStar").MainMenuBarButton("HOME"); There is a button. During execution of test TestComplete cannot get access to objectObject("RockStar"). In the Process tree instead ofObject("RockStar") I see SysNode: After script execution failure, I can click on this SysNode element and it will be changed to Object("Rockstar"). Unfortunatelly, second attempt of script execution will be failed too. I turned off MSIE Safe mode, turned off LCIE, using following: Open the registry editor. Go to the HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain section and locate the TabProcGrowth key. If the key does not exist, create a new DWORD (32-bit) Value or String Value and name it as TabProcGrowth accordingly. Set the value of the TabProcGrowth key to 0. This will instruct IE to open all of the tabs within the same iexplore.exe process. But these have not effect. How I can run my tests as usually? Thanks, Ilya648Views0likes1CommentFreezing of Remote computer if cursor moved to workstation
Hello! I am testing Flex application runned on remote computer in our local network. Sometimes, but several times at the test, TestComplete stops functional web test execution and wait unitl I move mouse from my left monitor to right monitor with msts.exe and TestComplete. Sometemes it is required to perform click on the Remote window to tect continueing. As a rule, test pauses befor methods object.Cilck() or object.Keys(), for example, before filling Flex text boxes. I read articlehttp://support.smartbear.com/viewarticle/56551/ and add two keys to the rigistry on my local machine, restart mstsc.exe, but it have not an effect for me. My local machine is Windows 7 x64, machine with TestComplete is Windows 8.0 Professional. Version of TestComplete is 10.60. Also I have tried to use RealVNC to connect to remote desktop, but it also have not positive effect. How I can prevent stopping of test engine during mouse focusing on my local desktop? Thanks, Ilya605Views0likes1CommentRe: How to read values from specific cells in the Flex datagrid with nodes?
The cell with STATUS is the following: Aliases.browser.pageHome.objectRockstar.rockstar.trafficmanagerpageuiTrafficmanag.panelwithtitleOrders.advanceddatagridAdg.advancedlistbasecontentholderAdv.advancedlistbasecontentholderAdv.AdvancedDataGridItemRenderer(3) Another cell with STATUS: Aliases.browser.pageHome.objectRockstar.rockstar.trafficmanagerpageuiTrafficmanag.panelwithtitleOrders.advanceddatagridAdg.advancedlistbasecontentholderAdv.advancedlistbasecontentholderAdv.AdvancedDataGridItemRenderer(7) But, it is too difficult to use this 'paths' in the practice, because indexes in the brackets cannot be calculated simply.604Views0likes0CommentsHow to read values from specific cells in the Flex datagrid with nodes?
Hello! I am working in the TestComplete 9.31. I am working with Flex Advanced datagrid. This grid is set of nodes. Each node is containing one or few child-level lines. I know only ony value of proferty (FILE NAME), but does not know the node which I must expand. In the result I should find value of cell "STATUS" in the parent element. Enlarge the Image Unfortunatelly, I cannot (or don't know how to) get direct access by coordinates to the each cell of parent strings, I can only find them by properties. I can find cell with known File name ("ISSUE 3306" on the screenshot), but I have troubles with detecting of parent node which is containing this element. I want to get access to elements of advanced datagrid by coordinates (like getText(string(1), subitem(1), cell("FILE NAME")). Could you please say how I can get access to the elemetns for reading? Ilya2.1KViews0likes1Comment