This is a discussion on QTP Login function within the Software Testing forums, part of the Testing category; I have to automate Login function in qtp for my project following are the conditions...... If anybody has the script ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
QTP Login function
I have to automate Login function in qtp for my project following are the conditions...... If anybody has the script for login functionality and pliz fwd it to me on hellonehasahu@yahoo.com
Enter valid user id and valid password and click on login button Enter valid user id and Invalid password click on login button Leave user Id blank and enter valid Password click on login button Leave User Id and Password field blank and click on Login Enter Invalid User id and Invalid Password click on login Please fwd me the script for this ..... thanks in advance |
|
|||
|
HI,
Functions used when we are testing a Scenario not for a single module. the above ex given by u are belogns to LOGIN module only if you want to test scenarios like LOGIN -> CHECK MAIL -> LOGOUT LOGIN-> COMPOSE MAIL -> CHECK MAIL ->LOGOUT LOGIN -> ADD NEW CONTACT -> CHECK IN CONTACTS -> LOGOUT for the above scenarios we have to CREATE two FUNCTIONS 1 - for LOGIN 2 - for LOGOUT clear |
|
|||
|
Hi,
we never use recording method a scenario in real time. do u have any real time experience in qtp? i think u didn't have in real time there will be no question of recording and play back method. Acc to the test case Tester / Sr. Tester perpare the test scripts in notepad. just use those scripts for testing. Main use of function is REUSABILITY OF script. Functions never be prepared in recording method. Clear? |
|
|||
|
Quote:
FYI I have a cerification from HP in QTP.. the quickest way is to record the action you want to perform, and wrap it in a function |
|
|||
|
Quote:
|
|
|||
|
hi,
There is no question of knowledge in qtp or Certification. First u answer the folowing questions ??? 1) You run qtp directly or using Quality Center? 2) execute test scripts individually or whole scripts at a time? 3) what are the main parts and requirements in a test script and at the time of execution? 4) Exception Handling is available in qtp. If u r going to test a scenario first time using qtp how would u know that there will be an exception? by answering the above questions u will be realise .... ok bye |
|
|||
|
--------------------------------------------------------------------------------
Browser("Browsername"). Page("Pagename"). Webedit("TxtusrName"). Set U.Name Browser("Browsername"). Page("Pagename"). Webedit("TxtPwd"). Set Pwd Browser("Browsername"). Page("Pagename"). Webbutton("OK"). Click set pwd may expose ur password , So setsecure is more adequate here. And we should use descriptive oject for these 3 objects __________________ |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) | Steve Summit | Tech FAQ | 0 | 06-15-2004 07:00 AM |
| comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) | Steve Summit | Tech FAQ | 0 | 06-01-2004 07:01 AM |
| comp.lang.c FAQ list Table of Contents | Steve Summit | Tech FAQ | 0 | 06-01-2004 07:00 AM |
| comp.lang.c Answers to Frequently Asked Questions (FAQ List) | Steve Summit | Tech FAQ | 0 | 06-01-2004 07:00 AM |
| comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) | Steve Summit | Tech FAQ | 0 | 05-15-2004 07:00 AM |