in Qtp,how to display user name and pwd (script)in data
table(global sheet).

Answers were Sorted based on User's Feedback



in Qtp,how to display user name and pwd (script)in data table(global sheet)...

Answer / deepa

Datatable("name",dtglobalsheet)=
dialog("login").winEdit("Name").getRoproperty("text")

Datatable("password",dtglobalsheet)=
dialog("login").winEdit("password").getRoproperty("text")

Correct me if I am wrong

Is This Answer Correct ?    5 Yes 0 No

in Qtp,how to display user name and pwd (script)in data table(global sheet)...

Answer / akshara

i don't know it is correct are not but using output values
it is easy do like this.
Window("text:=Login").Activate
Window("text:=Login").WinEdit("Text:=Agent Name:").Output
CheckPoint("Agent Name:")'and select praperty as text
same for password you will get

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

keyword driven framework having how many folders? explain folders in detail?

1 Answers  


What is the diff between doing parametarisation using Data Driven wizard or manually. when do we go for manual para...and when do we use Data driver wizard..can anybody answer it ..Thanks in advance

6 Answers   Siemens,


How will u integrate oracel with QTP?

2 Answers   Microsoft,


I am verifying the actual vs the input value to make sure that they been entered correctly. In the Global Sheet I have a column called Customer with the multiple names in each row and now I am trying to capture the value during runtime under the column name Customer_in_Apps. Somewhat it works but during runtime the values are being stored in each column vs each row i.e., Customer_in_Apps, Customer_in_Apps1. Automatically it add columns instead of rows. row=datatable.getsheet("Global").GetRowCount for x=1 to row datatable.getsheet("Global").SetCurrentRow(x) Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Val1=Datatable.Value("Customer",dtGlobalSheet) Val2 = Datatable.GlobalSheet.AddParameter("Customer_in _Apps",runtimevalue) If (trim(Val2)=trim(Val1)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Val1&vbcrlf& "Customer Value: " &_Val2 else Reporter.ReportEvent micFail, "Customer validation unsuccessful", "Actual Value: " &Val1&vbcrlf& "Customer Value: " &Val2 End If Next

3 Answers  


Can we write winrunner language i.e TSL in QTP tool?

0 Answers  


How to create runtime property for an object?

0 Answers  


Do we get any issues if we run the test script on differentbrowsers?what are the options we need to set in QTP?

3 Answers   CTS,


what are the parameters you are considering for object identification?

1 Answers  


Why you have to add the specific add in in QTP? My answer is to recognize the specific objects we have to add the add-in in QTP...but he asked again after adding addin how qtp recognize the objects successfully? what is there in the add-in ?

1 Answers   CTS,


I have 3 add buttons of same properties in my page but i want trigger one of them i required in my recovery scnario manager is qtp recognizes it to recovre d scnario if so how qtp recognizes it

3 Answers  


Can we do server automation by QTP? If you have any helpful links ,pls post it. Thanks Uma

1 Answers  


What does mean by Scope of Automation?n How we defined it?

0 Answers   L&T,


Categories