Hi All, THanks you so much for your feedback, I'll try to apply your suggestions, I'll keep you updated about it.
Thanks once again. Regards Jose. On 12 sep, 08:45, Dhanasekar Subramaniam <[email protected]> wrote: > Naveen, > Its always good to Be polite as mentioned in this groups Rules.And by > the way I dont say I am so popular in QTP world [?] > I learnt QTP mainly from Motevich, Tarun(knowledgeinbox) and SQAForum,and > following them to understand QTP better. > When ever possible I am replying to this group. > > Coming back to Jose issue > I understand from his query he need to validate the * color and field name, > they are two separate objects, > Think this scenario in manual testing,you validate the * and it colour and > then fieldname,if both are present then your test case if pass. > Similarly get the * object and get it webelement style using currensyle > property > Set oWebElement = Browser("Browser").Page("Page").WebElement("ElementName") > Set oStyle = oWebElement.Object.CurrentStyle > NOTE:Watch the oStyle object in debug pane to get list of properties > available.From that get the what defines the colour of the object > Look > intohttp://motevich.blogspot.com/2007/09/qtp-font-size-color-background-c... > understand fully. > This value property should be equal to Blue or Red based on your requirement > Also check for Field name object > Now write a IF statement with a AND logic > > Thanks, > Dhanasekar Shttp://testingideas.wordpress.com > > 2009/9/12 naveen naveen11 <[email protected]> > > > Hi Dhanasekar, > > Sorry for activity which i have done today but i will not repeat again > > and i will keep this in my rules section marked as red.> One more thing > whether my solution was regarding validation was right or > > i have given wrong solution.Since you are very world known person in QTP so > i would like to say sorry once again. > > > Regards > > Naveen > > ======================================== > > > On Sat, Sep 12, 2009 at 2:15 PM, Dhanasekar Subramaniam < > [email protected]> wrote: > > >> Naveen, > >> I appreciate you for providing some suggestion or a solution in > the group. > >> But please avoid using all cap sentence. > >> Moderator > >> Please add this in the rules section. > > >> Regards, > >> Dhanasekar S. > >>http://testingideas.wordpress.com > > >> 2009/9/12 naveen naveen11 <[email protected]> > > >>> 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. > > >> -- > >> Regards, > >> Dhanasekar S. > >>http://testingideas.wordpress.com > >> --------------------------------------------------------- > >> Let us make the World Greener > >>http://www.greenpeace.org/international/ > >> ----------------------------------------------------------- > > -- > Regards, > Dhanasekar S.http://testingideas.wordpress.com > --------------------------------------------------------- > Let us make the World Greenerhttp://www.greenpeace.org/international/ > ----------------------------------------------------------- > > 328.png > < 1 KBVerDescargar --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
