<?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: Gokul E</title>
    <description>The latest articles on DEV Community by Gokul E (@gokul2172001).</description>
    <link>https://dev.to/gokul2172001</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%2F1139854%2F56fe1c1d-7323-4d7f-bd26-2eff5d85ab7f.jpeg</url>
      <title>DEV Community: Gokul E</title>
      <link>https://dev.to/gokul2172001</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gokul2172001"/>
    <language>en</language>
    <item>
      <title>I Found a way to Automate 2FA and TOTP.</title>
      <dc:creator>Gokul E</dc:creator>
      <pubDate>Mon, 17 Jun 2024 13:56:05 +0000</pubDate>
      <link>https://dev.to/gokul2172001/i-found-a-way-to-automate-2fa-and-totp-38pe</link>
      <guid>https://dev.to/gokul2172001/i-found-a-way-to-automate-2fa-and-totp-38pe</guid>
      <description>&lt;p&gt;Hello Readers,&lt;br&gt;
After very long time now I am back with a very interesting topic for Automation Testers. I’ve recently see a post in linked In about the beeceptors. That post contains a lot of information of a very good advantage of use the Beeceptor Api which we can use to overcome the dificulty of 2FA ( 2-Factor Authentication) and TOTP (Time-based One-Time Passwords).&lt;/p&gt;

&lt;p&gt;We know most of the big application like Github, Zerodha, Instagram even Google and many more. All these applications are have a 2FA and TOTP to login for security purpose. For these 2FA and TOTP are nightmare of Automation Tester. In order to overcome that problem, some of the companies skip the authentication with constant code or disabled authentication page login.&lt;/p&gt;

&lt;p&gt;Recently I get to know that there a tool called Beeceptors through a significant linked In post. After I read that along with some more of the other blogs and sources, I get know that, we can mock that 2 factor authentication by using Mock API to simulating different API’s for authentication.&lt;/p&gt;

&lt;p&gt;We can create our own end points for different response and get the results for the best automation scripts with all the possible scenarios and use cases. Using a website &lt;a href="https://beeceptor.com/"&gt;https://beeceptor.com/&lt;/a&gt; , we can create our own mock servers and endpoints with specific rule, secret and authentications.&lt;/p&gt;

&lt;p&gt;Time-Based One-Time Passwords (TOTP) are often used in 2FA. Mock APIs can generate mock TOTP codes to test the verification process within the applications.&lt;/p&gt;

&lt;p&gt;Using mock APIs helps us isolating 2FA and TOTP testing from production environments, reducing risks associated with live testing.&lt;/p&gt;

&lt;p&gt;By using the services like beeceptors which provides mock API’s similar capabilities make Testing is very helpful to test the application more robust and reliable before Deployment.&lt;/p&gt;

&lt;p&gt;These were the things I learned in weekends to improve my automation testing skills. In near future I’ll write another blog with more detailed information with practical implementation.&lt;/p&gt;

&lt;p&gt;Thank you for your time to read my blog. Until Next Time.&lt;/p&gt;

&lt;p&gt;Best wishes to all.&lt;/p&gt;

</description>
      <category>beeceptors</category>
      <category>automation</category>
      <category>testing</category>
      <category>2fa</category>
    </item>
    <item>
      <title>Cucumber (BDD) is good for Software Testing?</title>
      <dc:creator>Gokul E</dc:creator>
      <pubDate>Sun, 20 Aug 2023 13:54:00 +0000</pubDate>
      <link>https://dev.to/gokul2172001/cucumber-bdd-is-good-for-software-testing-407h</link>
      <guid>https://dev.to/gokul2172001/cucumber-bdd-is-good-for-software-testing-407h</guid>
      <description>&lt;p&gt;Hello guys it’s been a very long time and I’m very happy to connect with you with this blog about cucumber BDD.&lt;/p&gt;

&lt;p&gt;Cucumber Testing&lt;br&gt;
Cucumber BDD is a testing tool for software tester who are working along side with developers. BDD means “Behavior Driven Development”.&lt;br&gt;
Cucumber provides easily understandable testing scripts that even non-technical people also understand.&lt;/p&gt;

&lt;p&gt;The reason behind that is it uses “Gherkins Language” or in other words it uses a very normal English which we using for communication every single day.&lt;/p&gt;

&lt;p&gt;You know because of that it mainly used for acceptance testing and part of automation testing too.&lt;br&gt;
I thought of learning a new tool takes lot of days and difficult but you know what you won’t believe me that I learned this in just 2 days entirely.&lt;br&gt;
Even you and all of us can learn in less that 2 days and of course if you have know English. It is also not hard at all.&lt;/p&gt;

&lt;p&gt;BDD is behavior driven development which is a framework that base is functionality of the application. It file consist is filename.feature file.&lt;br&gt;
Cucumber tool was really written in RUBY Programming language which I don’t know anything about this ah ah ah. Now It can support lot of other languages like almost every single one platform.&lt;/p&gt;

&lt;p&gt;Cucumber tool is fast and easy to understand also understands java, python, ruby, typescript and more. It gives us end to end testing framework.&lt;br&gt;
It understands the even plain English as testcases.&lt;/p&gt;

&lt;p&gt;As I mention earlier feature file is doing very big role as storing a test scenarios and can be executed from the feature file of course. Each functionality have it’s own feature file.&lt;/p&gt;

&lt;p&gt;For example,&lt;br&gt;
Feature: Login Page&lt;br&gt;
Scenario: Login Functionality&lt;br&gt;
Given user navigates to the website &lt;a href="https://facebook.com/login"&gt;https://facebook.com/login&lt;/a&gt;&lt;br&gt;
And user logs in by using email id as “&lt;a href="mailto:facebook123@gmail.com"&gt;facebook123@gmail.com&lt;/a&gt;” and password as “Password123”&lt;br&gt;
Then user should be login successful.&lt;/p&gt;

&lt;p&gt;We can also use more that one scenarios in this file as well.&lt;br&gt;
There are tag that we can control the work flow of the testing like “@module1” and whatever we want to.&lt;/p&gt;

&lt;p&gt;You may think if cucumber understands a normal English then why it requires a gherkins language then?&lt;br&gt;
It is because gherkins language gives a a specific keywords to the scripts to understand more.&lt;br&gt;
Those keywords are,&lt;br&gt;
Feature&lt;br&gt;
Scenario&lt;br&gt;
Given&lt;br&gt;
When&lt;br&gt;
Then&lt;br&gt;
And&lt;br&gt;
But&lt;br&gt;
Background&lt;/p&gt;

&lt;p&gt;Just like we seen in the last example.&lt;/p&gt;

&lt;p&gt;Maybe another time I’ll tell about cucumber with code example and test cases and test scenario has already explained in my other articles. See you guys later.&lt;/p&gt;

&lt;p&gt;Thank you and happy learning………….&lt;/p&gt;

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