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
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 |
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 |
HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST
In VSS, HoW the documents send to local folder? copy paste or any other? plz explain about VSS TOOL kit?
Waht is Test Report , What it consists?
What is SQL injection?
How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance
How to send QTP test results to an email...(with out using Quality Center)?
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
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?
How To Export The Screen Shoots Along With The Test Reports In QTP Version 10? Thanks In Advance SenthilKumar
what is exacltly TIERS ?
What is the difference between low level recording and virtual object.
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