Selenium testing with checksums (md5)
Posted
by
Peter
on Stack Overflow
See other posts from Stack Overflow
or by Peter
Published on 2012-10-02T15:28:31Z
Indexed on
2012/10/02
15:37 UTC
Read the original article
Hit count: 165
selenium
I am new at selenium testing and am writing a bunch of tests for a webpage that relies heavily on javascript user interaction.
At first I wrote a lot of assertions of the style
If I press button A" then
assert number of visible rows = x,
assert checkboxes checked are such
assert title = bar
.... [20 more]
and so on.
Then I switched to checksumming the HTML using MD5:
If I press button A" then
assert md5(html) = 8548bccac94e35d9836f1fec0da8115c.
And it made my life a whole lot easier...
But is this a bad practice in any way?
© Stack Overflow or respective owner