Testing the UI

In the previous recipe, we created a test using what I refer to as record-based testing. The test was created using records in order to test the business logic. Although this type of test is perfectly acceptable, it does not necessarily recreate the same workflow that a user would take. In order to perform the test in a way that is as close to what a user would do, we need to create our tests slightly differently.

This recipe will show you how to create an automated test using testpage objects to more closely mimic the workflow of a user.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset