I need to know how to Automate a Username and Password for
a Web-based product? I'm scripting 3 different types of
surveys but each Survey requires a Username and Password
which is always the same. I can I do this using QTP?
Answers were Sorted based on User's Feedback
Answer / nani
Hi,
By creating functions you can solve this one.
just create function for login. and u can use this function
where ever you want.
Nani
| Is This Answer Correct ? | 1 Yes | 0 No |
go for Functions or Actions to reuse where ever u want.
eg. ObjectHierarchy.winedit("User Name").Set "Fakruddin"
ObjectHierarchy.Winedit("Password").Setsecure "97841234"
ObjectHierarchy.Winbutton("Login").Click
Save this in one Action as Reusable action and use where
ever u want. OR
Save this in Notepad and save with .vbs extension then go
for resources tab and add by showing particular path of
that function
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sbbceo
OK this is great so how do I have each script Call this
action after I've created it? Also if I run several scripts
in Small batches can I make each one in the Batch Call this
action? Does this Reuseable action need to be call in a
certain place within each script or does that matter?
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we do this one ? at runtime qtpwindow and browser aren't disply on monitor (or) aren't visible on desktop?how?
How to make arguments optional in a function?
what are the difference between qtp8.2 to 9.0 surya
can u store QTp frame work folders in VSS? If Not where u store those?
How to retrieve the data from database?
Why do we use breakpoints in QTP?
How many tables r created during the recording in QTP?
What are the different types of action?
Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?
what is the general issues faced while using automation tool Qtp9.0
How to call .vbs funtion , Library files in QTP? plz Explain indetail(chandana)
in flight reservation application. when i entered flyto combobox as london. and i have to check this london is present in flyfrom combobox.give me the code with good explanation. extention to this question. at each iteration i have to put(WRITE) the fly from and fly to city in database table