Take an example where I am verifying a value of textbox name "Username" and use a Jnunit assertion like
assertEquals (Expected, seleneium.getText("Username"));
In case this step fails, it is going to show like ..
"Expected ['xyz']
This becomes even more difficult, when we have a large test suite of big tests and looking at error message it is dificult to figure out, what failed exactly?
So, I would like to see an error message for the above example like -
"Username text expected
assertEquals ("Username text", Expected, seleneium.getText("Username"));
And when this assertion fails, it will generate the error message in more meaning way, and also Twist HTML report will also change accordingly.
This is the simplest way we could do it so far, but I am sure Twist team is working on having its own assertion libraries and I am looking forward to that.
0 comments:
Post a Comment