why cant this be more simple.

1- Get row count
2- Get column names
3- Loop both and get the cell value of each column.
4- store each vale in a variable/array)

5- navigate to next page
6- repeat step 1 to 4 from second table
7- compare values stored (From table 1) with values captured from table 2
8- report pass/fail


I could see the same action repeated is reading the cell values, so make it
as fn and get the ouput as array (so all values we be able to read outisde
fn)

On 8 September 2015 at 12:43, Balachandran Kandasamy <
[email protected]> wrote:

> I need to get values from the web table Page 1 and Need to check the value
> in the Page 2 web table.
>
> Eg:
> In page 1 there is 1. First Name 2. Last name and 3. Address. I need to
> extract the value from here and need to check in the Page 2 where I have
> same First Name, Last Name and Address.
>
> I’m able to Get the value from the web table, but I don’t know how to
> proceed after that.
>
> Code which i tried to store the value from the webpage one:
>
> 'I'm here declaring the variable which needs to be validated
> StrDeclareGetVal =
> "StrLastName;StrFirstName;StrAddress1;StrAddress2;StrCity, State,
> Zip;StrAccount ;StrDOB"
> StrDeclareSplt = Split (StrDeclareGetVal,";")
>
> 'using this i'm locating the object in the webtable
> StrWebElem1 = "Last Name;First Name;City, State, Zip;Account Payment;DOB"
> StrWebElem2 = Split(StrWebElem1,";")
>
> For IntNum = 0 To ubound (StrDeclareSplt) Step 1
>
> StrWebElem3 = StrWebElem2 (IntNum)
> StrDeclareFnl = StrDeclareSplt(IntNum)
>
> StrRw1 =
> Browser("XXX").Page("YYY").WebTable("ZZZ").GetRowWithCellText(StrWebElem3)
> StrCurrentValue =
> Browser("XXX").Page("YYY").WebTable("ZZZ").GetCellData(StrRw1,2)
> StrDeclareFnl = "StrCurrentValue"
>
> msgbox StrDeclareFnl
> Next
>
> The code works perfectly but i have done the logical mistake which needs
> to clarified.The problem in the above code is i'm trying to store the First
> Name in StrLastName and value which needs to stored is from the
> StrCurrentValue. Which i'm getting from the web table. But i'm not able to
> do it.
>
> --
> --
> 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 Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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 Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to