<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vital</title>
    <description>The latest articles on DEV Community by Vital (@twitvital).</description>
    <link>https://dev.to/twitvital</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F700678%2F55e4b25b-88bf-4fb3-8928-5668de791a29.png</url>
      <title>DEV Community: Vital</title>
      <link>https://dev.to/twitvital</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/twitvital"/>
    <language>en</language>
    <item>
      <title>Cypress Basic Learning</title>
      <dc:creator>Vital</dc:creator>
      <pubDate>Mon, 27 Sep 2021 11:17:38 +0000</pubDate>
      <link>https://dev.to/twitvital/about-cypress-26on</link>
      <guid>https://dev.to/twitvital/about-cypress-26on</guid>
      <description>&lt;p&gt;&lt;b&gt;What is Cypress&lt;/b&gt;&lt;br&gt;
• Cypress is a next generation front end testing tool built for the modern web. We address &lt;br&gt;
the key pain points developers and QA engineers face when testing modern &lt;br&gt;
applications. This enables you to write faster, easier, and more reliable tests.&lt;br&gt;
• Cypress is a JavaScript-based tool for frontend testing.&lt;br&gt;
• With it, you can write all types of tests: End-to-end tests, Integration tests, and Unit &lt;br&gt;
tests. &lt;br&gt;
Fast, easy and reliable testing for anything that runs in a browser.&lt;br&gt;
&lt;b&gt;Cypress Features&lt;/b&gt;&lt;br&gt;
• Time travel: Cypress takes snapshots as your tests run&lt;br&gt;
• Debugging: Readable errors and stack traces make debugging easier&lt;br&gt;
• Automatic waiting: Automatically waits for commands and assertions before moving &lt;br&gt;
on&lt;br&gt;
• Spies, stubs, and clocks: Verify and control the behavior of functions, server &lt;br&gt;
responses, or timers&lt;br&gt;
• Network Traffic Control: Control, stub, and test edge cases without involving the &lt;br&gt;
server&lt;br&gt;
• Screenshots and videos: View screenshots taken automatically on failure, or videos of &lt;br&gt;
your entire test suite when run from the CLI&lt;br&gt;
• Cross browser Testing: Run tests within Firefox and Chrome-family browsers &lt;br&gt;
(including Edge and Electron) locally&lt;br&gt;
&lt;b&gt;Pros &amp;amp; Cons&lt;/b&gt;&lt;br&gt;
Pros..&lt;br&gt;
• Cypress framework captures snapshots at the time of test execution. This allows QAs or &lt;br&gt;
developers to hover over a specific command in the Command Log to see exactly what &lt;br&gt;
happened at that particular step.&lt;br&gt;
• One doesn’t need to add explicit or implicit wait commands in test scripts, unlike &lt;br&gt;
Selenium. Cypress waits automatically for commands and assertions.&lt;br&gt;
• Auto reload, act as real user&lt;br&gt;
• Uses Mocha as a testing framework &amp;amp; chai is assertion library&lt;br&gt;
• Rich documentation&lt;br&gt;
Cons..&lt;br&gt;
• Only supports Javascript language &lt;br&gt;
• Only supports css selector&lt;br&gt;
• It doesn’t provide support for multi-tabs&lt;br&gt;
• Cypress doesn’t provide support for browsers like Safari at this moment.&lt;br&gt;
&lt;b&gt;Tech Stack&lt;/b&gt;&lt;br&gt;
• Cypress&lt;br&gt;
• VS code&lt;br&gt;
• Javascript Programming&lt;br&gt;
• Mocha framework&lt;br&gt;
• Reports: Mocha Awesome&lt;br&gt;
&lt;b&gt;Installation of Cypress&lt;/b&gt;&lt;br&gt;
• Download Node.js from &lt;a href="https://nodejs.org/en/download/"&gt;https://nodejs.org/en/download/&lt;/a&gt; as per your operating &lt;br&gt;
System, as the Cypress is build on the node.js&lt;br&gt;
• Create a folder and import the folder in Visual Studio code editor (or Atom,sublime) and &lt;br&gt;
open the terminal&lt;br&gt;
• Setup a new npm package : npm init&lt;br&gt;
• Open the terminal and enter npm install cypress --save-dev&lt;br&gt;
• Enter following command to open cypress studio ./node_modules/.bin/cypress open.&lt;br&gt;
• Refer Cypress installation documentation &lt;br&gt;
&lt;a href="https://docs.cypress.io/guides/getting-started/installing-cypress#npm-install"&gt;https://docs.cypress.io/guides/getting-started/installing-cypress#npm-install&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Understanding folder structure&lt;/b&gt;&lt;br&gt;
• Fixtures: for all the test data information&lt;br&gt;
• Integration: for writing test cases &lt;br&gt;
• Plugins: kind of listeners, customized methods to handle cypress events&lt;br&gt;
• Support: for utility methods, like method, is getting used by many test cases. No need &lt;br&gt;
to import support folder, Cypress will automatically sense the method&lt;br&gt;
• Videos/Screenshots: for running tests&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br&gt;
Vital Kumar U&lt;br&gt;
&lt;a href="https://www.linkedin.com/in/vital-kumar-uppuluri/"&gt;Linkedin&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cypressio</category>
      <category>javascript</category>
      <category>angular</category>
      <category>automationtesting</category>
    </item>
  </channel>
</rss>
