Contributions
Using SaveFileDialogs on different systems .Net
Hi all, after recording a keyword-test (7.52) that includes the use of a .Net SaveFileDialog in a windows application, I would like to be able to run that test on various machines. Namemapping in Aliases on a Win7 system to the filename-combo looks like this: Aliases.MembranClient.dlg.DUIViewWndClassName.DirectUIHWND.FloatNotifySink.ComboBox.Edit Win XP like this: Aliases.MembranClient.dlg.Window("ComboBoxEx32", "", 1).Window("ComboBox", "", 1).Window("Edit", "", 1) How do I go about to get test working on both systems? Any suggestions welcome thanx Carsten24KViews0likes1CommentRe: Having Trouble with tc-projects under source control
Hi Russell, following David´s advice and setting svn.ignore to the files not listed in the List of Files Added to Source Code Control , we rarely have to try and resolve conflicts manually. Communication between test-team-members has to be internsive though. If person A needs to add a new keyword-test or script, an update is needed as usual, but all other team members must have committed their changes if they included adding of tests. greets c496Views0likes0CommentsWaiting for control
Hi all, I sometimes get exceptions in script-routines when the real object behind a mapped object is passed as a parameter from a keyword test. This only happens sometimes, because the object, in this case a .net DataGridView, is not completly finished loading with all it´s columns and rows. In the script it seems as if the projects "auto wait time" has no effect for a gridView´s Column or Row properties ?! The exception message: Dieser Vorgang wurde wegen Zeitüberschreitung zurückgegeben Unit: "SetVariables" Line: 8 Column: 6. I guess in English it woud translate to: "The procedure was terminated due to a timeout Unit: ...." The script-routine in question works perfect and is used from plenty of other keyword-tests. Here´tis: Sub setGridLastRowIndex( GridObj ) Project.Variables.LastGridRowIndex = GridObj.Rows.Count -1 Log.Message("LastGridRowIndex is: " & Project.Variables.LastGridRowIndex) End Sub auto wait time is high: 30000 milliseconds I would like to avoid inserting any extra teststeps or calls to yet another script from the keyword tests that use 'setGridLastRowIndex' What´s the dos and donts if one wants to avoid absolute waits? Any suggestions are appreciated. greets c.19KViews0likes1CommentRe: get the currently tested Item Name
Hi Allen, when I posted my question, I was sure I had tried out both options: run keywordTest (single), and run same test by clicking run focused item. However, it worx now, thanx for Your reply. Is it in any way possible to have the currentItem.Name always as part of the indicator text?? It would be helpful to be able to see how many tests of a test-suite the testexecuter still has to run!! greets Carsten1.4KViews0likes0Commentsget the currently tested Item Name
How can I retrieve the Name of the current test? My Project is a mix of keyword and scripttests, using vb-script. I handle the OnStart and OnStop Events and would like to access the Project.TestItems.Current.Name Property!! I have found plenty of code-examples to do this, e.g.: call Log.Message(Project.TestItems.Current.Name) Trying to do this result in an error: Object required "Project.TestItems.Current". Evaluating the expression Project.TestItems.Current returns a value of type Object however. Any suggestions are welcome. thanx. C15KViews0likes3CommentsSimulate Clicking on a certain item in MenuBar
Hello, I try to write a Test, which simulates a click on a certain Item of a menu bar. As long as I create the test by appending actions to test by OnScreenActions, the test will be successful. But the Click on the menuItem is now simulated by giving the Click-position by x- and y- position of the Click. I wold like to simulate the Click on a certain Item of the Menu, equal on which position this item is. So I wrote a Script to manage it: Function ClickMenuBar(MnuObj) MnuObj.Click("Save") End Function My keywordtest gives the MnuObj as parameter to the script. It is original the menu, that is named to be clicked, when I create the click by appending this action to test by OnScreenActions. But by simulte the click on menubar by my Script, an exception is thrown: Object required: 'MnuObj' Has someone an idea, what is wrong with myscript?16KViews0likes1CommentRe: Test Complete does not remember variable definition
Hi Alex, I believe I have a similar problem! Depending on the result in a script test I set global variables. I want to do this so I don´t have to worry about if the test-suite is executed on a developers machine or the auto-testing machine with testexecute. Here`s a code snippet: Set objNetwork = CreateObject("WScript.Network") strComputerName = objNetwork.Computername strCheckVal = "UT-" Erg = Instr(1, strComputerName, strCheckVal) If Erg <> 0 Then ' if not equal to 0 we must be on build-server Project.Variables.AppDir = SomeDir Project.Variables.DatabaseName = "Bauhaus" Project.Variables.DBCleanerDir = "C:\mut\TcDbCleaner" Project.Variables.Entwicklungsrechner = False Else ' if 0, must be developer´s machine Project.Variables.AppDir = someOtherDir Project.Variables.DatabaseName = "TCDB" SartoriusMembranTC Project.Variables.DBCleanerDir = "..\..\..\..\TestCompleteDBCleaner\bin\Debug" Project.Variables.Entwicklungsrechner = True End If It all works nicely and above Script is executed only once. The global variable "Project.Variables.DatabaseName" however is used before each individual keywordtest. It is passed a commandline-argument to a tool the cleans and inserts testdata. At some stage during the testrun that variable is set back to it´s default value and I cannot figure out when or why? any suggestions are appeciated greetings Carsten652Views0likes0CommentsRe: Having Trouble with tc-projects under source control
Hi Alexei, thanx for the answer. The most important issue in that thread seems to be which files to svnignore. Using TC Version 7.52 uses partially different file-extensions and I can`t say if the discussion on that old thread is related to keywordtests also. Here they say and I quote: >I keep tcLS outfor both the MDS and the PJS. Those are local > settings. > > The only things we source control are > > PJS > MDS > tcScript > tcAX > tcODT > tcFiles > tcObject > tcRegions > tcStores > tcASs > tcNet* (that's all the network suite files) > tcLLC (for low level recording collections) > tcLT* (all the load testing files) > and, of course, the code units. In our case, these are SD files for > the DelphiScript code units. What filetypes do You suggest we should have under source-control. Usually we have a combination of keyword and script-tests. best regards Carsten1.2KViews0likes0CommentsRe: Having Trouble with tc-projects under source control
Hello David, we have been trying. We are using Subversion and TortoiseSVN as source-control, this is not integrated in TC. We are using TC with several Named User licenses. Every user has his TC-project-Version on his own computer. The problem starts, when a user tries to update his version. Here a short description of how we tried to avoid conflicts: Developer1 (D1) opens TC-Project (tcp) and adds a keywordtest, checks in. Developer2 (D2) opens same tcp and updates. No problem. D2 adds keywordtest and checks in. D1 updates -> no problem. D1 changes his test, D2 changes his test. D1 checks in, D2 wants to checks in. Now D2 wants to update his version and gets conflicts!! The conflicted file is the tcCfgExtender. We are not able to relate the changes in that file to what has been changed in the individual tests. When D2 now resolve the conflict by Choosing the Option “Taking theirs”, D2 has no problems to continue his work on his updated version. Is it possible to take this file out of source-control or will that raise problems for using TC? Please give us some advice. greetings Carsten1.2KViews0likes0CommentsRe: Unable to select gridview-cells
Hi everyone, I have supplied a solution to click a certain cell, and found out there is a much better solution at hand: http://www.automatedqa.com/support/viewarticle/?aid=8998 However, I would like to select a specific row in a datagridview and set that as the current row. Can anyone help me with that? all suggestions welcome greetings carsten1.2KViews0likes0Comments