I have used a dictionary: Key = Tab1Name; value = 1 and then use the exist method and if the key is already present, increment the value by 1.
Parke On Fri, Jul 31, 2009 at 11:16 AM, Roman Zilber <[email protected]> wrote: > Hi, > > 1) How to work with dynamic arrays you will find, if look "ReDim" in the > help > 2) I have found it easier to compare such things, by collecting the info in > one long string, for example > webpageTabsExpected = "Tab1Name:Tab2Name:Tab3Name:Tab4Name:Tab5Name" > > and compare If webpageTabsExpected = webpageTabsActual .. > > Once you have found the difference, you need to report and fail the test, > you may not need to look into the details. > > Roman > > > > On Fri, Jul 31, 2009 at 10:30 AM, Steve <[email protected]> wrote: > >> >> I need to gather all of the tab names from the web page, place them in >> a dynamic array. >> >> I will most likely be using GetROProperty("innertext") and then place >> each value into a variable to be used later in my array. >> >> I then need to gather all of tabs from my local data table (brought in >> from excel) and place that data into another dynamic array. >> >> Sort these two arrays. (I may skip on this step) >> >> Compare the two arrays. >> >> Output the difference. >> >> Ex: >> >> Webpage has - >> >> Tab1, Tab2, Tab3, Tab4, Tab5 >> >> Excel has - >> >> Tab1, Tab2, Tab3 >> >> The difference is - >> >> Tab4 and Tab5 from the webpage. >> >> I am new with dynamic arrays, sorting and comparing. I am doing my >> research on the web, but any help or pointing me in the right >> direction would be appreciated! >> >> 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] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en -~----------~----~----~----~------~----~------~--~---
