<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sai Vignesh on Medium]]></title>
        <description><![CDATA[Stories by Sai Vignesh on Medium]]></description>
        <link>https://medium.com/@saivignesh2309?source=rss-8101a0fe9f86------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BxmLOViQD1XUplZHd_2Vfg.jpeg</url>
            <title>Stories by Sai Vignesh on Medium</title>
            <link>https://medium.com/@saivignesh2309?source=rss-8101a0fe9f86------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 19:08:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saivignesh2309/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Visual Regression testing in Web Applications]]></title>
            <link>https://medium.com/@saivignesh2309/visual-regression-testing-for-web-applications-d9b717c6a7a2?source=rss-8101a0fe9f86------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9b717c6a7a2</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Sai Vignesh]]></dc:creator>
            <pubDate>Wed, 04 Jul 2018 13:04:18 GMT</pubDate>
            <atom:updated>2018-07-04T13:08:17.744Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*XjGbASUjtamw_cqmWHqIrA.jpeg" /></figure><p>There are many different ways to test a web application. Most of the times, we use end-to-end and integration tests for both frontend and backend code. The end-to-end UI tests catch a wide variety of bugs but at the most part, these bugs are related to the functional issues and not specific to UI.</p><p>Functionality will always be a key factor in why someone uses your product or service. But it’s important that your user interface is easy to use, too. With so many users on different platforms, you have to maintain product quality across platforms. Depending on the user’s screen size and resolution, an interface can change dramatically from screen to screen. With continuous deployment enabled for most web based application, it is essential to have meaningful and reliable UI tests. Anything merged to master will ship to production automatically with no human checks, so these tests are the last guarantee that basic features of our product work. To effectively test a complex, interaction-heavy application, we need a uniquely powerful UI testing tool. This article captures the idea of Visual regression test for different builds by means of comparing the screenshots of web application.</p><h3>Problem Statement</h3><p>To analyse the changes in UI of the web application post deployment for every build by comparing screenshots taken after each deployment with that of the ones before deployment.</p><h3>Key requirements</h3><ol><li>It must cover both JavaScript and CSS regressions. If an element is accidentally set to display:none, that’s just as bad as its renderer crashing.</li><li>It must be highly reliable. When tests are flaky, developers stop paying attention and bugs slip by.</li><li>It must run quickly. These tests need to be run before every deployment, and slowing down the deploy pipeline is unacceptable.</li><li>It must be easily written by test engineers. Language and tooling should be simple.</li></ol><p>The <strong>goal</strong> is to come up with different open-source tools that can meet the given requirements for solving this problem statement.</p><p><strong>HTML based validation Vs Image based validation:</strong></p><p>HTML validation of the UI focuses on the presence of UI elements on the screen, not on their exact position and other properties. Where as Image based validation of UI would produce very precise results in terms of the UI elements and their properties. Image based validation is needed if the User Experience needs to be precise on every change of the application.</p><h3>Using Blink-Diff for Visual regression</h3><p>Blink Diff is an open-source lightweight image comparison tool written in JavaScript. The reason to choose Blink Diff over other open-source tools is because it could be easily integrated with the any automation code and the logic behind the Blink-Diff is very simple and easy to write code using it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yfsz-UXE31LW9SNhXWKa1w.png" /><figcaption>Image diff generated by blink-diff</figcaption></figure><h3>Approach</h3><p>All tests revolve around taking UI screenshots, then comparing those screenshots to a known “stable set” of images recorded against a clean version of the app under test. These screenshot comparisons are the assertion of record for tests. To use this node package inside the existing automation code, include <strong>“blink-diff”: “1.0.13”</strong> as a dependency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/0*DxSodHcwiwAQEOo9" /></figure><p><strong>Sample code</strong></p><blockquote><em>var BlinkDiff = require(‘blink-diff’);</em></blockquote><blockquote><em>var diff = new BlinkDiff({</em></blockquote><blockquote><em>imageAPath: // path for first image</em></blockquote><blockquote><em>imageBPath: // path for second image</em></blockquote><blockquote><em>thresholdType: BlinkDiff.THRESHOLD_PERCENT,</em></blockquote><blockquote><em>threshold: 0.01, // 1% threshold</em></blockquote><blockquote><em>imageOutputPath: //path for output image</em></blockquote><blockquote><em>});</em></blockquote><blockquote><em>diff.run(function (error, result) {</em></blockquote><blockquote><em>if (error) {</em></blockquote><blockquote><em>throw error;</em></blockquote><blockquote><em>} else {</em></blockquote><blockquote><em>console.log(diff.hasPassed(result.code) ? ‘Passed’ : ‘Failed’);</em></blockquote><blockquote><em>}</em></blockquote><blockquote><em>});</em></blockquote><ul><li><strong>imageAPath </strong>— Defines the path to the first image that should be compared</li><li><strong>imageBPath </strong>— Defines the path to the second image that should be compared</li><li><strong>imageOutputPath </strong>— Defines the path to the output-file. If you leaves this one off, then this feature is turned-off.</li><li><strong>thresholdType </strong>— Type of threshold check. This can be BlinkDiff.THRESHOLD_PIXEL and BlinkDiff.THRESHOLD_PERCENT (default: BlinkDiff.THRESHOLD_PIXEL)</li><li><strong>Threshold </strong>— Number of pixels/percent p below which differences are ignored (default: 500) — For percentage thresholds: 1 = 100%, 0.2 = 20%</li></ul><h3>Time optimization</h3><p>Having a separate suite for this Visual regression testing and loading through all the webpages to take screenshot and comparing them would certainly be time consuming task as the test run will be long. In order to overcome this, screenshots can be taken at each web page in the existing test suites during the test run and later comparing them with the screenshots of previous test run to produce the UI differences as a part of that test suite run result itself.</p><h3>Future work</h3><p>The idea behind visual regression testing is to make sure that there are no inconsistencies in the UI. For now, the test just does pixel by pixel comparison of two screenshots and produces the image-diff, this means that even unwanted details such as changes date, time, etc., will show up in the image diff. In future to overcome these issues, the automation suite should be able to understand the context of the UI and and show only the context related diff in the report. This will require some time to be invested and some considerable effort to understand how Machine Learning could be utilised to solve our problem and provide the required results.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9b717c6a7a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preparation Guide for AWS Associate Developer Certification]]></title>
            <link>https://medium.com/@saivignesh2309/preparation-guide-for-aws-associate-developer-certification-7951ac52c032?source=rss-8101a0fe9f86------2</link>
            <guid isPermaLink="false">https://medium.com/p/7951ac52c032</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[learn]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[certification]]></category>
            <dc:creator><![CDATA[Sai Vignesh]]></dc:creator>
            <pubDate>Fri, 08 Jun 2018 08:46:51 GMT</pubDate>
            <atom:updated>2018-06-08T08:55:53.180Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone! this is Sai Vignesh. In case you are preparing for AWS Associate Developer Certification or planning to do one in near future. Below are some quick tips that will help you to clear the exam.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*XkH3ROmJJVSJXKYSIme2cQ.jpeg" /></figure><h3>Mark your calendar:</h3><ul><li>Certification exam is not as much difficult as it seems to be. You will easily clear the exam if you have some knowledge of cloud computing concepts.</li><li>Dedicate 2–3 hrs daily for study. Don’t try to memorize the things, rather try to understand the concepts. Book a date according to you planned schedule.</li></ul><h3>Get started with AWS free-tier account</h3><p>Sign-up for the <a href="https://aws.amazon.com/free/">free-tier</a> and test as much as you can for free. Play around the basic services, create lot’s of resources and example apps on java, php, ruby or other platform.</p><h3>Online resources to boost up your speed :</h3><ol><li>There are various online courses available on the internet which will help you in understanding core concepts of Amazon Web Services with labs for practicing.</li><li>I would recommend <a href="http://udemy.com/">udemy.com</a> as I found it cost effective. Also, provides video lectures, quizzes and hands on labs which helped me in understanding each required service thoroughly.</li></ol><h3>Analyse the syllabus :</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*b-M3-z93wHNYUkWo__i0pA.png" /></figure><ol><li>Refer “AWS_certified_developer_associate_blueprint” for complete understanding of the syllabus.</li><li>Designing and Developing, Deployment and Security weighs highest percentage in the exam.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/0*b1sxpfXzp0ctG65V" /></figure><h4>1. AWS Fundamentals (10%)</h4><p>This section will test basic knowledge about AWS Services. If you have programmed with AWS, most likely you will be able to answer these questions. The challenge will be to have knowledge about all the services involved as part of this exam. AWS blueprint says that the following services are part of the certification:</p><ul><li>Core AWS Services (S3, IAM, RDS, EC2, ELB, EBS, VPC, etc.)</li><li>DynamoDB</li><li>Simple Queue Service (SQS)</li><li>Simple Notification Service (SNS)</li><li>Simple Workflow Service (SWS)</li><li>AWS Elastic Beanstalk</li><li>AWS CloudFormation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1WcsMSJl2tRdpDB77FgiTQ.png" /></figure><h4>2. Designing and Developing (40%)</h4><p>This is the section with the highest weight at 40%. You will be required to know the general architecture and use cases for all the AWS services mentioned above. There can be questions on the feasibility of using a particular service for a particular use case, or which service (or group of services) will be best suited for a given use case. Another consideration is how to most efficiently use a service. Some types of questions might be:</p><ul><li>Given a dataset what will be the best indexing strategy for DynamoDB for a given use case.</li><li>The best strategy for designing S3 keyspace and ACLs has given a particular type of dataset and use case.</li><li>Consistency model of each of these services. For example, S3 old objects are eventually consistent while DynamoDB has a consistent read option.</li><li>Various limitations of the Services. For example in S3, how many buckets can you create an account, in Dynamo how many indices can you create, size limitations on hash-partitions, etc.</li></ul><p>Also, there will be questions on the most common APIs for these services. For example, some of the most popular S3 APIs are GetObject, ListBucket, PutObject, etc. and for SQS it is CreateQueue, SendMessage, DeleteMessage, etc. One will have to know all these basic APIs for all the AWS services mentioned above. This is quite a big task, as S3 itself has hundreds of APIs. I would recommend going through all the APIs, but if you are short of time, go through the most common ones. (I might have a post later about most common APIs for each of the service above, so keep checking back to get latest blog post updates).</p><p>There can be questions on various SDKs available for AWS too. For example, AWS officially supports the Java and Php SDK along with others and there can be questions on these SDKs. Hands-on experience with coding using at least one of these SDKs is also a must</p><h4>3. Deployment and Security (30%)</h4><p>This section will have questions on various ways infrastructure on AWS can be secured. There could be multiple ways infrastructure can be secured and knowledge of these methods is necessary. For example, VPC public &amp; private subnet, EC2 Security Groups, S3 bucket policies and ACLs, IAM user &amp; groups, etc.</p><p>Deployment part of this section has more developer-centric deployment questions. For example, given a use case, will it be better to use pre-configured AMI or CloudFormation for deployment, integration of deployment management tools like Chef with AWS services, and so on.</p><h4>4. Debugging 20%</h4><p>This section has questions on the most efficient ways to debug applications deployed on AWS. Questions range from some of the most common mistakes like launching public facing servers in private subnet, improper ACLs for S3 objects, improper IAM policies, etc</p><h3>Read FAQs :</h3><ol><li>You should have complete understanding of Major AWS services like EC2, S3, VPC, DynamoDB, ELB, RDS, SQS, SNS and their different use cases, functionality etc etc.</li><li>FAQs covers all the “what a particular AWS Service can and can’t do”.</li></ol><h3>Read recommended white papers :</h3><p>Read recommended White papers, especially the Security one which contributes to almost 20% of the exam. You can find all AWS Whitepapers in <a href="https://aws.amazon.com/whitepapers/">https://aws.amazon.com/whitepapers/</a>.</p><h3>Give practice exams :</h3><ol><li>Try giving “AWS Certified Developer — Associate Level Sample Exam Questions” to boost up your confidence.</li><li>Once you are confident enough, take a paid online practice exam in a timed environment hosted by AWS testing partners.</li></ol><p>Follow these tips and give the exam with full preparation. The certification will be in your mail. I will be posting about most of the AWS Core services needed to be covered in the upcoming posts.</p><h3>References :</h3><ul><li><a href="http://awstrainingandcertification.s3.amazonaws.com/production/AWS_certified_developer_associate_blueprint.pdf">http://awstrainingandcertification.s3.amazonaws.com/production/AWS_certified_developer_associate_blueprint.pdf</a></li><li><a href="http://d0.awsstatic.com/training-and-certification/docs/AWS_certified_developer_associate_examsample.pdf">https://d0.awsstatic.com/training-and-certification/docs/AWS_certified_developer_associate_examsample.pdf</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7951ac52c032" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>