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 type of frame work used in your company?

2 Answers   HCL,


What is descriptive Programming in qtp.

5 Answers  


I have the script like this: Browser("Philips Web Login").Page("Philips CL DMS2 Application").Frame("ScopeFrame").Link("DC3701737 (Active)").Click in which the value "DC3701737" will get changed and i have to use the same value in so many places. If i want to get that value "DC3701737" in to a variable, how? pls let me know if you didn't get the question. Help me out in this.

2 Answers  


How to maintain the old scripts in QTP?

2 Answers   Olive Tech, Wipro,


What is the script for database check point, bitmapchek point, regular expression ?

0 Answers  


This is the script generated by qtp plz can anyone write the same script using descriptive programming plzzzz guys do answer. Browser("orkut - login").Page("orkut - login").WebEdit ("Email").Set "rgovard" Browser("orkut - login").Page("orkut - login").WebEdit ("Passwd").SetSecure "47525d8be4926ea2f6e96b9a3f7472b6ae38" Browser("orkut - login").Page("orkut - login").WebButton ("Sign in").Click Browser("orkut - login").Page("orkut - home").Link ("Logout").Click Browser("orkut - login").Page("orkut - login").Sync Browser("orkut - login").Close

6 Answers  


Can anyone tell me about "Step- By Step Paramterization". among the two paramaterizations, Step by step and Parameterize All, which one is mostly used.

0 Answers  


Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?

4 Answers  


for example u can take ebay or plifcart online shoping web application--------- write acode in vbscript in qtp---- search box and write (iphone6)and click on go button then opened diff prise iphones in next page but u can select 30,000 to 90,000 list pls write code? 

2 Answers   FFASVA, Genpact, Wipro,


What In-string function will do?

1 Answers  


How can we close all webbrowsers which are opened in out desctop?

8 Answers  


How do you test the different ads displayed in the Inbox home page of Yahoo. Once u login Yahoo mail, in inbox page there will a banner, where different ads are scrolling, how do you test that using qtp?

2 Answers  


Categories