Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generalised code for identifying validators
#1
Not Solved
Hi,
For a text box(Input field), there are three validators appearing for different type of input.Through QTP i am trying to identify which validator appears.When i look in to the source code for these validators one is present in with single <td) and other which two <td>.How can i write a generalised code for identifying these validators.

Thanks
Ramakrishna
Reply
#2
Not Solved
Hi Ramakrishna,

the query is not clear to me, can you please explain a bit.

Reply
#3
Not Solved
Sorry for making you confused with my query.
There is a text box(for example:Amount field, here it shows three different validators for invalid data. 1.for entering value not in the boundary values. 2.for Entering Special characters. 3. for entering decimal points).Now i need to set one value to this field and check one validator excistence that needs to appear and also need to check whether other two validators are not appearing.
In the Website thati am testing is done on .NET, if i see the view source for this text box one validator details are present with in<tr> and single <td> and an end tag and some other validator details are present with in <tr> and two <td>.

So i want a generalised code for identifying these validators and give a message validator one present and validator 2 and validator three are not present.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Generalised script subhankar 1 2,083 07-28-2008, 02:03 PM
Last Post: surya_7mar

Forum Jump:


Users browsing this thread: 1 Guest(s)