<?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 Mayur Suryanarayan on Medium]]></title>
        <description><![CDATA[Stories by Mayur Suryanarayan on Medium]]></description>
        <link>https://medium.com/@Mayursuryanarayan?source=rss-3b6b4784aa71------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Mayur Suryanarayan on Medium</title>
            <link>https://medium.com/@Mayursuryanarayan?source=rss-3b6b4784aa71------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:50:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Mayursuryanarayan/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[TestOPS]]></title>
            <link>https://medium.com/@Mayursuryanarayan/testops-ed3afa323d99?source=rss-3b6b4784aa71------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed3afa323d99</guid>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Mayur Suryanarayan]]></dc:creator>
            <pubDate>Fri, 15 May 2020 16:30:24 GMT</pubDate>
            <atom:updated>2020-05-15T16:32:29.847Z</atom:updated>
            <content:encoded><![CDATA[<h3>TestOps</h3><h4>Methodology for Automating Software Testing Operations</h4><figure><img alt="Testing Quote — All code is guilty until tested" src="https://cdn-images-1.medium.com/max/1024/1*rZjFAdZK2m2q88WpUjwlPQ.jpeg" /></figure><p>Testops is an evolved version of testing practice that streamlines testing activities assuring quality of service. As the term “Testops” suggests, it is a amalgamation of continuous delivery (devops) with testing operations. In this article we will discuss the testops methodoloy and its implementation.</p><h4>Traditional Practice</h4><p>Agile software organizations focus on delivering continuous product updates and as a result devops teams &amp; processes are the focal point. Creating automated pipelines accelerates the delivery as required. This approach however, comes with a bottleneck — quality checks. QA teams are put under a great deal of pressure to ensure test coverage with speed. With complex applications having multiple end-points, micro-services, interconnected services and components, there are lots of points of validation &amp; verification for a tester to be involved with. Testing all these combinations slows down the delivery process.</p><p>Other usual issues include</p><ul><li>Flaky tests</li><li>Maintenance efforts</li><li>Inflated execution time</li><li>Cost</li><li>Badly written test code that do not adhere to coding standards</li></ul><h4>What does testops bring in?</h4><p>Imagine a testing framework that continuously tests &amp; validates the product at different levels. A test framework, that, not only does integrate the automated tests in CI/CD pipeline, but also maintains the entire testing ecosystem. A framework that entrusts the responsibility of testing to everyone.</p><p>As described in <a href="https://www.keysight.com/in/en/assets/7018-06546/white-papers/5992-3771.pdf">Testops Manifesto</a>, testops is a devops style automation for QA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q9tH5u1MrarltM1I0npo1A.png" /></figure><p>Testops integrates framework with tools like Selenium, Docker, BrowserStack, Jenkins to name a few, in such a way that test are as robust as possible with lowest execution time. The core idea is to integrate all the tools &amp; frameworks in a pipeline for the tester to pick and choose as needed. But its not just the tools that empowers the testops methodology. Testops needs to detect failures very early in the process for the team to react and respond quicker. This is where the concept of test pyramid comes in —</p><figure><img alt="Software Testing Pyramid" src="https://cdn-images-1.medium.com/max/843/1*wwetMl8numEE4Y64R8dqtA.png" /></figure><p><a href="https://www.360logica.com/blog/sneak-peek-test-framework-test-pyramid-testing-pyramid/">Test pyramid</a> is a concept developed by Mike Cohn which states that you need more low level tests than high-level tests. This allows to speed up the test execution and reduce costs. Composition of different types of tests, covers a multitude of alternative code paths and test combinations.</p><p>An implementation view of testops would be a similar to devops systems like Microsoft Azure or Jenkins. To begin with, tester selects the tools and framework — unit testing frameworks like JUnit or Jest, integration testing tools that test the glue code, REST API testing tools like RestAssured, etc. Next step would be to specify the execution infrastructure like docker or selenium grid with integrated application performance check agents. Finally, selection of the reporting &amp; logging mechanisms. Once the infrastructure is in place, the inherent process will drive the testing. Source code checkins will trigger the unit tests, component/api/integration tests and if required the UI/Visual Regression tests.</p><p>The way UI tests built also need an overhaul. Simple page object model will no longer sustain in the agile model. Advanced AI based recognition techniques need to be utilised for identifying the visual elements. Appium has a <a href="https://appiumpro.com/editions/39-early-stage-ai-for-appium-test-automation">custom AI-based locator</a> that locates icons and other fields on the mobile platform based on a images. There are other tools like <a href="https://www.testcraft.io/">Testcraft</a> for instance, which provide for automated test case healing and test case recommendations.</p><figure><img alt="Carina Infrastructure — http://qaprosoft.github.io/carina/" src="https://cdn-images-1.medium.com/max/1024/1*kA18L0uDMG837VPgTSZbJg.png" /></figure><p><a href="https://qaprosoft.github.io/carina/">Carina</a>, an open source testops application has the following infrastructure setup for UI based testing on various platforms . It used elastic search for log &amp; result analysis. Docker/Kubernetes for managing the execution instances — many of these tasks can be automated thus freeing up the bandwidth for testers to focus on developing better tests.</p><p>Building a proper testops infrastructure is a challenging task, however, it must not be done just because its needed. Once must consider the below points while designing it —</p><ul><li>Multiple platform coverage</li><li>Test maintainability</li><li>Transparency of results for efficient management</li><li>Full integration with CI/CD processes</li></ul><h4>Advantages</h4><ul><li>Build and test infrastructure cohesion — with a tighter coupling with the product, tests monitor the product closely and provide quick feedback. Facebook, in their <a href="https://engineering.fb.com/developer-tools/predictive-test-selection/">article</a>, have developed mechanism that performs predictive test selection allowing only for selective tests to be run when a code is committed. Further, they have also developed algorithms that detect which areas of code will break on commit and fix it.</li><li>Test coverage — With test pyramid inclusion, testops provides for higher coverage with a large base of unit tests.</li><li>Fine grain control on what tests to run and when</li><li>You don’t have to test the whole system every time</li><li>Integration of processes/practices like AI-ops insight, realiability testing, chaos engineering, provides faster dev-test closed loop feedback and failure visualization methods</li></ul><h4>Conclusion</h4><p>One must understand that testops is a methodology and not just about tools. Investing money and time in slow, fragile &amp; complex UI automation solutions will give diminishing returns. Organizations/testing teams practicing testops should try molding their test architesture to be as bespoke as possible to adapt to changing business needs.</p><p>As a tester, it gives exposure to every other technology and one may feel over burdened with learning all technologies and tools. But one must view it positively — it is an opportunity to extend our skillset.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed3afa323d99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Test case Generator — Part 2]]></title>
            <link>https://medium.com/@Mayursuryanarayan/automated-test-case-generator-part-2-36cae4b67414?source=rss-3b6b4784aa71------2</link>
            <guid isPermaLink="false">https://medium.com/p/36cae4b67414</guid>
            <dc:creator><![CDATA[Mayur Suryanarayan]]></dc:creator>
            <pubDate>Thu, 14 Mar 2019 17:34:31 GMT</pubDate>
            <atom:updated>2019-03-14T17:40:15.678Z</atom:updated>
            <content:encoded><![CDATA[<p>In continuation to my earlier <a href="https://www.google.com/url?sa=t&amp;source=web&amp;rct=j&amp;url=https://medium.com/%40djmay84/automated-test-case-generator-part-1-4249b2b58617&amp;ved=2ahUKEwi60KCxloLhAhUWEnIKHekXDIoQjjgwCXoECAIQAQ&amp;usg=AOvVaw0RdOFPpUVVtJuy8pl4Wos2">post</a> , we will address how to optimize the test automation framework to enable the capability for auto-generating selenium test cases.</p><p>Continuing our discussion on wrapper classes, a single package should be created containing classes for each HTML element. These classes will contain all possible operations that would be performed on that element. For example, a textbox class would contain the methods:</p><ul><li>click()</li><li>type()</li><li>clear()</li><li>clearAndType()</li><li>getText()</li></ul><p>These methods will contain the respective selenium statements for performing the actions. These methods will also contain statements that will contribute to execution reports. These verification reports need not be repeated after each action.</p><p>Encompassing all these classes in a single class would provide a single object to be called within the tests. We can create a class “Framework” that contains the declaration for all of the HTML element classes. This technique can be extded to include the general page object classes (the one containing generic XPATHs) as well. This enhances the tests further to use the statements like -</p><p>Framework app = new Framework ();</p><p>app.button.click(app.getTextbox(“Submit”));</p><p>Now we see a pattern emerging out of this. All script statements will follow the same style of method calls. This is where the fun starts. We have narrowed the scope of actions that will be performed on the application and the statement pattern — which means, we can have a UI built that can generate these scripts. There are many ways to do this — MS Excel based form or a Java Swing UI or a HTML web page and many others.</p><p>Taking MS Excel form as a simplest example, we can design a form that adds actions in the same order to a row of Excel cells. These cells can then be iterated to generate test cases. For example —</p><p>A form can contain the fields:</p><ul><li>Test case name — text box</li><li>HTML Element — drop-down containing values Button, Textbox, etc</li><li>Action — will change based on earlier selection</li><li>HTML Element Value — Textbox, if its a text box element selected, then value to be entered. This field should dynamically appear</li><li>Add Step — button. This will add the statements in an Excel row</li></ul><p>Our Excel sheet will contain columns:</p><ul><li>Test case Name</li><li>Action to be Performed</li></ul><p>We can now have a macro that iterates through each row and converts it to a Java statement. The macro can create a “.java” file with the name of the test case as file name and class name and a testng method with the operations from each row.</p><p>A more robust solution would be use of com.sun.codemodel library to dynamically generate java statements. A java swing application can be created with a UI just like the one above. However the difference would be — the swing application will create a package in the desired location and add the requisite import statements annotations without having to get involved with the senators of Java.</p><p>An even more robust but complex solution will be to develop a web application that has the same kind of UI, with the additional capability of reusing other test case steps. The test case steps can themselves be displayed visually and understandable to all stakeholders.</p><p>While we have addressed the issue of script development, we still have not addressed how to maintain these. We will continue this in the next part of the series.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36cae4b67414" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Test case Generator — Part 1]]></title>
            <link>https://medium.com/@Mayursuryanarayan/automated-test-case-generator-part-1-4249b2b58617?source=rss-3b6b4784aa71------2</link>
            <guid isPermaLink="false">https://medium.com/p/4249b2b58617</guid>
            <dc:creator><![CDATA[Mayur Suryanarayan]]></dc:creator>
            <pubDate>Wed, 13 Mar 2019 18:08:56 GMT</pubDate>
            <atom:updated>2019-03-13T18:25:15.853Z</atom:updated>
            <content:encoded><![CDATA[<p>Test automation has always been a buzz words ever since it’s conception. The idea of a script mimicking a human’s actions to discover flaws in the software application has increased the software quality by many folds.</p><p>While everyone dives in to an test automation initiative, teams don’t fully understand it’s progression.</p><ul><li>To begin with, the test automation script development takes few months, but it’s maintenance consumes twice as much than its development effort.</li><li>The scripts are developed by testers and not Java developer. Most of these scripts do not follow the coding guidelines and lack a proper strategy in script development. Duplicate code and random objects and variables plague the entire framework causing increased execution time.</li><li>Testers have a tedious job of figuring out the XPATH for every HTML element being used in the script. With newer architectures, the HTML pages are auto-generated each time the page is accessed causing the script to fail. While a generic XPATH can be created, it’s still adds to development effort.</li><li>Tester is focused more on how to test than what to test. With this tunnel vision, scripts are not robust enough to cover all possible scenarios.</li><li>In an agile environment, testers are even more stressed to create scripts that cover all the scenarios for a user story.</li><li>With a separate automation team, the development team is disconnected with the application functionalities and generally focus on automating regression testing cases. With agile methodology, these scripts need constant maintenance in each Sprint.</li></ul><p>All in all, the efforts do not do justice in any way. Once a release is complete, in most cases, these test cases are of little value.</p><p>So how do we address this? By auto-generating the test cases. It sounds nice and simple, but it’s easier said than done. There are tons of research papers published year after year trying to accomplish this. This is also a common topic for many PhD thesis. Many methodologies have been published that address this challenge in various ways. A simple Google search will result in topics like Model-Based testing, finite state automata and many others.</p><p>So in this series, I will attempt to solve the problem <strong>partly </strong>by changing some aspects of the test automation framework.</p><p>There are tons of web development frameworks that have reduced the efforts for a web application development exponentially. Developers can change the look and feel of a module, or change the content rapidly. So, to take apart the problem one cog at a time, am focusing the scope of this series to only ERP based systems like SAP, Workday, Oracle ERP suites, etc. The workflow in these systems remains more or less constant and so does the UI.</p><p>So let’s begin.</p><p>The first area that normally gets impacted due to a change is the XPATH. Typically all automation frameworks follow the page object model, where each web page in the workflow is modelled as a Java class containing the XPATHs of all the HTML elements in that page and the operations to be performed on that page. This approach needs to be modified. For an ERP system, the UI components are generally laid out in the same way across all screens which means we can generalize all the XPATHs. How do we do this?</p><p>As an example of Oracle financial suite, all the textboxes are laid out similarly in a the pages. So a generic XPATH can be designed based on the adjacent label:</p><p>public By getTextBox(String fieldName){</p><p>return By.xpath(“</p><p>\\div\span(text()=” +fieldName +”)\parent:div\input”);</p><p>}</p><p>This method can be placed in a class named PageGeneralObjects and can be used across all scripts.</p><p>This method can now be used as :</p><p>Textbox.type(getTextBox(“Amount”),”100$”);</p><p>Notice how the statements get more meaningful and smaller.</p><p>You will also have noticed a new class and method — Textbox.type()</p><p>This brings us to the next point — wrapper classess. Instead of using the selenium methods directly, enclose them in a method. The Textbox class has a type() method defined that uses the driver.getElementBy() statement inside it. Similar classes should be developed for each of the HTML elements like textarea, labels, radio buttons, checboxes etc. Each class will contain all the possible actions that can be performed on that element.</p><p>Our test cases begin to get more meaningful and clearer and testers have to write lesser code. This method also promotes code reusability on much larger scale.</p><p>In the next part, we will look at some more aspects of the automation framework.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4249b2b58617" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>