Hi can anyone pls suggest how to fetch username(system
login name)and system name in to qtp.I am not using TD or
QC.Thx
Answer Posted / nreddy
I got the answer.This will work.The one you posted is
You are trying to fetch from dialog box where you have user
name displayed.But this code will fetch from system.
'-----------------------
Dim sys
Set sys = CreateObject("ADSystemInfo")
msgbox "UserName: "& sys.UserName
msgbox "Computer: " & sys.ComputerName
'------------------------
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly
In qtp, explain what is qrs file?
What is the basic concept of quicktest professional?
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
tell me abt a time when u had to go above &beyind the call of duty to get the job done
wht type of User defined functions or Java Releated functions Do we write in VB scripting
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
What is a Patch in QTP?
Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...
Thanks....But can u tell me how i use the QTP for GIS with one Example...
How you can delete excel file in qtp?
What is reusable action?
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
Why qtp the best testing tool?