If there are two windows window A and window B.
window A sends messages in to the window B and window B stores the data in the form of rows in java table.
Can anyone please help me --
if there is any new entry in the window B table as a row how to compare the row count in B when new message is sent from window A
Where are the old messages from window A stored in the same java table..
Winds of Change
Capture row count in a variable before sending message from A.
Capture row count after sent a message from A.
2nd count should be more than 1 than the previous count.
Uday QTP / UFT Videos from my Youtube Channel QTP / UFT Videos from my Blog
for ex: if I take count of B first as 10
then send 2 messages from A and then recount B and it should show as 12 and verification should pass otherwise fail....
will this work??
if so, please provide the code...
put a counter variable, which should be increment after sending every message.
While comparing the difference, verify with the difference these column counts with this counter variable.
If it matches, your test pass else fail.
if the existing rowcount of B in the first instance is 10 and after sending message from A it should increment by 1 and the total rowcount should be 11 in B.
so the verification shoul be the window B itself by comparing the existing 1st instance to the second instance...
pls help with code..
thanks everyone for their help....
I got the solution by counting the B first as iteration 1 then sent messages from A then came back to B and recounted B in iteration 2.
If say iteration 1 is kept in a variable x and iteration 2 in variable y then the result is put in variable z as z = x<y then pass the test else fail it using reporter.reportevent.....