Applitools
<h1>1、安装</h1>
<p><strong>Adding Applitools Eyes to an Existing Node.js Cypress Project</strong></p>
<pre><code>npm install @applitools/eyes-cypress --save-dev</code></pre>
<h1>2、相关使用说明</h1>
<pre><code>cy.eyesOpen</code></pre>
<p>Create an Applitools test. This will start a session with the Applitools server.</p>
<pre><code>cy.CheckWindow</code></pre>
<p>Generate a screenshot of the current page and add it to the Applitools Test.</p>
<pre><code>cy.eyesClose</code></pre>
<p>Close the applitools test and check that all screenshots are valid.</p>
<ul>
<li>
<p>对 <code>cy.eyesOpen</code> 和 <code>cy.eyesClose</code> 的每次调用都定义了 Applitools Eyes 中的一个测试,它们之间对 <code>cy.eyesCheckWindow</code> 的所有调用都称为“步骤”</p>
</li>
<li>Applitools 将截取屏幕截图并在后台执行视觉比较。测试运行期间测试的性能不会受到影响,但在测试运行结束时会有一个小阶段,等待可视化测试结束</li>
</ul>
<h1>参考</h1>
<p>[1]. <a href="https://docs.cypress.io/guides/tooling/visual-testing#Functional-vs-visual-testing">Cypress-visula-testing官方文档</a>
[2]. <a href="https://applitools.com/tutorials/cypress.html#getting-started-with-applitools">Applitools官方文档</a>
[3]. <a href="https://github.com/applitools/tutorial-cypress.git">An Example project for applitools-cypress</a>
[4]. <a href="https://www.npmjs.com/package/@applitools/eyes-cypress">eyes-cypress SDK repo</a></p>