Contributions
Re: Drop-down box taking too long to close
Okay, nevermind. I figured out my own problem. In case anybody out there on Google comes across this problem, the solution for me was to go to Tools>Current Project Properties>Playback and change "Auto-wait timeout, ms" to a longer period of time.594Views0likes0CommentsDrop-down box taking too long to close
I am having an issue with selecting an item from a JComboBox element. The problem is that the application loads data from a database when an item is selected from the JComboBox. Typically, TestComplete waits until the drop down, which occurs when the data loading has been completed, before proceeding with the rest of the script. However, in cases where there is a lot of data to be loaded, the amount of time it takes to load all that data and close the drop down exceeds the amount of time that TestComplete is willing to wait. When this happens, an exception is thrown saying that the drop-down cannot be closed. There does not appear to be any way to override the timeout of the SelectItem() method in TestComplete to make it wait longer. How do I deal with this?17KViews0likes1CommentRe: Can't run msiexec if MSI is in certain folders
I'm running Windows 7 and TestComplete v8.60.665.7 Here is my script: Sub RunMSI() TestedApps.msiexec.Run() End Sub The TestedApps configuration I'm running for msiexec.exe is Run Mode: Debug and Parameters: "/i <file path>". I've also tried /a instead of /i, but I get the same issue. I tried running TestComplete as an administrator, but to no avail.950Views0likes0CommentsCan't run msiexec if MSI is in certain folders
I am having some issues running msiexec for automating installers. I am using msiexec as my tested app with "/i <MSI file full path>" as the parameters. When the MSI file is in certain folders in the C:\ or on a network drive, attempting to run msiexec causes a window detailing all the different kinds of options allowed for passing parameters to msiexec. From what I understand, this window typically appears when msiexec is run without passing any valid parameters to it. However, if I move the MSI file to, say, the desktop and try to run the script again, the installer launches successfully. Is there a reason why placing the MSI in certain folders will not allow msiexec to run the installer? My guess is that there are some folder permissions issues, but I really have no idea. Thanks16KViews0likes3CommentsConnected Application performance?
I was wondering if there are any known performance benefits or drawbacks related with writing connected applications for testing in TestComplete. I thought maybe there would be a performance benefit since connected applications are compiled instead of interpreted, but on the other hand it seems the commands still have to go through the OLE server to actually do anything. Any ideas?16KViews0likes1CommentTrouble with finding objects that are part of a JTree
In the tested application, there is a Swing JTree that is normally collapsed. I am able to make TestComplete click on the first node and expand it. When it is expanded, there is a JTextArea displayed for that node. I am trying to access the text that is displayed in that JTextArea. However, TestComplete refuses to recognize that the JTextArea even exists with the Find methods and even in the object browser. The object browser shows that the JTree does not have any JTextArea child objects, even after refreshing over and over. The only way I can get it to show that the JTextArea object exists in the object browser is to record a script of me highlighting some text in that JTextArea, right clicking the mapped name for the object in NameMapping, and selecting "Show in Object Browser," at which point the JTextArea child object magically appears. However, if I collapse and expand the JTree again, the JTextArea child object disappears and does not return and the mapped name no longer can find that object. Is there something I need to do to ensure that the child objects of a JTree can be found after expanding a node?14KViews0likes1CommentRe: Problem with Find method returning objects with the wrong indexes
Oh, I see. I didn't realize that Names were bad to use as property and value parameters. After using different identifiers as parameters for FindChild, I was able to successfully find and click the object. Thanks!1KViews0likes0CommentsRe: Problem with Find method returning objects with the wrong indexes
Thanks for the response Robert. However, I am fairly certain that it is finding the right object with just that single property and value because I know for a fact that there are no other objects on this screen with a similar FullName. For instance, in the FullName of the table object displayed in ObjectBrowser I wish to find, there is a part that reads: ["SwingObject"]("JPanel", "active table", 1) But in the console output FullName, that same part of the FullName reads: ["SwingObject"]("JPanel", "active table", 0) There is only one object in the entire object browser tree that is a JPanel with caption "active table", so I don't understand why it is even finding another object that has the same class and caption, but different index which doesn't even exist according to the object browser. Is there any way for me to just wildcard the index? I tried both of your suggestions and I ran into the same problems.1KViews0likes0CommentsProblem with Find method returning objects with the wrong indexes
I am writing a connected application with C# in VS2010 and TestComplete v8.6 for testing an application using lots of Java Swing components. I was trying to find a particular table using the Find method and click on the last row of the table using the ClickCell method. I also had the program print the FullName of the found object to the console. var table= Sys["Find"]("Name", "[\"SwingObject\"](\"GenericTable\", \"\", 0)", 20000, true); string test = table["FullName"]; Console.WriteLine(test); int last_row_index = table["getRowCount"]() - 1; table["ClickCell"](last_row_index, 0); However, I get an error when it tries to click on the cell because the object apparently doesn't exist. Upon checking the console output, I see that it did indeed find the object I intended to find, but when I compare the FullName that is printed on the console against the FullName that is displayed using Object Spy/Object Browser, I notice that several of the index parameters for SwingObject have discrepancies. In particular, all of the index parameters that are printed out to console are 0, which is not the case when looking in the Object Browser. I further tested by simply copying and pasting the FullName from ObjectBrowser into my code for the assignment of var table, and the code worked fine. However, this is not an ideal solution because the index parameters are not reliable as they can change from run to run and I do not wish to repeatedly change my code just to run this task. Am I doing something wrong? Please advise. Thanks, -Paul Cherng12KViews0likes4Comments