Contributions
Re: Keyword Test - Get new Id value from textbox
Robert, I have followed your instructions and the test executes without an error. If I put a breakpoint on the line which calls "aqFile.WriteToTextFile" I can see the correct value in variable "EventId." However, the value of the new EventId is not getting written to the file. Please take a look and tell me where I am missing something. Sub Test2() Dim EventId EventId = "" 'Runs the "SwitchingManager" tested application. Call TestedApps.SwitchingManager.Run 'Clicks the 'btnNew' button. Call Aliases.SwitchingManager.frmSwitchingManagerMain.ucTransEventSummaryDisplay.pnlActionButtons.btnNew.ClickButton 'Clicks the 'btnCreatePlannedOutage' button. Call Aliases.SwitchingManager.frmCreateEvent.flpButtons.pnlCreatePlannedOutage.btnCreatePlannedOutage.ClickButton 'Selects the 'Alfermann Tap' item of the 'cboLocation' combo box. Call Aliases.SwitchingManager.frmTransEventDetail.ucPlannedOutageDetailPanel.pnlControls.cboLocation.ClickItem("Alfermann Tap") 'Clicks at point (194, 15) of the 'txtReason' object. Call Aliases.SwitchingManager.frmTransEventDetail.ucPlannedOutageDetailPanel.pnlControls.txtReason.Click(194, 15) 'Enters the text 'test' in the 'txtReason' text editor. Call Aliases.SwitchingManager.frmTransEventDetail.ucPlannedOutageDetailPanel.pnlControls.txtReason.SetText("test") 'Clicks at point (187, 13) of the 'txtEquipmentNotes' object. Call Aliases.SwitchingManager.frmTransEventDetail.SplitContainer1.SplitterPanel.pnlScrollableContent.ucPlannedOutageEquipmentPanel.pnlControls.txtEquipmentNotes.Click(187, 13) 'Enters 'test' in the 'txtEquipmentNotes' object. Call Aliases.SwitchingManager.frmTransEventDetail.SplitContainer1.SplitterPanel.pnlScrollableContent.ucPlannedOutageEquipmentPanel.pnlControls.txtEquipmentNotes.Keys("test") 'Selects the 'Out of Service' item of the 'cboProtectionType' combo box. Call Aliases.SwitchingManager.frmTransEventDetail.SplitContainer1.SplitterPanel.pnlScrollableContent.ucPlannedProtectionAndGroundingPanel.pnlControls.cboProtectionType.ClickItem("Out of Service") 'Clicks the 'Save' item of the 'tsTransEventActions' bar. Call Aliases.SwitchingManager.frmTransEventDetail.ucTransEventActionToolbar.pnlControls.tsTransEventActions.ClickItem("Save") 'Gets the new value in txtEventId EventId = Aliases.SwitchingManager.frmTransEventDetail.ucEventHeaderPanel.pnlControls.txtEventId.Text 'Writes the specified string to a text file. Call aqFile.WriteToTextFile("file.txt", EventId, 22, True) 'Closes the 'frmTransEventDetail' window. Call Aliases.SwitchingManager.frmTransEventDetail.Close 'Closes the 'frmSwitchingManagerMain' window. Call Aliases.SwitchingManager.frmSwitchingManagerMain.Close End Sub2.1KViews0likes1CommentKeyword Test - Get new Id value from textbox
I apologize ahead of time in case the answer to my question should be obvious. I have not been able to find it. I want to run a desktop app that creates a new widget. Once the widget is saved, the new Id appears in a textbox. I want to get the Id from this textbox and save it in a csv file to use as input to another test. Recording the test works great. How do I hook to the textbox, get the value from it, and write it to a file?Solved2.1KViews0likes3Comments- 986Views0likes0Comments
"Use Insert On Screen Action" Not Available in Visualizer
Hi Everyone, Just watched Test Complete 101. In the video, Test Complete caches all the objects. This allows you to open an image in Visualizer and add additional test steps later. I created my first successful desktop app test, but when I open the images in Visualizer I don't have the functionality shown in the video. In the video, moving the cursor over the image caused other textboxes, etc. to be selected. Then you could right-click and choose "Insert On Screen Action." This is not happening for me. What might I be overlooking? Is there a setting that I need to turn on to get this funtionality to work? Thanks in advance!Solved1KViews0likes2Comments