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

HI How to take screenshots of a Webpage and saving it in a external word document using QTP.

4 Answers   3i Infotech, TCS,


What is Virtual Users?

1 Answers   Crea,


suppose u have two send buttons(same width,height,font) on an application write a descriptive programming

1 Answers  


How to maintain the old scripts in QTP?

2 Answers   Olive Tech, Wipro,


What are the different recording modes and how do they work?

0 Answers  






when to start the automation?

0 Answers   Accenture,


what is keyword driven framework in qtp.

13 Answers   Cognizant, TCS,


Hi, I want to retrieve the cell data in the WebTable. For that I have defined a new test object under the browser and have given html tag and text as the test object properties. But while I try to identify it it says 'Object description is not unique'. I tried adding innerhtml, outerhtml, innertext and outertext along with the ordinal identifiers; but no use. What more properties need to be added to identify it? Also I want to enable smart identification for this object but the field is disabled in the object repository for this object alone(In QTP tools->object identification the enable smart identification checkbox is enabled). How do I enable it?

3 Answers  


1>How to get the browser name by writing the VBScript. 2>How did you used the GetROProperty and GetTOproperty .give real time scenario. 2>Give and real time ex for the bug having "High Severity and low priority"on banking doamin web based application.

2 Answers   Nous,


wt is the difference between global and action excel database in qtp?for example one action is calling another action the second action is using action excell sheet?if it is using global sheet what makes the difference?

2 Answers   Datamatics,


What is quick test pro?

0 Answers  


what type of automation is follwed in the project?

0 Answers   Google,


Categories