<?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: Renier De La Cruz</title>
    <description>The latest articles on DEV Community by Renier De La Cruz (@vizushu).</description>
    <link>https://dev.to/vizushu</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%2F189181%2Fe217f0ae-142d-413c-9e8d-96c6d71a39e9.jpeg</url>
      <title>DEV Community: Renier De La Cruz</title>
      <link>https://dev.to/vizushu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vizushu"/>
    <language>en</language>
    <item>
      <title>How to start with Automation testing using Selenium, Mocha and Javascript</title>
      <dc:creator>Renier De La Cruz</dc:creator>
      <pubDate>Thu, 25 Jul 2019 19:07:22 +0000</pubDate>
      <link>https://dev.to/vizushu/how-to-start-with-automation-testing-using-selenium-mocha-and-javascript-483c</link>
      <guid>https://dev.to/vizushu/how-to-start-with-automation-testing-using-selenium-mocha-and-javascript-483c</guid>
      <description>&lt;h3&gt;
  
  
  What is automation testing?
&lt;/h3&gt;

&lt;p&gt;Automation testing is a Software testing technique to test and compare the actual outcome with the expected outcome. This can be achieved by writing test scripts or using any automation testing tool like Selenium!. Test automation is used to make testing process faster and check other testing tasks which are difficult to perform manually.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why use automation testing?
&lt;/h3&gt;

&lt;p&gt;Because we are human we have limited amount of energy and attention to focus on repetitive tasks so we make mistakes. It's almost impossible not to miss a single test in million of functionality of a software. &lt;/p&gt;

&lt;p&gt;But we still want to use manual testing because computers does not have good judgement like humans. automated test scripts don’t pick up visual, audio and human senses issues.&lt;/p&gt;

&lt;p&gt;Human testers can quickly identify when something looks “off” when a tester interacts with software as a user would, they’re able to discover usability issues and user interface glitches. Automated test scripts can’t test for these things.&lt;/p&gt;

&lt;p&gt;Not everything that can be done with automation, But it would be great if you can automate those repetitive boring tasks or tests.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.makeagif.com%2Fmedia%2F7-25-2019%2F-NUURV.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.makeagif.com%2Fmedia%2F7-25-2019%2F-NUURV.gif"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Selenium?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Selenium automate web applications across different browsers and platforms. That's it!&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Selenium is great, and it can be integrated with many different languages, and today I will show you how to do it with JavaScript. This is an ongoing project, and I plan to update more examples or test cases in the future blogs.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Mocha?
&lt;/h3&gt;

&lt;p&gt;Mocha is a testing library for Node.js, created to be a simple, extensible, and fast testing suite. It's number one chosen testing framework by developers.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You need to install either Yarn or Node on your machine. In this project, I will use Node for installing packages and running scripts.&lt;br&gt;
First, we need to start a project&lt;/p&gt;

&lt;p&gt;&lt;code&gt;yarn init or npm init&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then install dependencies&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm add chromedriver selenium-webdriver&lt;/code&gt;&lt;br&gt;
&lt;code&gt;npm add mocha -D&lt;/code&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Getting started&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After that, we can start writing our test cases&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F6rfhjo3q046kcg5sbxco.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F6rfhjo3q046kcg5sbxco.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Run The Test Case&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Whenever you want to run the test, just use this command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm run test&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The below result shows that the test has been successfully completed.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;vizushu$ npm run test&lt;/code&gt;&lt;br&gt;
&lt;code&gt;npm run v1.9.4&lt;/code&gt;&lt;br&gt;
&lt;code&gt;$ mocha --recursive --timeout 10000 test.js&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Checkout Google.com&lt;/code&gt;&lt;br&gt;
    &lt;code&gt;✓ Search on Google (2058ms)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;1 passing (3s)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Done in 3.79s.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;That's all you need to start with your automation testing! I will continue with more test cases next blog and how to get the selectors likes xpath(), Css() for your automation testing!&lt;/p&gt;

&lt;h3&gt;
  
  
  Happy Testing!
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2FgG6OcTSRWaSis%2Fgiphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2FgG6OcTSRWaSis%2Fgiphy.gif"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>selenium</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How I started coding with slow living and fast living</title>
      <dc:creator>Renier De La Cruz</dc:creator>
      <pubDate>Tue, 09 Jul 2019 23:12:05 +0000</pubDate>
      <link>https://dev.to/vizushu/how-i-started-coding-with-slow-living-and-fast-living-45ba</link>
      <guid>https://dev.to/vizushu/how-i-started-coding-with-slow-living-and-fast-living-45ba</guid>
      <description>&lt;p&gt;As my first blog I will start with my coding journey with different circumstances.&lt;/p&gt;

&lt;p&gt;This is meant to create awareness and share knowledge for people who’s dreaming big without necessary skills, knowledge and support to learn coding.&lt;/p&gt;

&lt;p&gt;I am lucky enough to be here in person but, before coming to this point I struggled back in the Philippines. My parents got separated when I was 7 years old and my mom had to come here in the United States to work so she can feed me and my 3 siblings. I was left with my abusive relative, I grew up with obnoxious behaviour and rebellious because I was constantly compared to my peers. Most of them have a nice family, eating decent food together and always prepared for school and homework. I was living without any goals or purpose in life. I was a sore loser.&lt;/p&gt;

&lt;p&gt;My life in the Philippines was in &lt;strong&gt;slow lane&lt;/strong&gt; I was enjoying life with friends, spending the weeks at the beach and island hopping.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.philippinebeaches.org%2Fwp-content%2Fuploads%2F2017%2F10%2FPhilippine-Island-Hopping-FP.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.philippinebeaches.org%2Fwp-content%2Fuploads%2F2017%2F10%2FPhilippine-Island-Hopping-FP.jpg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Despite that experience my mom persisted and forced me to go to college, I got my degree in Business Management. I've been always curious about computers and technology I wish I took computer science. Unfortunately It's not a big field in the Philippines.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fborgenproject.org%2Fwp-content%2Fuploads%2FThe_Effects_of_Poverty_in_the_Philippines.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fborgenproject.org%2Fwp-content%2Fuploads%2FThe_Effects_of_Poverty_in_the_Philippines.jpg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That being said my life back in the Philippines was completely different than today. With all the trauma in life I decided to turn my life around I seeked for medical help and I was diagnosed of borderline personality disorder. The causes of it is mainly environmental factor being a victim of emotional and physical abuse. being exposed to chronic fear or distress as a child. being neglected by one or both parents.&lt;/p&gt;

&lt;p&gt;I decided to follow my passion of technology and took 3D Animation, I worked in data center as NOC technician but I realized that I want more. That's when I decided to learn how to code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Slow lifestyle&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Slow living is a lifestyle emphasizing slower approaches to aspects of everyday life. Don't think about traveling back in time! It’s about using technology as a tool instead of technology using you. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpics.esmemes.com%2Fhello-people-of-2018-how-is-virtual-reality-thing-is-30313789.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpics.esmemes.com%2Fhello-people-of-2018-how-is-virtual-reality-thing-is-30313789.png" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fast lifestyle&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Many people live the fast life. From actors, athletes, and rock stars to inner city suburban youth and coders!. You might be living the fast life right now. With our busy life we need a shortcut or a help in order to keep with our fast life. Eating fast food, Working remotely etc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/Bk0J0yPV2azoQ/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/Bk0J0yPV2azoQ/giphy.gif"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The fast life features prominently in pop culture. Music videos portray the fast life as glamorous and exciting. Who engages in heavy drinking and/or drug use in an attempt to have more fun or quick answers to internal questions. Movies portray characters like James Bond as living an exciting fast life full of women, adventure, and intrigue. Live fast, die young is glamorized. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;We are living in the future!!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I got this phrase from my colleague named Rohit Pratti. He’s always fascinated how we are living now in fast lifestyle. From pixelated video game to virtual reality.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.geek.com%2Fwp-content%2Fuploads%2F2016%2F02%2Fzuckerberg_VR_people-625x352.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.geek.com%2Fwp-content%2Fuploads%2F2016%2F02%2Fzuckerberg_VR_people-625x352.jpg" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.kinja-img.com%2Fgawker-media%2Fimage%2Fupload%2Ft_original%2Ftpkvw0y8b1ui4ral1fjb.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.kinja-img.com%2Fgawker-media%2Fimage%2Fupload%2Ft_original%2Ftpkvw0y8b1ui4ral1fjb.jpg" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;People every day are constantly living at a fast pace which is making them feel like their lives are chaotic.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmemegenerator.net%2Fimg%2Finstances%2F47424009.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmemegenerator.net%2Fimg%2Finstances%2F47424009.jpg" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Find balance&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Coding bootcamp is definitely a fast pace. Sometime I question myself should I be here? or should I persist. What I realized is finding a balance between and how to manage it to go through it&lt;/p&gt;

&lt;p&gt;We have to find balance in order to achieve both advantages of slow and fast life&lt;/p&gt;

&lt;p&gt;10 ways to get started with busy lifestyle&lt;/p&gt;

&lt;p&gt;1, Understand busyness and that it is a choice&lt;br&gt;
2, Define what is most important to you(essentials)&lt;br&gt;
3, Say “no” to everything else(nonessentials)&lt;br&gt;
4, Start slow and small by downshifting&lt;br&gt;
5, Practice being present&lt;br&gt;
6, Create space and margin in your day(and life)&lt;br&gt;
7, Adopt slow information diet&lt;br&gt;
8, Commit to put  your life before work&lt;br&gt;
9, Get outside physically to connect dots mentally&lt;br&gt;
10, Find inspiration in slow living community and apply it on your fast living&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fj3yiaejddqr5fsdt4v28.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fj3yiaejddqr5fsdt4v28.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia1.tenor.com%2Fimages%2Fcc991dba58adaa24f0e43536c0fe4833%2Ftenor.gif%3Fitemid%3D11695227" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia1.tenor.com%2Fimages%2Fcc991dba58adaa24f0e43536c0fe4833%2Ftenor.gif%3Fitemid%3D11695227" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>howistartedwithcoding</category>
    </item>
  </channel>
</rss>
