简体   繁体   English

Docker硒网格或Saas解决方案(Sauce Labs)

[英]Docker selenium grid or Saas solution (Sauce Labs)

Why are devops setting up their own selenium grid over simply using a Saas solution like Sauce Labs? 为什么开发人员为什么只使用Sauce解决方案(如Sauce Labs)来建立自己的硒网格?

I'm trying to set up my own CI/CD pipeline and I'm not quiet sure which route to take. 我正在尝试建立自己的CI / CD管道,但我不确定要走哪条路线。

Pros/cons maybe? 优点/缺点?

It all depends on the level of simplicity involved in the implementation of infrastructure. 这完全取决于基础架构实施中涉及的简化程度。 Newbie users know little about OS virtualisation and containerisation . 新手用户对操作系统虚拟化容器 了解甚少。 They are already carrying the load of managing different browsers and OS combinations. 他们已经承担了管理不同浏览器和操作系统组合的负担。 Hence , in order to avoid the complexity of setting up custom OS capabilities, newbie users prefer services like Saucelabs or Browserstack . 因此,为了避免设置自定义OS功能的复杂性,新手用户更喜欢SaucelabsBrowserstack之类的服务。 They do all the lower level OS configuration and ask you for only Browser information (version/platform).Its a quick route to setup a CI pipeline. 它们执行所有较低级别的OS配置,并且仅要求您提供浏览器信息(版本/平台),这是设置CI管道的快速途径。 Hence, this type of solution is more expensive than the other one. 因此,这种解决方案比其他解决方案更昂贵。

Docker system is for advanced users who prefer more control on their OS/containers configuration and prioritise cost optimisation. Docker系统适用于希望对操作系统/容器配置进行更多控制并优先考虑成本优化的高级用户。 The architect can control the performance parameters of base machine on top which containers are build. 架构师可以控制在其上构建容器的基础机器的性能参数。 Cost of operation is comparatively less in this kind of solution. 在这种解决方案中,运营成本相对较低。 However , implementation complexity is high. 但是,实现复杂度很高。 This route will consume time. 这条路线会消耗时间。 Users with right knowledge should follow this route. 具有正确知识的用户应遵循此路线。

For a month ,At $199 , Saucelabs provides, 12000 minutes of automated testing minutes for 2 parallel sessions and 2 parallel users. Saucelabs提供为期一个月( $ 199 )的22,000个并行会话和2个并行用户的12000分钟自动测试分钟。 You get instant access to 800+ OS/browser combinations . 您可以立即访问800多种OS /浏览器组合。 Pro point : you get instant access to mobile emulators and simulators as well. 要点 :您还可以立即访问移动模拟器和模拟器。 Via rest APIs , you can capture session videos also. 通过rest API,您还可以捕获会话视频。

Comparatively , at $165.12 , AWS provide you a windows EC2 instance with 16Gigs of RAM and 4 CPU cores , any-time access for a month , at on demand contract. 相比之下,AWS为您提供Windows EC2实例,价格为165.12美元 ,该实例具有16Gigs的RAM和4个CPU内核,可按需签订一个月的任何时间访问。 You will setup the containers, establish connections between them and configure the capabilities , all by yourself. 您将自行设置容器,建立它们之间的连接并配置功能。 That's an overhead , which DevOps teams has to take care. 这是开销 ,DevOps团队必须注意。 The only pro is you can optimise cost of infrastructure at every possible layer by analysing the resource utilisation.As the tests scales up, this key feature becomes the major factor in cost savings. 唯一的优点是您可以通过分析资源利用率来在每个可能的层上优化基础架构的成本。随着测试的扩大,此关键功能成为节省成本的主要因素。

PS You can even lower the $165 value by choosing pay per hour usage plan instead of on-demand access plan. PS您甚至可以通过选择按小时付费使用计划而不是按需访问计划来降低$ 165的价值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM