can any body give the code to write the function for given
suppose user login with usrer id and pwd to yahoomail.after
cliking "sign in"if it is valid user id the next page will
display userid'message box.( Note u have to use excel sheet
to retrive the userid's data)
Answer Posted / bfakruddin
Hello Mr.Badri,
Script is good,
if anybody don't know scripting they will feel difficult to understand your script, please reduce complexity while answering, here no need to use always reporter events you can display with msgbox or with print statements.
How do you think this is correct validation,
--> you get the user name from excel sheet and placed in user name field.
--> you get the text available in user name field again
--> validating these two values.
no test case will be fail if you do testing like this.
you forgot one more thing you have to click Sign In button with out doing this how could you conclude that the user is valid or not....!
Once you get Home page or mail box page then you can conclude that user name is valid
or
If you don't get any error msg or popup after clicking on Login In then also you can ensure that the user is valid.
If anybody want me to give code, I will give.
above code also correct but some what complexity...!
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
When to use function procedures and what are its characteristics?
What is the use of the date function in the vbscript language?
Explain about .wsf files?
who will create the object?
Mention what is the use of option explicit in vbscript?
When does ‘on click of button’ event gets triggered in the vbscript language?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
How to Import data from a file (file is on the desktop) to the data table
How regexp.execute method works?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
What is difference between vbscript and vba?
Mention when to use function procedures and what are its characteristics?
How to delete a cookie using vbscript?
What is the main difference between function and sub-procedure?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?