Writing Tests

For the last six chapters, we have been writing Selenium automation scripts. But these are not actual tests, just scripts that use WebDriver to control a browser and execute commands against a given web page. Selenium helps us automate browsers, but we want to do more than that. We want to validate if the web application is working as expected. To do this, we need to add a test framework in to the mix. By combining Selenium and a test framework, we can write tests to check and assert a web application's elements and behavior.

By the end of this chapter, you will be able to:

  • Explain what a test framework is and how to choose one
  • Create test scripts and suites
  • Validate and view results
..................Content has been hidden....................

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