Contributions
AQtime.GetResults
Hi, When I run the following code in TC 10, and try to use AQtime to profile it. Dim appPath AppPath = TestedApps.AQtime.FullFileName ' Checks AQtime version If AQtimeIntegration.IsSupportedVersionAvailable (7) = true Then ' Creates a new project AQtimeIntegration.AQtime.CreateProjectFromModule(AppPath) ' Selects the desired profiler AQtimeIntegration.AQtime.SelectProfiler("Function Trace Profiler") ' Starts profiling AQtimeIntegration.AQtime.StartProfiling ' Runs the Test routine An action is executed here ' Gets results and exports it to XML files AQtimeIntegration.AQtime.GetResults(20000) Call AQtimeIntegration.AQtime.ExportCurrentResults("C:\SummaryResultsFile.xml", "C:\ResultsFile.xml") ' Pauses the script execution until the profiling run is over AQtimeIntegration.AQtime.WaitForEndOfProfiling ' Closes AQtime AQtimeIntegration.AQtime.Close Else Call Log.Error("You should install AQtime version 8") End If The test failed atAQtimeIntegration.AQtime.GetResults(20000), the error message isThis operation can be performed during profiling only Image 1 is the AQtime settings in TC, and image 2 is the log file. Why the test failed in AQtime.GetResults? Thanks in advance. Cheers Kai1.5KViews0likes0CommentsHow to deal with the slowness of exporting log in TestExecute
Hi, I put a thread earlier regarding a TestExecute's issue that it is very slow to export log. Is anyone by chance also encountered this issue before and have a comparatively good way to sort it out? The earlier thread ishttp://smartbear.com/forums/f74/t88443/testexecute-is-slow-to-log-a-bulk-result/ Any help is aprreciated. Cheers. Kai1.5KViews0likes0Comments- 3.2KViews0likes0Comments
Re: Concurrency testing in Testcomplete
Hi,Alexei I have sorted it out with your help! Thanks so much. Following is the psyduo code: Project.Variables.dataflowIndex = 2 Aliases.PalantirDataflow.refreshMappingInfo Project.Variables.dataflowIndex = 1 Aliases.PalantirDataflow.refreshMappingInfo I tried to apply project variable on Process and Wnd, and I found for process, I need to refreshMappingInfo, and for Wnd, I don't have to use the function. Cheers. Kai3.2KViews0likes0CommentsRe: TestExecute is slow to log a bulk result
Hi Ryan, regarding changing the format of log, i make some research and found this webpage in the TE manualhttp://support.smartbear.com/viewarticle/54772/ I think there is no way to make exporting log quicker, especially there are loads of events, warnings, messages in a result. Cheers Kai917Views0likes0CommentsRe: Concurrency testing in Testcomplete
Hi, Alexei Thanks for the reply, it is very valuable. I think I am on the track to sorting this issue out. Could you help me with the following two issues? 1. Currently I map palantirDataflow asProcess("PalantirDataflow"), I think I need to remap it asProcess("PalantirDataflow", 1). How could I remap it? 2. After I specify a value to applicationIndex, do I need to use the function refreshMappingInfo? and if i need to, should I do Project.Variables.applicationIndex = 2 Sys.refreshMappingInfo I attach 3 images which I took after setting a project variable to the dataflow process index image1: properties ofProcess("PalantirDataflow") (The other issue is for the first dataflow, the index 1 does not display) image2: properties ofProcess("PalantirDataflow", 1), we could see it becomes unmapped. image3: screen shot of name mapping editor. we could see that only the dataflow without an index has been mapped, as well as its children objects and windows. I need to reuse those existing maps. Cheers. Kai3.2KViews0likes0CommentsRe: TestExecute is slow to log a bulk result
I made a simple test: compare two excel sheets (5 rows and 4000 column). Run time: 15 seconds(TC) VS 16 seconds (TE) View the log (9200 rows): 1 second (TC) VS 3 minutes 15 seconds (TE) Summary: I think the run time between TC and TE is almost same. But time costs in exporting log (need to be verified later) and displaying the result is quite different.917Views0likes0CommentsRe: Concurrency testing in Testcomplete
hi, alexei All the child objects and windows under the two instances are exactly the same. If I read correctly of your reply, you suggest me to re-map all the child objects in Dataflow 2, so TC could distinguish the objects under different instances. There exist issues regarding this idea. 1. remapping all the objects is a very heavy work. 2. in this concurrency test, there are two instances, but in later test, it could involve more instances. Re-mapping all same objects and windows (yes, they are not exactly same, but the only difference is they are under differenct instance) is not an efficient way. So I am looking for an idea that I could switch between instances and then I could do an action on a desired instance. And since I have mapped all child objects and windows under an instance, it would be fantastic if I could reuse those maps. So is there a method that I could do like Project.Variables.applicationIndex = 1 'now the target instance is Dataflow 1, all the mapped child objects and windows are assigned to be 'under Dataflow1. TC will execute actions on Dataflow1 Project.Variables.applicationIndex = 2 'now the target instance is Dataflow 2, all the mapped child objects and windows are assigned to be 'under Dataflow2. TC will execute actions on Dataflow2 Cheers. Kai3.2KViews0likes0Comments