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 |
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
Tell me the difference between the Data Driven Frame work and Keyword Driven frame work?
write qtp descriptive programming to activate multiple notepads? please urgent friends
explain keyword driven framework with banking domain?
Explain qtp(quick test professional)?
Recovery Manager means..?
What are the problems / difficulties faced when you used Smart Identification ?
In QTP, What is Global action and Local action?
I have written some scripts in QTP by using older version, but I want to run them in latest version. Is there any process to do that.If so can anyone explain me?
a title of first page is "LKO- microsoft internet explorer", of the second page is "PPM- microsoft internet explorer" , of Third page is "TTS- microsoft internet explorer" and same changing title on the fourth page. How can we use regular expression for this feature what should we do on script part on and Object repository part so that we can get successful run result. Kindly explain the steps script.