课程: Software Testing Foundations: Continuous Testing and DevOps
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
How to run Selenium in CI - Jenkins教程
课程: Software Testing Foundations: Continuous Testing and DevOps
How to run Selenium in CI
- [Teacher] If you're using browser automation to test your front-end code, you'll need to do just a little bit of work to get it running in your CI solution. It may take a little more time upfront, but having browser-based tests ensures that you know that your UI will work when users interact with it. The main issue with running browser automation and continuous testing, tends to be running headlessly. That is, without a monitor. Solutions that use only the Chrome browser can take advantage of Crome's built-in headless functionality. If you anticipate running the same test code in multiple browsers, then the great majority of the test frameworks you can choose from, will be using Selenium behind the scenes. It can take a little bit more work to get tests running headlessly in Selenium. There are two main do-it-yourself options. The first option is just to use Chrome's build-in headless mode and run headless…