ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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
 Question Submitted By :: NReddy
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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
Anonymous
 
  Re: 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
# 2
var=dialog("Login").winedit("username").getvissibletext
 
Is This Answer Correct ?    0 Yes 0 No
Siva Reddy (us)
 
 
 
  Re: 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
# 3
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
Nreddy
 
  Re: 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
# 4
MsgBox Environment.Value("UserName")
 
Is This Answer Correct ?    0 Yes 0 No
Venkatesh Babu
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
the presentation layer of my application is built using VB 6.0 and a series of C++ dlls and components. We do not use Java, VB.Net, C## or any other component that can be decompiled. We are automating the application using HP Quick Test Professional. It is not reconginizing the combo boxes, tabs etc.... Could you please suggest, whether QTP supports C++ dlls and components or not...if yes, could you please guide me, how to overcome this situation. Can we install any special add-ins for this C++? .When we are performing the recording/execution, the application becomes very slow. Your quick response will be highly solicited in this regard. Wipro1
What are the different types of Database checkpoints in QTP? when they are used?  1
how to create the varibles and how these are connect to qtp? plz tell me  2
i want know iam working 2+ exp in QTP can i do performence testing (eg:loadrunner) yes r no? IBM6
for a test in QTP i had choose the object repository as shared.after completion of some days i want to conduct the same test again,now the question is HOW TO LOAD THE OBJECT REPOSITORY. is it possible by descriptive programming.could any one tell me how many ways we load it and what is the process? Logica-CMG12
suppose i can done the project in automation tool with QTP in that time what i can say?  3
Suppose there are 100 links in a web page and the number of links will be changing dynamically from time to time. I need code such that every time i had to click on the last link of the web page. Virtusa2
how to identify the user defind varibles? plz tell me  1
I want to open a Google page without recording a test and i do not want to use system.Util.run command as well how do i do this? IBM10
how to write testcases for web based insurance,from the script by using qtp.  1
How to handle recovery scenario for a application crash.write script for this. Polaris2
Define QTP ? TCS4
what is recovery manager and recovey scenerio? BirlaSoft2
Greetings friends , Hope all of you are doing well. When I run a test, is it possible for me to for me to take each row from the data table , once at a time. In other words,if i have 10 rows in the global data table, say data1,data2, data 3...and so on up to data10. Can I have the value of data1 when I run a test, and next time when I run the same test (say next day), it should skip data1 as it has already used it and go directly to data 2 ??? Would be great if anybody can help me out know in this issue. Thanks & Regards !! CTS4
what are recovery management techiniques? BirlaSoft2
what is the default ordinal identifier.what are the send keys in qTP.  1
How do you test siebel application using qtp?  1
Tel me what was the automation testing process you followed?  2
scalability testing comes under in which tool? EpuraTech4
What is keyword view and Expert view in QTP? Ordain-Solutions5
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com