Hi Jose, What is your requiremet for field validation if it is length use String.len condition inside if condition or if the field length is dynamic in nature then take GetROProperty and store it in variable and then compare expected and actual property through Instr or StrComp.Although i am not clear what type of validation u need if possible send me the requirement or snapshot then i will be able to help more properly.
For your second query i am assuming that it is depending on time so use Timer which is available in QTP ie start Timer and then write script then End Timer and then compare the time difference of Timer1 and Timer2 which will be in millisecond convert it into second and then apply condition to check validation. *MIND IT I AM GIVING YOU SOLUTION ON THE BASIS OF ASSUMPTION IF I AM GOING WRONG AND NEED SOME ASSISTANCE PLEASE SEND ME REQUIREMT OR SNAPSHOT,IF POSSIBLE SPY * *ALSO.* Regards Naveen On Sat, Sep 12, 2009 at 12:59 AM, Jose <[email protected]> wrote: > > Hi All, > > I´m new at QTP and I´m trying to run a validations for Mandatory and > Delayed Mandatory fields, the same has Red asterisks and Blue > Asterisks. I would like to perform a test that check that validates if > "* XXXX" fields has a red asterisk (meaning that is mandatory) and the > same for the fields with blue asterisks. > Please take in count that since the Mandatory / Delayed Mandatory > fields are dynamic, they are not te same object, for example the > systems displays "* Field Name", when i want to add the object to the > repository i get one WebElement for the "*" and another one for "Field > Name", there must be somehow to link both objects and tell QTP to > perform something like "If "Field Name" has red asterisk this means > that is a mandatory field, hence... pass". > > Your answers will be really appreciated!!! > > Best Regards, > > Jose. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en -~----------~----~----~----~------~----~------~--~---
