Forum Discussion
tonje_almending
11 years agoOccasional Contributor
Hi again!
I finally got my memory leak test to work by scripting the test. I had to convert the CPU usage and memory usage into a string
intCPU = Sys.Process("firefox").CPUUsage
strCPU = aqConvert.IntToStr(intCPU)
intMem = Sys.Process("firefox").MemUsage
strMem = aqConvert.IntToStr(intMem)
Call MemOutput.WriteLine(strCPU + ";" + strMem)
Next I also solved my loop issue:
When the close browser command is called, the process is not properly shut down. (A bug to report for Testcomplete?)
So in order for the next iteration to run properly, I had to kill the browser process.
Aliases.browser.BrowserWindow.Close
Dim browser
Set browser = Sys.Process("firefox")
If browser.Exists then
browser.Close
End if
I finally got my memory leak test to work by scripting the test. I had to convert the CPU usage and memory usage into a string
intCPU = Sys.Process("firefox").CPUUsage
strCPU = aqConvert.IntToStr(intCPU)
intMem = Sys.Process("firefox").MemUsage
strMem = aqConvert.IntToStr(intMem)
Call MemOutput.WriteLine(strCPU + ";" + strMem)
Next I also solved my loop issue:
When the close browser command is called, the process is not properly shut down. (A bug to report for Testcomplete?)
So in order for the next iteration to run properly, I had to kill the browser process.
Aliases.browser.BrowserWindow.Close
Dim browser
Set browser = Sys.Process("firefox")
If browser.Exists then
browser.Close
End if
Related Content
- 2 years ago
- 5 years ago
- 2 years ago