Automation engineers, Chris Lawson and Ryan Eisma, demonstrate how to use testing asserts for basic verifications in test scripts.
“Many times in your test you are going to want to verify or assert, for example, that something is on the screen or that two specific values are equal to each other.” – Automation expert, Chris Lawson
But, how do you address this goal of basic verifications in test scripts? Two methods for doing so is to either
“Assertions are a check to make sure that your test has successfully gotten to a particular point or that the value that you expect to be on that page is in fact there.” – Automation expert, Ryan Eisma
Follow the times to match the video with the text provided below:
Again, these are only a few methods call to check that values shown on the screen are correct with what is being reported correctly. For more information we would recommend looking further into the TestNG assertions class.
>> Subscribe to Zenergy on Youtube for more videos
Read our blog, Five Common Missteps in Selenium Test Automation Implementations.