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 is clean sweep?
write the vb script for call to new action in qtp?
How to execute a winrunner script in quicktest professional?
What is an object repository?
How to delete an object from the object repository?
Can I change properties of a test object?
What are the different types of action?
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
How smart identification works in qtp ?
What is a reusable action?
What is the keyword view and expert view in qtp?
What are the features of quick test pro(qtp)?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.