Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to find RAM size by using QTP?

Answers were Sorted based on User's Feedback



How to find RAM size by using QTP?..

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

How to find RAM size by using QTP?..

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

Post New Answer

More QTP Interview Questions

What is the difference in between function and sub as well as give some code of both

1 Answers   Wipro,


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.

3 Answers   IBM, Questacon,


What is the maximum size of Object Repository in QTP 8.2?

4 Answers   Mphasis,


How to load object properties to object repository through scripting.give one example

7 Answers   IBM,


Key word driven framework

0 Answers   Wipro,


How many add-ins comes by default with quicktest professional?

0 Answers  


I open login gmail page after that QTP is not able to identify the object present in it then what u will do

3 Answers   Accenture,


· What should test in BANKING DOMAIN application ?

2 Answers   TCS,


Explain quicktest professional testing process?

0 Answers  


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

2 Answers  


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?)

0 Answers   IBM,


Categories