Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


i have to pass the testcases into userid anf password of
gmail login page using functions you can take your own
testcaseslike
userdid should take only lowerletters it should not take
special charactors and uppercase letters and password should
take only numericvalues it should not take alphanumeric and
alphabets

Answers were Sorted based on User's Feedback



i have to pass the testcases into userid anf password of gmail login page using functions you can t..

Answer / m.hemakumar

Login_Info "asaddd","1531565"

Public Function Login_Info(UserId,PassWord)

Browser("title:=.*").Page(("title:=.*").WebEdit
(oEdtUserid).Set UserId

Browser("title:=.*").Page(("title:=.*").WebEdit
(oEdtPassWord).Set PassWord

End Function

Note: 1)where oEdtUserid and oEdtPassWord are descriptive
objects
2)Login_Info "asaddd","1531565"
when function is not returning any value
3)Login_Info ("asaddd","1531565")
when function is returning value
Ex:
Val=Login_Info ("asaddd","1531565")

Public Function Login_Info(UserId,PassWord)

Browser("title:=.*").Page(("title:=.*").WebEdit
(oEdtUserid).Set UserId

Browser("title:=.*").Page(("title:=.*").WebEdit
(oEdtPassWord).Set PassWord
Login_Info=1
End Function
Val Variable contains 1

Is This Answer Correct ?    2 Yes 0 No

i have to pass the testcases into userid anf password of gmail login page using functions you can t..

Answer / shavali

hear i cant understand val function can u please explain 3
function from val_info on wareds when the function is
retuning a value

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST

8 Answers  


In VSS, HoW the documents send to local folder? copy paste or any other? plz explain about VSS TOOL kit?

2 Answers   Oracle,


Waht is Test Report , What it consists?

2 Answers  


What is SQL injection?

2 Answers   CTS,


How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance

1 Answers   Capco,


How to send QTP test results to an email...(with out using Quality Center)?

11 Answers  


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

0 Answers  


What is the difference between a Test and a Business Component? Is it necessary to use Business Component while testing an application in the real time?

2 Answers  


How To Export The Screen Shoots Along With The Test Reports In QTP Version 10? Thanks In Advance SenthilKumar

1 Answers  


what is exacltly TIERS ?

0 Answers  


What is the difference between low level recording and virtual object.

2 Answers   Tech Mahindra,


How to extract the data in the below scenario and dump it in the excel? Link1 Link2 Link3 Link4 numberlink1 text text text numberlink2 text text text numberlink3 text text text numberlink4 text text text So, Here is my question? -- It is a matrix but is not a web table(QTP does not recognize it as a web table) -- Link1, link2 and link3 are links under which text is available -- numberlink1 to numberlink4 are again LINKS -- All the others displayed are text only I want to extract the data in the above scenario and dump it into an excel in the same scenario as it is displayed above. Kindly help.. Thank you

0 Answers  


Categories