Forum Discussion

rajeshthomas's avatar
rajeshthomas
Contributor
14 years ago

Cannot trace GDI Objects from Test Complete

Hi


I
am a Test Engineer, recently moved to automation Testing. Coding was alien to
me , but currently due to Automation Testing I m learning VB scripting.
Sometime I get stuck at some point in scripting and with help of reference and
browsing I up-come those. But for the current below problem I tried a lot but
could not find a solution. Please assist.


 


 


Scenario
1


1.       I need to monitor the resource usage
like Memory Usage, Threads Count, Handles and GDI Objects in my Testing and if
the utilization cross the given limit it prompts in the log message. In this
part I am successfully retrieve data from Task Manager for  Memory Usage, Threads Count and Handles. But
I cannot retrieve data for GDI Objects.


 


' Checking Memory Usage


  If
Sys.Process("apps").MemUsage < 100000 then


  Log.Message("Memory Usage are within
the breakpoint")


  Else


  Log.Error("Memory Usage exceeds the
breakingpoint." & " "& "The count is " &
" " & sys.Process("apps").MemUsage)


  End
IF


 


  
' Checking Virtual Memory


 


  If
sys.Process("apps").VMSize < 1000000 then


  Log.Message("Virtual Memory are within
the breakingpoint")


 Else


  Log.Error("Virtual Memory  exceeds the breakingpoint." & "
" & "The count is " & " " &sys.Process("apps").VMSize)


  End IF


                               


                                                Now
I don’t know what name should I have give in the place of XXXX


                           If sys.Process("apps").”XXXX”


                                                               


 


                               


 


 


Scenario
2


2.       Our company product is very large
semi-con software. This software tends to break(sometimes) in long run / repeat
run. What we are looking is “ we are planning to run Test Complete during
weekends, i.e start it on Friday evening and it must keep running in loop and
on Monday morning we need to see the result. I heard this is possible by have a
external application or by using .bat files. My question is can we do this in
scripting (in Test Complete). Can u assist me in the script. (note: we have
almost 200 testcases that needed to be run in loop and generate test report)