Contributions
How to extract the zip files present in a folder using TestComplete
There are 2 methods I have used for doing the above action. Method1 : I have used below method to get the zip file name from the folder but I am unable to Right-Click on that zip file to unzip it using 7-Zip or windows Extract. Code : var folderInfo = aqFileSystem["GetFolderInfo"]("Path of folder"); Log["Message"]folderInfo["Name"]); // Folder name var subFolder = folderInfo["Files"]; var zipFileName = subFolder["Item"](0); // Zip file name /* What method to use here now for Right-clicking? */ Method2 : By recording, I get the below code and it is extracting the zip files, this is hard coding method but I want generalized method so that I can unzip the same file from the any location. function Test() { w1 = Sys["Process"]("Explorer")["Window"]("CabinetWClass", "Reserved")["Window"]("ShellTabWindowClass", "Reserved")["Window"]("DUIViewWndClassName")["Window"]("DirectUIHWND")["Window"]("CtrlNotifySink", "", 3)["Window"]("SHELLDLL_DefView", "ShellView")["Window"]("DirectUIHWND"); w1["ClickR"](165, 35); w1["PopupMenu"]["Click"]("7-Zip|Extract Here"); } Kindly provide with your useful information and helip regarding this issue. Thanks and regards, Aamer Iqbal4.5KViews0likes1CommentProblem in comparing Japanese strings in Win 7 and properly working in Win XP OS
Our application displays GUI strings in Japanese language. In Win XP PC : If we compare those Japanese strings with already saved Japanese strings then the comparison is PASSING and it is printing those Japanese strings in Test complete logs taken from GUI and from saved strings. In Win 7 64Bit PC : If we compare those Japanese strings with already saved Japanese strings then the comparison is FAILING and it is printing as "????" instead of actual strings both from GUI and already saved Japanese strings in Test complete logs. We are using aqstrings.compare() for above comparison. What must be the root cause for above problem?? Our application displays GUI in Japanese properly for both Win XP and Win 7 PCs. Both the PCs have language pack installed in it.9.5KViews0likes1CommentRe: Getting problem as "Unspecified" Error and FindAllChildren taking more time
Hello Tanya, I have created individual thread for above two problems. Please go through them and provide with your answer. Our automation is hampering a lot due to these problems. Kindly provide with the best solution as early as you can. Thank you,766Views0likes0CommentsFindAllChildren taking more time
Problem: FindAllChildren taking more time. 1. We are using FindAllChildren for fetching the child object of screen controls but it is taking more time and reducing performance. 2. Appx. 7 to 9seconds for each control and we are havingmore controls to cover in our automation. 3. Is there any way to reduce the time for the same or any other way to find the object we want to access? For example : parent1. child1 parent2. child1 As both the child are same but the parent is different, we used findAllChildren to find the child related to particular parent even though their child namesare repeated 'n' number of times. Kindly provide with your best solution for this problem. Thank you,11KViews0likes1CommentGetting problem as "Unspecified" Error at while loop
Problem : Getting problem as Unspecified Error at while loop (at different while loop) in our script. Description : refExcel is our excel file object. Following is an example: var refExcel = DDT["ExcelDriver"]("Sheetname"); while (!refExcel ["EOF"]()) { } 1. Problem dosen't occure all the time and at the same while loop. 2. We are using the following code for closing the driver : refExcel["Close"]; DDT["CloseDriver"](refExcel["Name"]); Kindly provide with your best solution for this problem. Thank you,13KViews0likes2CommentsGetting problem as "Unspecified" Error and FindAllChildren taking more time
Problem 1 : Getting problem as "Unspecified" Error at while loop (at different while loop) in our script. Description : "refExcel" is our excel file object. Following is an example: var refExcel = DDT["ExcelDriver"](Sheetname); while (!refExcel ["EOF"]()) { } 1. Problem dosen't occure all the time and at the same while loop. 2. We are using the following code for closing the driver : refExcel["Close"]; DDT["CloseDriver"](refExcel["Name"]); Problem 2 : FindAllChildren taking more time. We are using FindAllChildren for fetching the child object of screen controls but it is taking more time and reducing performance. Is there any way to reduce the time for the same or any other way to find the object we want to access. For example : parent1. child parent2. child If both the child are same but the parent is different.Solved13KViews0likes2Comments