How to find RAM size by using QTP?
Answers were Sorted based on User's Feedback
Answer / kishorem89
Dim Wshshell,fso,fo,l
''Open the CMD Prompt
set WshShell = CreateObject("WScript.Shell")
SystemUtil.run "cmd.exe"
wait(2)
'cmd="systeminfo |find"
'cmd1="Total Physical Memory:"
'WshShell.SendKeys cmd &" "&"""" &cmd1&""""
WshShell.SendKeys "systeminfo |find"&" "&""""&"Total
Physical Memory:"&""""&">D:\Sys.txt"
WshShell.SendKeys "~"
wait(3)
WshShell.SendKeys "exit"
WshShell.SendKeys "~"
Set
fso=createobject("scripting.filesystemobject")
Set
fo=fso.opentextfile("D:\Sys.txt")
While
fo.AtEndOfStream<>true
l=fo.readline
MsgBox l
wend
fo.close
set fo=nothing
set fso=nothing
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / uday
You can use SystemMonitor utility object.
You can find the info at below link.
http://hpsqtp.blogspot.com/2012/02/how-to-find-memory-usage-and-processor.html
Another way is using Windows WMI Service.
You can find details at below link.
http://hpsqtp.blogspot.com/2012/11/how-to-find-cpu-and-memory-usage-using.html
| Is This Answer Correct ? | 1 Yes | 0 No |
How to load an object to a object repository at RUN TIME ?
Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?
User defined function in QTP
hello, i just started searching for a job on QA ,need QTP software full version.plz can any body help me...my email id is padma_ub@yahoo.com.thanks in advance.
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?
8 Answers INCA, Infosys, Logix, SLK Software, Symphony, Wipro,
can any body pls mail me latest FAQ's in QTP to my mailid btrintra@gmail.com....Thanks in advance
How to count the no of objects in XML file(QTP)
how to evalute defects in QTP script?
what is the difference between image and bitmap check point
Which is the best testing institute for QTP training in Hyderabad.
In QTP how to interact tool and application build?
what are the different types of framesworks in QTP?what is the keyword driven framework?