Contributions
Re: 2 instances of the application running - adressing the right windows
Hi, If there are multiple instances open, you should know on which one you want to perform the action. That you can capture using index. p = Sys["Process"]("Name",1 or 2 or indexnumber) i guess this is what you are looking. regards, Saurabh930Views1like0CommentsRe: Object listed multiple times in the Object Browser
Yes it happens. It create multiple objects but you can handle this by cheking the property Visible. The Visible should be true for the one exists and false for others. If it is true for more than two same controls, then definitely this is a problem. regards, Saurabh901Views0likes0CommentsRe: Getting checked value from Checked List Box
Hi Farhan, Have you tried aqObject.GetPropertyValue function. Below is the sample code from TestComplete. I hope this is what you are asking for. function GettingPropertyValue() { // Launches NOTEPAD.EXE with the C:\Hello.txt command line parameter TestedApps.notepad.Run(); // Specifies an object that corresponds // to NOTEPAD's window var wndNotepad = Sys.Process("notepad").Window("Notepad", "Hello - Notepad", 1); var Obj = wndNotepad.Window("Edit", "", 1); var PropValue = aqObject.GetPropertyValue(Obj, "wText"); // Posts the value of the specified property to the test log Log.Message(PropValue); // Closes NOTEPAD's window aqObject.CallMethod(wndNotepad, "Close"); }494Views0likes0CommentsRe: Howto export results in error state
Hi Konrad, There is a concept of description.xml which is used to call some fucntions at the start and end of execution. You can use this feature to export all the logs after the execution is finish at project Suite level. I have never used this approach but you can get some help from http://support.smartbear.com/viewarticle/12104/ Also can add a help within forum itself. Regards, Saurabh1.9KViews0likes0CommentsRe: Howto export results in error state
Then Pleasetry with theOnStopTest Event. This event is called when an testcomplete stops executing a test. This event is workingfine for me. Please create a script file say common and add the event function GeneralEvents_OnStopTest(Sender) { Log["Message"]("Event is caught"); Log["SaveResultsAs"]("C:\Testlog.mht",2); } //USEUNIT Common [ add a reference to common script file in your orignal script] The above event will be called when you execution is over. Please see the above lines of code works for you. Note: The above code is in C# script. You have to modify it to work it for Vb script. regards, Saurabh1.9KViews0likes0CommentsRe: Is it possible to find Parent?
Thanks Irina. The information helps. But using this property i can find immediate parent only. Is it possible to find the parent at any level or I just have to traverse thru loop to reach the exact parent? I am using a WPF application, and when i am using var value= aqObject["GetPropertyValue"](ObjName,"ToolTip") function, I am getting Junk value in the output. Please see the attached snapshot. On doing a mouse hover on the log message, i can the exact value present in the tooltip(Available in the same snapshot) Do you have any solution, so that i can get the same output what is present in tooltip. I assume this junk value in the output is a new line character which testcomplete is not able tor ecognize? regards, Saurabh3.3KViews0likes0Comments