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...


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

Answers were Sorted based on User's Feedback



Hi can anyone pls suggest how to fetch username(system login name)and system name in to qtp.I am n..

Answer / anonymous

I think, this works...
But make sure before using it...

xx = Dialog("Login").WebEdit("userName").GetText
'GetText gives you the text from the Edit Box- I think...
msgbox xx

Is This Answer Correct ?    0 Yes 0 No

Hi can anyone pls suggest how to fetch username(system login name)and system name in to qtp.I am n..

Answer / siva reddy (us)

var=dialog("Login").winedit("username").getvissibletext

Is This Answer Correct ?    0 Yes 0 No

Hi can anyone pls suggest how to fetch username(system login name)and system name in to qtp.I am n..

Answer / 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

Hi can anyone pls suggest how to fetch username(system login name)and system name in to qtp.I am n..

Answer / venkatesh babu

MsgBox Environment.Value("UserName")

Is This Answer Correct ?    0 Yes 0 No

Hi can anyone pls suggest how to fetch username(system login name)and system name in to qtp.I am n..

Answer / pavani prasad

Hi N Reddy,

we use use environment variable for fetching username
(system login name).

u can try this

msgbox environment.Value("UserName")

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What expansion of "MIC" in MICPASS (TEST ReportPAGE)

11 Answers   TCS,


I have below user Defained function function AddTwo(ByVal a, ByVal b) Dim Ans Ans=a+b MsgBox Ans End function Now my question comes here...from given below methods which method is right to call above function?Which is Wrong and why? 1. AddTwo(2,4) 2. Call AddTwo(2,4) 3. AddTwo 2,4 4. Call AddTwo 2,4

1 Answers  


What is the quicktest professional testing process?

0 Answers  


what is frame work of qtp?

4 Answers   ITC Infotech, KPIT,


What is Object Spy in QTP?

1 Answers   Crea,


what is the difference between image and bitmap check point

3 Answers  


anyone can explain the following concepts. 1.diff b/w Linear and modular framework 2.diff b/w keyword and hybrid framework

1 Answers  


What is the differences between image check point and bit map check point?

0 Answers  


when a test case is written how u test using qtp

0 Answers   Satyam,


Idid my qtp course in 2007 june in mind Q i for got to use this tool ,i want to mention in my resume about this ,how can i rectify this ,pls give me any idea .

2 Answers   Quest,


What is action required by QTP if a popup message is coming in exsisting script and now it is not coming. The script is having code to deal with popup message now when we run the script now the popup i snot coming according to new build, instead of changing the code what we can do?

7 Answers   Verizon,


Hi..friends can anybody write the script for this question... Am having some 20 nos of links in a web application, i want to click some 5,13 & 17th links. So please....can anybody give the answer....??? -->Hani<--

4 Answers  


Categories