How to test login page by using QTP
Answers were Sorted based on User's Feedback
Answer / ramani
Call Login( x, y)
Function Login(strUserName, strPassword)
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury
Tours").WebEdit("userName").Set strUserName
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury
Tours").WebEdit("password").SetSecure strPassword
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury
Tours").Image("Sign-In").Click
End Function
| Is This Answer Correct ? | 9 Yes | 3 No |
Answer / jason
Assuming its an web based application :
1) Invoke the application thru your browser
2) Add objects to OR
3) You can next copy this current action to another one,
can do that by using " Copy the existing Action "
4) In expert view u have 2 actions
5) The first action in keyword view, should be like this :
if ( Browser(..).Page(..).exist) then
{
type ehat do u wanna do in ur login page ;
}
else
In the action column of keyword view for second action,
choose "Activate".
In your expert view , it wiill look like this.
{
Browser(..).Page(..).Activate
// rest of the statements.
}
Next u can check for Username and passwords fields,
handling the negative scenarios also.
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / sreenivas
Invoke Login application through URL by using
System.url "URL"
Capture userid,password,login object properties in to the
Object Repositiry.
Design the test script to enter values in to object Objects.
Wirte a condition for dipslaying successfull message or
Error message and capture that message dispaly it in Test
results window.
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / sbbceo
In this case above if I have 3 surveys that are different
but they all require the same username and password to log
on how do I automate the username and password for all of
them using QTP? They all require the username and password
at the same point and the username and password are the
exact same for each web-based survey.
| Is This Answer Correct ? | 4 Yes | 4 No |
Answer / bala
To test the login page, User need to consider the following
factors
1. What are the field data needs to be given like User id,
password etc.
2. Do we need to do positive or negative testing or both
3. Preparing the list of different combination of test data
After that the below step will do to test the login page
1. Open the browser or Windows application
2. Apply the chckpoint to verify the correct page is loaded.
3. Enter the User id, password and other field values
4. Click the login button
5. Home page is opened
6. Apply the chckpoint to verify the correct page is loaded.
7. Click log out
Step 3 - 7 needs to be parametrized to test with different
combination of data.
Hope this helps to understand the login test
| Is This Answer Correct ? | 4 Yes | 4 No |
Answer / adlajaipal
'for example:
systemutil.run "Path of u r login page URL"
than check for username and password
like:
Browser("micclass:=Browser").page("micclass:=Page).webedit("name:=txtusername).set
xxxxxx
Browser("micclass:=Browser").page("micclass:=Page).webedit("name:=password).setsecure
xxxxxx
Browser("micclass:=Browser").page("micclass:=Page).webutton("name:=Button).click
| Is This Answer Correct ? | 2 Yes | 10 No |
some times we write user define functions.where we write main and sub program,how,where to insert the functions in qtp?
when we enter url,one page should open.write a vb script ,that page is open or not
2 Answers Blue Chip India, Persistent,
What is the Major difference between QTP ; LoadRunner? If u want to test an 1. erp module which automation tool you would prefer and why? and 2. for web application, which tool and why?
What are the types of data tables in qtp?
suppose i have one datatable in my datatable in 2 nd row 3rd column one link is ther i need to validate that link how do u do this?(wipro)
give me the code to save all messages of inbox of gmail into a folder and notepad
when we apply the daily build each and every day,the property may change in the application.so that the created script is not reusable in winrunner and qtp.for ex for date field it is taken dtpicker.at another time it is taken some other name.how can i solve it.
What is the differences between image check point and bit map check point?
What are the Features & Benefits of Quick Test Pro ?
Hoe we can export TEST RESUALT IN to XL-sheet?
how you update scripts in qtp?
how to write code for to select all the checkboxs in the gmail i wrote code for my question but it didn't works any body suggest what wrong my code my code is Set chkboxDesc=Description.Create() chkboxDesc("type").value="chekbox" Set chboxcollection=Browser("name:=Gmail .*").Page("title:=Gmail .*").ChildObjects(chkboxDesc) For i=0 To chboxcollection.count-1 chboxcollection(i).set "ON" Next i was getting general run time error pls help me i am in learing stage