Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 do check the links in a webpage ?

7 Answers   Accenture, Wipro,


What is the purpose of loading qtp add-ins?

0 Answers  


Hi, It is HR question. What are the qualities you like and dislike in your Project Manager?

2 Answers   TCS,


what is the use of descripting programming?

8 Answers   Ordain Solutions,


How can we test an XML using QTP? I have been to an interview, where they have given me an XML which had 15 values and they have given those values on a separate page. They asked me to write a QTP script to check the XML is having those particular 15 values.

2 Answers  






What is the use of "Registeruserfunc" when should we use it? Note:Please do not copy paste the date from QTP help. I tryed it.But I don't Understand where should we use exactly.

5 Answers   Livetek,


what r the executing modes in QTP

2 Answers  


What is dynamic arrays

1 Answers   Patni,


What are the file extensions for per-action, shared object repository files and what is the extension for library files?

4 Answers  


What is the concept of hooking in QTP?

1 Answers  


What are the benefits of qtp?

0 Answers  


What are the views available in qtp?

0 Answers  






Categories