Need a method for Error Mesg as links in same page using Datadrive for Intranet apps
WinRunner: 7.01(Intranet Application Testing).
We have a web page page which has some fields. For ex: the Screen ‘Search a Customer’ has 5 fields namely: Customer ID, Last name, Driver License, SSN, Street, & Zip. When entered invalid values for any of these fields, the error messages will appear as links in upper left hand corner of the Screen on same page. Depends on the number of messages the Screen will be pushed down accordingly. The messages and Screen will be on the same page. The messages will appear as links, and read as follows:
Please correct the following error(s):
LastName - Invalid text
DriverLicense – Invalid number etc.
The above field labels also appear in Red. When we click the ‘LastName link’ the cursor will appear at the LastName text box in Screen.
My question is, how to check these kinds of error messages, when we do Data drive ? Thanking you all in anticipation.
Re: Need a method for Error Mesg as links in same page using Datadrive for Intranet apps
I would recommend that for each record in your spreadsheet that you add an additional column called eg: EXP_ERROR_MSG.
In this column enter the expected message that the system should return given the corresponding violated data enteredfrom that record.
Eg: Your first data record has an invalid Username.
The app will return something allong the lines of "User Does Not Exist, Try Again"
You then capture this (edit_get_text("obj", out_msg) and compare it to the Expected error message :
if(out_msg = ddt_val(table,"EXP_ERROR_MSG"))
tl_step("Did Correct Error Msg appear", pass,"Exp Result:" & ddt_val(table,"EXP_ERROR_MSG")) & " Actual: " & out_msg & " was successful.");
tl_step("Did Correct Error Msg appear", fail, ..etc ....
[This message has been edited by Nehay (edited 09-05-2002).]