<?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 Laxman Bhosle on Medium]]></title>
        <description><![CDATA[Stories by Laxman Bhosle on Medium]]></description>
        <link>https://medium.com/@laxman.bhosle?source=rss-ed67c8e14ade------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6HzVrtfWDOtl1AHq8eMu3A.jpeg</url>
            <title>Stories by Laxman Bhosle on Medium</title>
            <link>https://medium.com/@laxman.bhosle?source=rss-ed67c8e14ade------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:22:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@laxman.bhosle/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[Basics of MQTT in API testing for QA’s]]></title>
            <link>https://medium.com/@laxman.bhosle/basics-of-mqtt-in-api-testing-for-qas-7433ad2773d2?source=rss-ed67c8e14ade------2</link>
            <guid isPermaLink="false">https://medium.com/p/7433ad2773d2</guid>
            <dc:creator><![CDATA[Laxman Bhosle]]></dc:creator>
            <pubDate>Sat, 08 Jun 2024 12:12:01 GMT</pubDate>
            <atom:updated>2024-06-08T12:12:01.071Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we will discuss about MQTT basics and Setting up the MQTT fx for testing, Basically MQTT is used for async communication within the application.</p><h3><strong>Understanding the MQTT</strong></h3><p>MQTT (Message Queue Telemetry Transport) is a lightweight publish-subscribe protocol that is used on top of TCP/IP. MQTT uses a message broker that dispatches messages between senders that publish them, and receivers that are interested in these messages. Same client can both publish and subscribe messages.</p><p>Each message is published to a specific topic. The topic is the message routing information, and it is simply a string that can have slash separated hierarchy levels (e.g. “office/floor1/temperature”). Clients subscribe to these topics, and the broker delivers all messages sent with matching topics to them. It is also possible to use wildcards to easily subscribe to multiple topics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3TPg-ULf2M5-sH9v.png" /></figure><h3><strong>What is MQTT fx?</strong></h3><p>MQTT. fx aims to be a quick and easy-to-use desktop tool for MQTT debugging and testing. For about 10 years, it is continuously extended (and bug-fixed) by Jens Deters. The first part of this blog post was an overview of the major features of MQTT</p><h3><strong>Setting Up MQTT Fx on your local Machine</strong></h3><p>Download MQTT fx from <a href="https://www.softblade.de/download/"><em>here</em></a></p><p>After downloading, You will see following screen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l8Rnsc1LRLLy5hHZD1AnGg.png" /><figcaption><strong>MQTT screen without Licence key</strong></figcaption></figure><p>Without Licence key if you click on apply you will see following screen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*vBJYBkV5riQVhbBlFvKAyg.png" /><figcaption><strong>Licence error</strong></figcaption></figure><p>You need to create account by adding following details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xmIFYBVD17cofsnPMM-JYw.png" /><figcaption>Registration for getting licence to use MQTT fx</figcaption></figure><p>After requesting for free trial for MQTT fx , you will get Licence key on your registered Email</p><p>Then copy paste Licence Key here as shown below and then click on apply</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V8WQC6tlpreoaZ1k8Xwc9w.png" /><figcaption>Licence screen</figcaption></figure><p>After setting Licence key MQTT Fx is ready to use and we can do the testing and we can start testing endpoints.</p><p>First of all we have to set up details of endpoints, we have to click on settings icon as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4tcsTAzq50LOzRfC7_H3eg.png" /></figure><p>After clicking on setting icon , another page will open where we can fill the details of endpoint, we need to add broker details make connection between subscriber and consumer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E-3ElMspNS5pUOBQbYFeEg.png" /><figcaption>Broker details</figcaption></figure><p>After adding above details click on ok and then apply , after this setting we will be able to make connection between subscriber and consumer and we will be able to hit API and get those responses, I didn’t share endpoint details because of confidentiality the process is almost same</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wEnCCirLe7spqXevYvHV-g.png" /><figcaption>API testing screen</figcaption></figure><p>So you can test API which are async in nature and these details are enough for getting started with testing APIs for Quality analyst.</p><p>Hope you enjoyed the MQTT learning and it was helpful blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7433ad2773d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accessibility testing in Software testing]]></title>
            <link>https://medium.com/@laxman.bhosle/accessibility-testing-in-software-testing-c44ecf9939b1?source=rss-ed67c8e14ade------2</link>
            <guid isPermaLink="false">https://medium.com/p/c44ecf9939b1</guid>
            <dc:creator><![CDATA[Laxman Bhosle]]></dc:creator>
            <pubDate>Tue, 21 May 2024 11:53:17 GMT</pubDate>
            <atom:updated>2024-05-21T11:53:17.552Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9afmb3uUw_T-EetC4dO3ug.jpeg" /></figure><p>There are a billion of individuals are living in the world with some of disabilities, integrating accessibility features across platform iOS, Android, macOS, and Windows is a foundational aspect of creating inclusive, universal experiences. Today, more people than ever are using online services and websites for everything from shopping to learning. However, not everyone can access these services in the same way. That is why accessible features empower users with disabilities, facilitating interaction with digital content in previously unimaginable ways.</p><p>But still the presence of these features is not enough. The true litmus test of accessibility lies in meticulous testing, a process that ensures these functionalities are not only theoretically available but are practically usable, offering a seamless and enriching experience to all users, irrespective of their physical or cognitive abilities. This testing is vital for identifying and mitigating barriers, ensuring that technology serves as a bridge to inclusion rather than a barrier.</p><p>Read my article to find out how accessibility features and their thorough testing can create a more inclusive digital world for everyone.</p><h3>Empowering Every User: Why It Matters</h3><p>So, what exactly is accessibility testing? Imagine you are making sure that anyone can easily open every door in a building — whether they are with disabilities, carrying a heavy load, or have any other condition that might make a standard doorknob a challenge.</p><p><a href="https://qatestlab.com/services/manual-testing/accessibility-testing/?utm_source=blog&amp;utm_medium=article&amp;utm_campaign=accessibility-testing&amp;utm_term=3042023"><strong>Accessibility testing</strong></a> helps ensure that people of all abilities can use the software. This includes those who are blind, have low vision, are deaf or hard of hearing, or have cognitive or motor disabilities. Such individuals utilize many types of assistive technology, from screen readers to sip-and-puff devices to speech recognition.</p><p><strong>Examples of such software:</strong></p><ul><li><strong>Speech Recognition Software</strong> — converts the spoken word into text, which is used to log into the computer;</li><li><strong>Screen Reader Software</strong> — used to read the text displayed on the screen;</li><li><strong>Screen Magnification Software</strong> — used to increase the scale of text and facilitate reading for visually impaired users.</li></ul><p>Screen readers are specialised software applications designed to enable individuals who are blind or have low vision to access the content displayed on a computer screen through the use of speech synthesis or braille output. These tools interpret and vocalize the contents and layout of the screen, including text and control elements, to provide users with a comprehensive understanding of the interface. It is crucial to recognize, however, that the functionality of screen readers varies. Some may primarily focus on translating the site’s code into audible commands, such as Google’s ChromeVox, while others offer a more detailed auditory and visual feedback experience. This variance underscores the necessity of accounting for different screen reader capabilities in the accessibility testing to ensure compliance and inclusivity.</p><p>For example, those with hearing difficulties often rely on visual indicators to recognize these changes. A variety of tools, which are available at no cost, can assist in evaluating the range and loudness of audio outputs. Incorporating such tools into the testing strategy can enhance the detection of issues that may affect users with hearing impairments. Accessibility encompasses a broad spectrum of disabilities, affecting how individuals interact with websites and software.</p><p>Accessibility testing extends far beyond mere technical compliance. Here are some compelling reasons why incorporating it into the development process is paramount:</p><ul><li><strong>Moral and social responsibility. </strong>Accessibility testing ensures everyone has equal access to the opportunities and resources offered by the digital world.</li><li><strong>Legal compliance.</strong> Many countries have established accessibility regulations for public-facing websites and software due to <a href="https://ec.europa.eu/social/main.jsp?catId=1202">the European Accessibility Act.</a> These regulations mandate specific accessibility standards to ensure equal access for individuals with disabilities.</li><li><strong>Improved brand reputation.</strong> Demonstrating a commitment to accessibility portrays the brand as inclusive and socially responsible. This fosters trust and loyalty with a wider audience, potentially leading to increased brand recognition and positive customer sentiment.</li><li><strong>Improved User Experience (UX) for all.</strong> Accessibility principles often lead to cleaner code, simpler interfaces, and a more intuitive user experience for everyone.</li><li><strong>Reaching a broader market. </strong>A significant portion of the global population has some form of disability. By making the software accessible, companies tap into a vast and often overlooked market segment, potentially expanding customer base and driving business growth.</li></ul><p>Accessibility testing can actually improve the product for everyone. Making a site or app accessible often makes it better for all users. Simpler navigation, clearer design, and more intuitive interfaces benefit everyone, not just those with specific accessibility needs.</p><p>In short, accessibility testing isn’t just a box to check. It is an essential part of creating digital products that truly serve everyone. By embracing accessibility from the start, we can build a more inclusive digital world that’s better for all of us.</p><p>In upcoming article we will see accessibility testing with all setup and practical for both iOS and Android platform</p><p>Thank you …</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c44ecf9939b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Charles Proxy in Mobile App Testing]]></title>
            <link>https://medium.com/@laxman.bhosle/charles-proxy-in-mobile-app-testing-ba4e2c543d89?source=rss-ed67c8e14ade------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba4e2c543d89</guid>
            <dc:creator><![CDATA[Laxman Bhosle]]></dc:creator>
            <pubDate>Thu, 26 Oct 2023 07:13:21 GMT</pubDate>
            <atom:updated>2023-10-26T09:04:19.629Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is Charles Proxy ?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JfsQ1Pu9SPqggGajQ82OZg.png" /></figure><p>Charles Proxy is a web debugging tool that monitors the network calls and decrypts the web traffic. It helps in understanding the content in your network call. E.g. Requests sent to the server and data fetched from the server etc. This network debugging tool can read the web traffic of Windows, Android and IOS devices.</p><p>And mostly It is used to map data locally so we can test all possible scenarios while doing test. The main benefit is we don’t need to rely on actual response coming from server.</p><h3><strong>What is Proxy ?</strong></h3><p>Proxy, the authority to represent someone else. Proxy server or Software acts as intermediate between endpoint device &amp; Internet.</p><p>The request and responses are passed through proxy, so we can view or log traffic of our devices. Proxy server also helps to cache data, block malicious traffic. As it is capable of caching data, hitting the server again and again can be avoided.</p><h3><strong>Installation Of Charles Proxy</strong></h3><p>You can download charles proxy desktop for Mac OS, Linux and Windows Just Click <a href="https://www.charlesproxy.com/download/latest-release/">Here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45KuqENx-49P1OyPquNQcw.png" /><figcaption>Charles Proxy with Network Calls</figcaption></figure><p>charles proxy contains two kinds of views structure and sequence. Structure helps to segregate the different host URL and sequence help us to identify the order of each calls based on time, duration, size and more.</p><h3>Setting Up Of Charles Proxy</h3><p>Just follow below steps to set up</p><h4>1. Set the SSL Proxy</h4><p>Goto Proxy in the option and then select <strong>SSL Proxying setting</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iNdhhZjpPcYNpqhrwbKyxA.png" /><figcaption>Setting Up SSL Proxying setting</figcaption></figure><p><strong>2. Register Charles Licence</strong></p><p>Goto Help option above and click on register with key if you have any otherwise you will be able to use charles proxy for 30 min and then again you have to close and open again</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kFco4eYECFG23ci6OHdorQ.png" /><figcaption>Register Charles Licence</figcaption></figure><p><strong>3. Select MacOS Proxy</strong></p><p>Select MacOS Proxy if you are using MacOS otherwise you can skip this step</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d44pLBIqxpoS656Mcc3f2Q.png" /><figcaption>MacOS proxy</figcaption></figure><p><strong>4. SetUp IP address for MacOS &amp; Mobile Phone</strong></p><p>Here is the main step , we have to make sure that Charles IP and IP address in mobile phone is exactly same and both are connected to one network connection then and only then we can record network calls</p><p>First of all check the IP address in charles to copy in mobile device</p><p>Goto <strong>Help</strong> -&gt;<strong> SSL Proxying</strong> -&gt;<strong>Install Charles Root Certificate on Mobile Device or Remote Browser</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o_MTqIWsugCpxizhOYH8kQ.png" /><figcaption>Check IP address &amp; Port id</figcaption></figure><p><strong>5. SetUp the same IP Address in Mobile Device</strong></p><p>Goto <strong>Settings</strong> -&gt;<strong>WI-FI</strong> -&gt;Select <strong>Connected wifi</strong>-&gt; Select <strong>Configure Proxy</strong> -&gt; Select <strong>Manual</strong> -&gt; Provide the same IP &amp; Port Address</p><p>Download the charles certificate using this URL <a href="http://chls.pro/ssl">http://chls.pro/ssl</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*meYj-DlxEMZbi3BU6NoG1g.png" /><figcaption>Configure Proxy in mobile device</figcaption></figure><p><strong>6. Trust the Certificate to see complete details of Network call</strong></p><p>Goto <strong>Settings -&gt; General -&gt; About -&gt; Certificate Trust Settings -&gt; </strong>Enable toggle here of the charles proxy and that’s it for Setting Up the Charles</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jvue1LmnSA8kiQmBVhoGew.png" /></figure><h3><strong>Useful features of Charles Proxy</strong></h3><p><strong>1.Local &amp; Remote Mapping</strong></p><p>Once you work hard to edit the response, you can make your app to hit it again and again, by saving the response and mapping the URL to locally saved response. If you have different web API for prod and QA and you wanna test in both web API, then you can change the URL automatically by remote mapping.</p><p><strong>2.Record Request &amp; Response</strong></p><p>If you find any bugs with respect to received response, you can immediately save the response of any API calls which helps to easily reproduce the bug <strong><em>(or)</em></strong> you can save the entire Charles session to identify the exact scenario of the defect.While we play with bugs which can be reproduce intermittently, its always better to save the entire Charles session.</p><p><strong>3.Throttling</strong></p><p>Throttling helps us to test our application in different network condition (2G, 3G, 4G, 2Mbps,100Mbps). Remember, throttling wont help you in high speed if your network doesn’t support high speed.</p><p><strong>4.Break-Points</strong></p><p><em>A break-point is an intentional stopping or pausing place in a program, put in place for debugging purposes.</em></p><p>Yes, Charles allows us to pause and do editing the request and response. When our UI and functionalities completely depend on the server response then we can customize the response to identify different behavior based on data. Complex and time consuming scenarios like session expired can be easily recreated with this. Moreover this allows us to work without changing the data in the server, so my colleagues wont be disturbed.</p><p>There are a lot of feature provided by Charles Proxy to explore.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba4e2c543d89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A glance on Mobile App Testing]]></title>
            <link>https://medium.com/@laxman.bhosle/a-glance-on-mobile-app-testing-bf69ed259ee8?source=rss-ed67c8e14ade------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf69ed259ee8</guid>
            <category><![CDATA[mobile-app-testing]]></category>
            <dc:creator><![CDATA[Laxman Bhosle]]></dc:creator>
            <pubDate>Tue, 08 Nov 2022 08:49:55 GMT</pubDate>
            <atom:updated>2022-11-08T08:49:55.141Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YwDhQjkud69u3Tmh_PdxAg.png" /></figure><p>Today mobile phones have evolved from simple communication devices to a gadget that can basically do everything. Whether it be ordering food, availing a cab service or simply looking for directions, purchasing the items from different enterprise app… application it can all be done using a mobile phone. This is only possible due to the wonderful world of mobile applications. In this “mobile application testing” article, we will be talking about the testing process of such applications.</p><p><strong>Below are the list of topics that we are going to discuss</strong>:</p><ul><li>Introduction to Mobile Application Testing</li><li>Why is mobile application testing important?</li><li>Types of Testing performed in Mobile application</li><li>Advantages of Mobile Testing Application</li><li>Challenges in Mobile App Testing</li></ul><h3><strong>Introduction to Mobile Application Testing</strong></h3><p>Mobile application testing is the process every application developed for handheld devices has to go through. This, obviously, is to assure a certain level of quality before an application is released into the market place (app store/ play store). Mobile application development life cycle generally tends to be much shorter than others, hence, heavily depend on mobile application testing for their success. Applications get tested on the basis of security , their functionality, usability, accessibility etc. This increases the general efficiency of the application on all fronts while also increasing the reliability factor amongst users.</p><h3><strong>Why is Mobile Testing important?</strong></h3><p>Enterprises are already in the mobile apps business, they are competing for the top place in app downloads. While a lot believe that the success of mobile apps depends on the kind of program and its capabilities, some of it does believe that the true differentiation between a mobile application that sells and one that does not is its performance. It is not just about having a cool app, users are likely to abandon a program if its functionality is problematic, regardless of how promising it may seem. On the contrary, even the simplest applications could be lucrative for a business if it works flawlessly.</p><p>Around half of the poor reviews on the app stores are based on concerns such as crashes, poor performance, and battery drain. It’s a fact that there’s no major software engineering field rifer with possible hazards other than mobile development.</p><p>Everyone has experienced a sudden surge of frustration which results in a deleted app. That is why mastering the art of mobile testing is increasingly growing in relevance for any organisation that wants to stay competitive. The majority of software companies already recognised the value and relevance of investing in mobile application development. That is why it only makes sense to extend the investment to testing mobile apps. This will deliver more accurate and faster results.</p><h3>Types of Testing performed in Mobile application</h3><p>There are two different types for testing mobile applications, on the basis of how they are performed, namely, manual testing and automated testing.</p><p><strong>Manual Testing</strong> : <br>In Manual Testing, We majorly focus on user experience. Analysis and evolution of application’s functionality , security , performance and usability are done through user in an exploratory process. This ensures that your application lives up to a standard of user-friendliness. This type of testing is generally time-consuming as bugs tend to take time to get recognized. Therefore, as a rule of thumb, 20% of an application’s testing should be performed manually through the help of alpha and beta releases, while the rest should be automated.</p><p><strong>Automation Testing:<br></strong>Automation plays very important role in mobile application because it avoids repetition of work .In this process, an array of test cases are set up which should generally cover 80% of the testing process. The percentage is not a rule, but a general guideline followed in the software industry. Here is a list of test cases that are generally performed through this particular approach –</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*MLeyQ-QiNw52mZReCUUjsA.png" /></figure><ul><li>Automate most tedious manual test cases</li><li>Automate test cases that can be easily automated</li><li>Automate test cases for most frequently used functionality</li><li>Automate test cases that are impossible to perform manually</li><li>Automate test cases with predictable results</li></ul><p><strong>Advantages of Mobile Testing Automation<br></strong>Automation of mobile testing has proven to be really helpful. Below is a list of advantages that come along with the automation of mobile application testing –</p><ul><li>Increases testing efficiency</li><li>Enhances regression test case execution</li><li>Saves a bunch of time, while also executing more test cases</li><li>Same test scripts can be performed again and again</li><li>Test scripts can be run parallel on multiple devices</li></ul><h3><strong>Challenges in Mobile Application Testing</strong></h3><p>Mobile application testing differs from the traditional process of testing desktop or web applications. This means it comes with its own host of challenges.</p><p>The major challenge is due to the diversity of mobile devices. Today, there are a bunch of screen sizes, operating systems, hardware options, software versions etc. As of 2021, there are more than three billion android devices on the market, and some of them have even started adopting the notch fashion which brings in challenges of its own. Let me list down the major issues faced in mobile application testing –</p><ul><li><strong>Quick Rollouts</strong> — Mobile application in industry is one that acts upon bugs quickly; always thinking about new features. The faster these get rolled out, the longer an application remains trending.</li><li><strong>Multi-Platform Compatibility</strong> — Apart from Android and iOS, there are a bunch of other operating systems executed across a multitude of platforms. This only increases the time taken to test a certain application.</li><li><strong>Connectivity Modes</strong> — Mobile phones are subjected to different modes of connectivity, for example, roaming, 5g,4g, 3g, edge, etc. Applications must be tested in all these various modes.</li><li><strong>End-to-End Testing</strong> — The mobile phone industry demands that applications integrate seamlessly, and be able to access data from the backend to be produced on the frontend, without any problems. Due to the diverse nature of mobile phones, this becomes a herculean task.</li><li><strong>Availability of Tools</strong> — There are a number of tools today that automate mobile application testing. Choosing the right one for your application is essential to the successful and efficient testing of the application.</li></ul><p>This is about the mobile app testing in brief and in upcoming articles we will focus on Mobile Test Automation in detail<br>Thank You!</p><h3><strong>References:</strong></h3><ul><li>Hands-On Mobile App Testing: A Guide for Mobile Testers and Anyone Involved in the Mobile App Business Book by- Daniel Knott</li><li><a href="https://www.edureka.co/blog/?utm_source=medium&amp;utm_medium=content-link&amp;utm_campaign=mobile-application-testing">Edureka’s official site.</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf69ed259ee8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Web Page using Selenium Tool]]></title>
            <link>https://medium.com/@laxman.bhosle/automating-web-page-using-selenium-tool-df85d29b3941?source=rss-ed67c8e14ade------2</link>
            <guid isPermaLink="false">https://medium.com/p/df85d29b3941</guid>
            <dc:creator><![CDATA[Laxman Bhosle]]></dc:creator>
            <pubDate>Wed, 22 Apr 2020 14:46:13 GMT</pubDate>
            <atom:updated>2020-04-22T14:46:13.986Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is Automation Testing ?</strong></h3><p><strong>Automated testing</strong> or <strong>test automation is</strong> a method in software <strong>testing</strong> that makes use of special software tools to control the execution of <strong>tests</strong> and then compares actual <strong>test</strong> results with predicted or expected results. <br>At times certain scenarios may be tricky to replicate manually, this is when <strong>Automating </strong>of the test comes in handy.</p><h3><strong>Advantages of Automation Testing</strong></h3><ul><li>Increases Efficiency</li><li>Human Intervention is not required while execution</li><li>Better speed in executing tests</li><li>Wider test coverage of application features</li><li>Test Frequently and thoroughly</li></ul><h3><strong>Disadvantages of Automation Testing</strong></h3><ul><li>Test maintenance is costly in case of playback methods</li><li>Proficiency is required to write the automation test scripts.</li></ul><h3><strong>Locator and it’s Types</strong></h3><p>To automate the web page ,we need locator to locate unique web element in web page so we can perform operation like click, inserting values, drag and drop etc…</p><p><strong>Different types of Locators</strong></p><ul><li>ID</li><li>Name</li><li>Class Name</li><li>Link Text Name</li><li>Xpath</li><li>CSS Selector</li><li>DOM XPath (Document Object Model)</li></ul><p>We can also create custom XPath using tag names</p><h3><strong>How to inspect Web Element</strong></h3><p>Steps to inspect the web page<br>1.Open the web page which is going to automate<br>2.Press fn +F12 or ctrl+shift+I in chrome browser<br>3.Press ctrl+shift+c to activate web element selector<br>4.Select Web Element that you need</p><p>that’s it for this refer following video</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jZ4MQdo8Cd_SDl-WyYPihw.gif" /></figure><h3>Let’s Automate a Simple Web Page using Selenium Web Driver</h3><p>Steps to set up environment in your PC or Laptop</p><ul><li>Install Eclipse or IntelliJ</li><li>Create Project using Maven or Gradle Build tool</li><li>Download Chrome Driver from here and paste in project <a href="https://chromedriver.chromium.org/">https://chromedriver.chromium.org/</a></li><li>Create Test Class “ContactFormTest”</li><li>add Selenium web driver dependency</li></ul><pre>dependencies <strong>{<br>    </strong>testCompile <strong>group</strong>: <strong>&#39;junit&#39;</strong>, <strong>name</strong>: <strong>&#39;junit&#39;</strong>, <strong>version</strong>: <strong>&#39;4.12&#39;<br>    </strong>compile <strong>group</strong>: <strong>&#39;org.seleniumhq.selenium&#39;</strong>, <strong>name</strong>: <strong>&#39;selenium-java&#39;</strong>, <strong>version</strong>: <strong>&#39;3.141.59&#39;<br>}</strong></pre><p>Download compatible version of chrome driver (same version of Chrome Browser that is installed in your machine)</p><p>@Before This annotation is used setting up the environment which is required in the following we need WebDriver object</p><pre>WebDriver <strong>driver</strong>;<br>@Before<br><strong>public void </strong>setUp() <strong>throws </strong>Exception {<br>     <strong>driver </strong>= <strong>new </strong>ChromeDriver();<br>     <strong>driver</strong>.get(<strong>&quot;https://demoqa.com/html-contact-form/&quot;</strong>);<br>}<br></pre><p>@Test This annotation is used to show this is the test script and we can write multiple test script in single class</p><pre>@Test<br><strong>public void </strong>name() {<br>    <strong>driver</strong>.findElement(By.<em>className</em>(<strong>&quot;firstname&quot;</strong>)).sendKeys(<strong>&quot;Laxman&quot;</strong>);<br>    <strong>driver</strong>.findElement(By.<em>id</em>(<strong>&quot;lname&quot;</strong>)).sendKeys(<strong>&quot;Bhosale&quot;</strong>);<br>    <strong>driver</strong>.findElement(By.<em>name</em>(<strong>&quot;country&quot;</strong>)).sendKeys(<strong>&quot;India&quot;</strong>);<br>    <strong>driver</strong>.findElement(By.<em>id</em>(<strong>&quot;subject&quot;</strong>)).sendKeys(<strong>&quot;I like to watch movies and to play cricket&quot;</strong>);<br>    <strong>driver</strong>.findElement(By.<em>xpath</em>(<strong>&quot;//input[@type=&#39;submit&#39;]&quot;</strong>)).click();<br>}</pre><p>@After this annotation is used to indicate that what should happen Test is executed we have closed driver in our script</p><pre>@After<br><strong>public void </strong>tearDown() <strong>throws </strong>Exception {<br>    <strong>driver</strong>.close();<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*41phBenTdk77cNMqfnR38g.png" /><figcaption>See the bottom left box shows green tick means test is passed …If it is red that means Test is failed</figcaption></figure><h3>Conclusion</h3><p><strong>Automated Testing</strong> Saves Time and Money</p><p>Manually repeating these <strong>tests</strong> is costly and time consuming. Once created, <strong>automated tests</strong> can be run over and over again at no additional cost and they are much faster than manual <strong>tests</strong>. <strong>Automated</strong> software <strong>testing</strong> can reduce the time to run repetitive <strong>tests</strong> from days to hours.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df85d29b3941" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>