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



I need to know how to Automate a Username and Password for a Web-based product? I'm scripting..

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

I need to know how to Automate a Username and Password for a Web-based product? I'm scripting..

Answer / baba fakruddin

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

I need to know how to Automate a Username and Password for a Web-based product? I'm scripting..

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

Post New Answer

More QTP Interview Questions

suppose i have one datatable in my datatable in 2 nd row 3rd column one link is ther i need to validate that link how do u do this?(wipro)

4 Answers   Fidelity, Wipro,


What is the main differece between QTP 9.0 and 9.2

1 Answers   VeriSign,


What criteria do you use when determining when to automate a test or leave it manual?

2 Answers  


in order to start automation testing what we should require (entry level to automation testing)

2 Answers  


Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.

0 Answers  


Name the properties you would use for identifying a browser and page when using descriptive programming?

0 Answers  


Explain how you can find the absolute value of the number in qtp?

0 Answers  


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

0 Answers  


how can i pass a "cript"as a parameter in to a function

0 Answers  


What are the advantages of qtp?

0 Answers  


How to load object properties to object repository through scripting.give one example

7 Answers   IBM,


how you have used object libraries? plzzzzz do answer

1 Answers  


Categories