ContributionsMost RecentMost LikesSolutionsRe: Basic Asynchronous MethodThis worked function main() { var NotepadWindow = Aliases.notepad.wndNotepad.Edit; var Obj = Browsers.Item(btIExplorer); NotepadWindow.SetText("Hello, world!"); var CallResultObj =Runner.CallObjectMethodAsync(Obj, "Run" ,"http://smartbear.com/") ; NotepadWindow.SetText("So long!"); } Basic Asynchronous MethodHow do I fix this so it will work? I am trying to get the browser to open up asynchronously. function main() { var NotepadWindow = Aliases.notepad.wndNotepad.Edit; var CallResultOb=Runner.CallObjectMethodAsync(Browsers.Item(btIExplorer,"Run","http://smartbear.com/") ) ; NotepadWindow.SetText("Hello, world!"); } Re: Organizing Test ScriptsI think it's best to consider how you would organize any set of programs. Current thinking is to break up just about anything into reusable packages of around 10 lines, and assemble these into larger script units, building size as you go. The scripts get too long to follow if they are too big. My practical limit is how much code I can see on my screen at a time, so that I see everything that I am working on at once rather than having to rely on my memory. Scripts are organized by subdirectories. One script file can also contain a number of sub scripts. I put a numbered index of what scripts are in a file in a header at the top of the file and number the scripts so I can quickly go down through a file and find what I am looking for. I also have a MiscFunctions file that has scripts common to all other functions and various specialized MiscFunctions that server related groups of files. The key is to not repeat yourself in coding.Re: Variable Number of Parameters in Script testI'm wondering if you tried using an array of parameters.Re: Is there a way to speed up saving a file? (Function attached as copied from script file)I finally got around to working on this. I looked at the writeup on the method you suggested and I am puzzled. It says "It is not recommended to use this method to perform asynchronous calls to methods provided by TestComplete (that is, to methods that are provided by TestComplete but not by the application under test)." Isn't the save method a method provided by TestComplete? Should I disregard this? Intermittent Click ResponseI have an object that is always found and always clicked on as reported by the log and Log.Messages, but the application does not always respond as if it is clicked on. I am using the following script. The FindOrderUnitIcon() definitely returns the correct object. var OrderUnitIcon =MaximoMiscFunctions.FindOrderUnitIcon(); Delay(1000); // I have more success with this here than not OrderUnitIcon.Click(); Log.Message("OrderUnitIcon clicked"); // this is in addition to the autolog If I manually click on the OrderUnitIcon it always works. Other icons work without any problems. How can I get it to reliably click? Creating An Alias Directly from Object SpyIs there a way to modify the mapped name in Object Spy directly rather than having to find it in the Alias tree in the NameMapping and then drag it there?Custom TestLog SelectionsThe testlog provides us with Error, Warning, Message, Event and Checkpoint selections. Is there a way to add custom categories, such as 'Custom Error' that would not be as severe as an error, not as mild as a warning, and be a separate category from a Checkpoint? We can have something happen that is technically not wrong with the script, so it is not an error. It is not a checkpoint, because we are not checking something. We want to be able to view only these events, which may not necessarily be events either. We want such items to be checkable on the same menu bar on the Test Log that the other selections listed above are on. Among these items are custom exceptions that are handled internally in the script that do not appear as errors in the test log. Certain values may also be obtained that we want to be able quickly find in the script.Re: Spinner on a FormThanks, Tanya. You might want to consider widening it to accept any icon (.jpg,.gif, etc.). Re: Blank ObjectI just noticed this in the TestComplete Help: function Test() { … var EmptyObject; // Creates a stub object EmptyObject = Utils.CreateStubObject(); … } A stub object always has Exists=false. Would this be a better approach?