| || |
How to trap Error While giving invalid input
How trap the error while ur playing the robot script and giving invalid input .Trappable Error are runtime error you can respond any way u can choose .But how to trap the error for invalid input while playing the script
eg.Suppose validate the Phone ext field for 3digit but while ur playing the script and taking the input from the data pool it cross the maximum limit of 3 digit then how to trap that error
and store in the log file
Re: How to trap Error While giving invalid input
To log message about incorrect input into log file use:
SQALogMessage sqaFail, "Limit exceed: "+yourValue, ""
Manual is pretty clear about it.
As for how to check which value is entered into control, try to use functions like SQAGetProperty. Like this (I read the height of the table here):
Dim SQAStatus, sectionHeight As Integer
SQAStatus=SQAGetProperty("Type=HTMLTable;HTMLID=se ction_1", "offsetHeight", sectionHeight)
There is also a number of SQA functions - read about them, I suppose they can help you.