For clarification, when you are recording have you; -enter product code -click image 1 -click image 2 (stop recording and iterate)
Or -enter product code -click image 1 -click image 2 -enter product code -click image 1 -click image 2 -enter product code -click image 1 -click image 2 Etc until you have recorded entire test case? Neil Sent from myPhone On Feb 4, 2011, at 10:02 AM, Naveen Arora <[email protected]> wrote: Steve, As according to the below scenario, Here you can perform Regular Expression only on numbers... Gratitude, Nunny On Fri, Feb 4, 2011 at 2:14 PM, steve mcdonald <[email protected]>wrote: > Hi Garvin, > Thanks for link and have read through. > > I am quite comfortable with datatables and have 50+ rows already set up. > The problem is with the Image object dynamically changing > from Image("bt_select_1"), Image("bt_select_2") as coded by developers > but being rendered as Image("bt_select_3"), Image("bt_select_4"), ..., > Image("bt_select_99") etc as I record. > > Cheers > Steve > > On Thu, Feb 3, 2011 at 8:01 PM, Garvin Sutton <[email protected]> wrote: > >> Steve if you are basically running through your script twice then you only >> need to record the objects (images) once then iterate through them again >> using parameters that you can set in your data table. For a newbie this >> would be easier then jumping into descriptive programing at this stage. >> >> Here is a good tutorial in using data tables for setting parameters >> >> >> http://relevantcodes.com/introduction-to-parameterization-qtps-local-datatable/ >> >> >> >> On Thu, Feb 3, 2011 at 12:22 PM, steve mcdonald < >> [email protected]> wrote: >> >>> Hi, >>> In my script I enter a product code and then click 2 images and QTP >>> records - >>> Browser(Browser").Page("Page_4").Image("bt_select_1").click >>> Browser(Browser").Page("Page_4").Image("bt_select_2").click >>> >>> yet when I enter a second product code and then click the same images it >>> records them as >>> Browser(Browser").Page("Page_4").Image("bt_select_3").click >>> Browser(Browser").Page("Page_4").Image("bt_select_4").click >>> >>> Should I use descriptive programming to solve the problem to avoid using >>> the OR? >>> >>> Any sample code would be appreciated. (Am a newbie and have spent 2 days >>> on this so far!). >>> >>> Thanks >>> Steve >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> -- >>> 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 -- 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
