ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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?
 Question Submitted By :: Sbbceo
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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?
Answer
# 1
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 ?    0 Yes 0 No
Nani
 
  Re: 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?
Answer
# 2
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
Baba Fakruddin
 
 
 
  Re: 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?
Answer
# 3
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
Sbbceo
[SA]
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
plz explain QTP real time work( Means where you store scripts and how u access scripts next day? where those activities we are maintaining, If By usig VSS how the process in going on , plz explain briefly? Cts2
if you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP? Ordain-Solutions1
When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)  1
How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions? Motorola1
Dear Friend, I am New in QTP 10 so can any one tell me how to do QTP testing on WEB APPLICATION while writing VBScript. If Possible then Give Example how to write vbscript in QTP to test WEB Apllication. Vishal Patil  1
Tel me what was the automation testing process you followed?  2
Can anybody give the script to addsheet, add column,add values under that column in the rows?? AZTEC5
How will u declare a variable to access multiple actions? a)Dim b)Global c)Public d)Private  1
What is the difference between QTP 8.2 object repository and QTP 9.2 object repository Any body have an please give Answer Mail id: nagireddy.sn@gmail.com IBM5
what is virtual object?  2
Hi all, I am New to QTP . I am Now in critical situtaion. I want to know How to create our own object respository for our application. please say the answer with example.  3
When i use paramateriztion for tickets in flight reservation application , the tes'll run for first iteration but for the second iteration it'll give this details, but the second iteration is failed. Pls anyone clarify it. Cannot find the "Agent Name:" object's parent "Login" (class Dialog). Verify that parent properties match an object currently displayed in your application.  1
The interviewer asked me when u recorded one application.object repository properties are saved with .tsr extention. in qtp expert view wherever mouse is there that snapshot displayed in active screen but some recored script lines are not displyed in actives screen y? IBM3
In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click  2
What is Regular Expressions?  2
how qtp identifies objects of application. Intel5
unable to get item from the combobox using descriptive programing. can any one give me the peice of code to schedule the booking from one place to another using DESCRIPTIVE PROGRAMING.  1
Hello Everyone, In QTP we have one option Data Driver wizard that comes in Tools -> Data Driver. so, please tell me abtout the use of Add Value and Parameterize options available in Data Driver wizard. And also the concept of value, constants, Parameterized displayed in the wizard. Please explain by giving the example. Thanks in advance, Gaytri  2
can anybody give me the links for vb script material  1
What is Environment Variable and when we apply this in QTP?  3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com