suppose i give valid user id and password to open an web
base application on qtp.how qtp will know itis a valid user
id and password

Answers were Sorted based on User's Feedback



suppose i give valid user id and password to open an web base application on qtp.how qtp will know ..

Answer / rajesh

Hello boss,
QTP does not know or need not know whether itis valid user
name or valid password.if u write the below written script
to open ur account it will just pass the values wat u have
given in the script and clicks on sign in (or)on submit
button .if ur username is valid u will automatically login
to ur account,if its not then u will not login to ur
account.here qtp just passes wat ever the values u have
given in the script thats it ,it cant know whether itis
valid user name or invalid username

ur script will be like this to login:
browser(" yahooo").page("yahoo").webedit("signin").click

hope u wil understand this

regards,
Rajesh

Is This Answer Correct ?    6 Yes 1 No

suppose i give valid user id and password to open an web base application on qtp.how qtp will know ..

Answer / pankajb

Very Good Question.

We have to mention in our Descriptive Programming the
accurate UserID and Password. And the We should Write the
scripting which will make validation for Wrong UserID and
Password. It is a lengthy process but, will work. There
will be around about 7 parameters in Data Table.
'Blank User Name & Blank Password
{Checked Client Side Validations}
'Blank User Name & Filled Password
{Checked Client Side Validations}
'Filled User Name & Blank Password
{Checked Client Side Validations}
'Wrong User Name & Right Password
{Checked Server Side validations)
'Right User Name & wrong Password
{Checked Server Side validations)
'Wrong User Name & wrong Password
{Checked Server Side validations)
'Right User Name & Right Password
{Checked Server Side validations)

Is This Answer Correct ?    5 Yes 1 No

suppose i give valid user id and password to open an web base application on qtp.how qtp will know ..

Answer / thomas

QTP cannot assume itself the given username and password
is correct.

1)May be the above said technique can used to achieve the
result

or

2)After entering username and password.verify the expected
window or page displays.

ex: Browser(**).page(**).webelement(**).exist = True

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More QTP Interview Questions

How to export(copy) the entire webtable from the webpage into Excelsheet? using Vb scripting

9 Answers  


For what purpose to we use object repository in a application?also explain usage of obj.repository?

3 Answers  


Friends please let me know how id following possible in QTP: Can I apply conditional loop on a bitmap/image or any other checkpoint. Like if checkpoint passes then if or Else

2 Answers  


i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade edit box through script... i told to interviewer, using Ms excel & test easily..but interviwer not happy with that answer?

2 Answers   Accenture,


we have a link in a website or webtable How can we record link in that table or site? link is not static we don't know exact location of that link? how ? if u know pls give reply with script also?

6 Answers   Cognizant, Covansys,






How to handle "Java Runtime error" popup window in the web application ? Sometimes the application throws the error repeatedly... Is there any browser setting available to disable the error ?

2 Answers   TCS,


How can I replace all the text from the QTP script with some other text.

1 Answers   Livetek,


Is it possible to change the name of a test object. I mean when we are recording the script for an object (for Ex: Username is a text field which has value "Babu",i am recording that). Then the Name of the object will become "Babu" in object repository. If i want to change "babu" as "xxxxx" .. is it possible to do? Pls help me in this .. if you didn't understand the question, pls let me know.

4 Answers  


How does QTP identifies the object in the application?

1 Answers   Crea,


Give me Example for Generic Functions in QTP Framework....Anybody please answer me..Thanks in Advance

3 Answers   BirlaSoft,


can we test an windows application using qtp

1 Answers  


In qtp, explain what is crypt object

0 Answers  


Categories