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
What are the types of object repositories? Which one is you using?
Can we use index on view?
How qtp identifies objects?
What are advantages of test automation?
How may types of defects identify application or your currently working application?pls give me answer..
What is system testing and what are the different types of tests you perform in system testing?
what is the advantages and disadvantages of using functions instead of re usable actions
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
what is run action?
In qtp, explain what is qrs file?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
What is keyword driven framework?
How to check feasibility of the appliction?in automation testing?
How will you declare a variable in qtp?
How to export quicktest professional results to an .xls file?