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 |
What is the difference in between function and sub as well as give some code of both
In QTP for .net application which plug in is used? For Java Application which plug in is used ?
2 Answers AppLabs, Fraze Tech,
how will b the questions if we keep one QTP project in CV.please tell me iam attending an interview.
What is the maximum size of Object Repository in QTP 8.2?
How to load object properties to object repository through scripting.give one example
Key word driven framework
How many add-ins comes by default with quicktest professional?
I open login gmail page after that QTP is not able to identify the object present in it then what u will do
· What should test in BANKING DOMAIN application ?
Explain quicktest professional testing process?
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?
Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)