Contributions
- 639Views0likes0Comments
quickly create screenshots
I have created some test scripts that check the output of a program that produces a large number of images. Ideally don't want to manually create 60+ region checkpoints for each test. Is there a way to create the screenshots in the TestComplete stores when I run the test script for the first time in the same way I can enable the "update stores" option for region checkpoints I have previously created (I have checked manually that these outputs are correct for the current version of the product I am testing). As it stands, enabling the "update pictures" option gives me an error message saying the object does not exist.13KViews0likes2CommentsRe: unreliable popup menus
I don't think I have the option for basic/advanced view in testcomplete 7.52? I can see a caption property but it is always blank. There are two properties that work to address the menu item but they both vary sometimes. ControlIndex - varies between 26-28 ControlIndexInGroup - varies between 22-24 at the moment my workaround is to have a big if statement each time I want to click something from this menu where item 3, 4 and 5 are all the same thing eg: If Not (Designer.pm_Context.menu_item3 Is Nothing) Then Designer.pm_Context.menu_item3.Click ElseIf (Designer.pm_context.menu_item4 Is Nothing) Then Designer.pm_Context.menu_item4.Click ElseIf (Designer.pm_context.menu_item5 Is Nothing) Then Designer.pm_Context.menu_item5.Click Else Log.Error("'Format cells' from right click menu could not be invoked") End If but that is a bit clunky and doesn't always work either.1.2KViews0likes0Commentsunreliable popup menus
Hi there, I am using testcomplete 7.52 and have a problem addressing popup menus. I am trying to open a right click menu on a table cell and then select "options->format cells" to open a dialog box. I have tried using mouse clicks eg: Call tableedit.ClickR(23, 25) Call Designer.pm_context.menu_item3.Click 'click "options" Call Designer.pm_options.menu_item2.Click 'click "format cells" I have noticed for different instances of the test, the menu is sometimes recognised differently to testcomplete despite the menu being identical each time (called from the same test, same number of items, same names) and so testcomplete is unable to select "options". In my NameMapping for the project I have three items: -NameMapping.Sys.Designer.pm_context.menu_item3 -NameMapping.Sys.Designer.pm_context.menu_item4 -NameMapping.Sys.Designer.pm_context.menu_item5 where the objects are identical except for the ControlIndex property and it seems almost random when each will work as the "options" item during test execution. I have also tried doing it with key presses and selecting the 22nd option in the menu, then the third option (options is always 22nd and format cells is 3rd): Call Tableedit.Keys["Apps"] Designer.pm_context.Keys("[down][down][down][down][down][down][down][down][down][down][down][down][down][down][down][down][down][down][down][down][down][down][right][down][down][enter]") however using this method I get an error "the window was destroyed during method execution". any ideas on what may be happening and what I can do to reliably select this menu option every time?14KViews0likes6Comments- 568Views0likes0Comments
address object without a unique name
Hi there, I am testing a product and have a problem where I need to click a button in a dialog box but the button does not have a unique name in the object tree. If I open the object browser when the dialog box is open I can see there are two items called Sys.Process("Designer").Dialog("Options").Button("Finish"). One is the actual finish button I want to click, the other is something which is not visible on screen. So I have a line in my code that says: Call Designer.Options.btn_Finish.ClickButton() (where that maps to the above name). When I playback the test script however, TestComplete never selects the finish button, and so the button click does nothing, the dialog box remains open and the rest of the test fails to proceed. How can I identify the actual button I want in a case like this? Attached is a screen clip of the object tree12KViews0likes2Commentsstatic variables in project suite
I have a few scripts in my project suite. When I run the whole suite at once I would like to be able to store the current time from one script and then later be able to read that previously stored time from another script. Is there a way to I can do this in TestComplete? I am writing in VBScript and know VBScript doesn't normally support static global variables...16KViews0likes1Comment