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

what is the difference between data driver & data driven and driver script?

0 Answers  


How many actions we can create with in a test?

7 Answers  


can i automate java web application using qtp web addin only not using java addin

1 Answers   Infosys,


Did QTP prove efficient for your project? Yes or No, explain?

0 Answers  


What is the real use of different actions in QTP

2 Answers  






How will you handle java tree in qtp?

0 Answers  


How to invoke QTP using Dos prompt ?

2 Answers   ABC,


Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.

0 Answers   SoftTech,


i m fresher iwant to know about testing what is the scope of testing field.i m aware in manual testing shall i go to automatiuon testinh directly or if any work experinc in manual testinh then only i go to manually automation testing.

2 Answers  


I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"

4 Answers  


How to take screenshots in qtp?

2 Answers   Sonata,


What is an environment variable?

1 Answers  


Categories