Hi, I think charan is trying to ask Why is it coming as _1,_2 for the same object. Its because of one or multiple properties of the same object keeping change for the object but the object remains same.
Go to both the objects in the object repository and check each property. Now where ever there is a difference use regular expression. so that both the object will have the same properties. Now try to use the _1 object instead of _2 , it should work. Thanks Biswajit On Tue, Aug 10, 2010 at 5:58 PM, S R I D H A R <[email protected]> wrote: > Dont confuse while using names > > Thanks > *SRIDIVYADHAR* > > On Tue, Aug 10, 2010 at 11:01 AM, Kiran Paul Kanikaram < > [email protected]> wrote: > >> Hi Charan >> >> There is no need to change the logical name in the script. >> >> If you want to give a meaningful name to the check box then change it in >> the Object Repository and it will be reflected in your code. In the Object >> Repository under the Object Properties (rightside in the OR window) change >> the name of the Object in the Name Text Box and click enter. the changes >> will reflect in the OR and also in the Script. then your script will work >> >> Please look at the image below >> >> >> Hope this will help you >> >> Regards, Kiran Paul >> >> <http://qtp4free.blogspot.com/> >> >> --- @ WiseStamp >> Signature<http://my.wisestamp.com/link?u=9m92zjczzzgs4dcx&site=www.wisestamp.com/email-install>. >> Get it >> now<http://my.wisestamp.com/link?u=9m92zjczzzgs4dcx&site=www.wisestamp.com/email-install> >> >> >> On Mon, Aug 9, 2010 at 8:43 PM, arihan sinha <[email protected]>wrote: >> >>> don't change the name property, only change in the script and the logical >>> name in the object repository. >>> >>> >>> On Sun, Aug 8, 2010 at 3:42 PM, charanpreet <[email protected]>wrote: >>> >>>> Hi >>>> In my application , QTP recognize some check boxes names as >>>> "repl_name3_1", "repl_name3_2" etc. >>>> Same name appears in scripts as well in object repository. With this the >>>> script runs fine. >>>> >>>> But if change the names to meaningful names, both in script as well in >>>> object repository adn also change the "name" property of the checkboxes >>>> with >>>> proper names, >>>> then while running, QTP is not able to recognoze the objects and hence >>>> giving error. >>>> >>>> Can anybody tell me how we can change the name of the objects in the >>>> script and repository so that QTP does not give any error. >>>> >>>> Thanks >>>> Charan >>>> >>>> >>>> >>>> -- >>>> 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]<mercuryqtp%[email protected]> >>>> For more options, visit this group at >>>> http://groups.google.com/group/MercuryQTP?hl=en >>> >>> >>> -- >>> 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]<mercuryqtp%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/group/MercuryQTP?hl=en >>> >> >> -- >> 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]<mercuryqtp%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en >> > > -- > 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]<mercuryqtp%[email protected]> > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > -- 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
