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
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 |
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 |
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 |
Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?
Hi, I am new to QTP testing and was exploring the frameworks used for automation. I wanted help in writing various scripts and files for keyword driven automation like 1. Control File 2. Test Case File 3. Startup Script 4. Driver Script 5. Utility Script . etc It would be great if someone can give help in this context ... Thanks
1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?
Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.
how many wayes we do the parameterization?
I want to know how to execute the descriptive programming in qtp for the webedit object which does not contain attached text property. but i have checked it with name and html id property. Even though it is not executing. it is giving error in object's physical description.
some times we write user define functions.where we write main and sub program,how,where to insert the functions in qtp?
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
What is smart identification in QTP?
Hi All, I need 5 yrs exp manual and automation testing using QTP sample resume. is there any body having please send me my mail id is bjr@aol.in Tahnks in Advance
How to change the scripts from Per-Action object repository to shared object repository
Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.