<?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 Hanna Aprilia on Medium]]></title>
        <description><![CDATA[Stories by Hanna Aprilia on Medium]]></description>
        <link>https://medium.com/@aprilia-hanna95?source=rss-9ab8fd68d06e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hRu1Vtb1rgeBQmaG.</url>
            <title>Stories by Hanna Aprilia on Medium</title>
            <link>https://medium.com/@aprilia-hanna95?source=rss-9ab8fd68d06e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:28:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aprilia-hanna95/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[Data-Driven Testing Implementation on RestAssured with TestNG]]></title>
            <link>https://blog.dot.co.id/data-driven-testing-implementation-on-restassured-with-testng-a0c493c5f071?source=rss-9ab8fd68d06e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0c493c5f071</guid>
            <category><![CDATA[restassured]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Hanna Aprilia]]></dc:creator>
            <pubDate>Mon, 29 Jul 2024 01:56:43 GMT</pubDate>
            <atom:updated>2024-07-29T01:56:43.390Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3embH1oqJ8dtE760" /><figcaption><a href="https://unsplash.com/photos/macbook-pro-showing-programming-language-xrVDYZRGdw4">Photo</a> by <a href="https://unsplash.com/@emilep">Emile Perron</a></figcaption></figure><p>As a QA engineer, you often encounter testing scripts that require multiple data sets to effectively test various scenarios. While it’s possible to hardcode these inputs and run the tests, this approach is inefficient and time-consuming. Instead, you can streamline your testing process by using the Data-Driven Testing (DDT) methodology, which allows you to efficiently manage and execute tests with different data inputs.</p><p><strong>Data-Driven Testing (DDT)</strong> is a software testing methodology that involves executing test scripts using a variety of data sets. By running the same test script multiple times with different inputs, testers can efficiently evaluate both positive and negative scenarios simultaneously. This approach enhances test coverage and reliability by allowing the testing of various data conditions. Test data is typically stored in external sources such as spreadsheets or CSV files, making it easy to manage and update. In this article, we’ll explore how to implement DDT using <strong>RestAssured</strong> for API automation testing.</p><h3><strong>Data-Driven Test Workflow</strong></h3><p>The DDT workflow involves several steps that are usually carried out by QA engineers to perform testing.</p><h4>Define the scenario tests</h4><p>Prepare several scenario tests that can be executed using the DDT method. These are typically scenarios where the same test logic needs to be executed with multiple sets of data.</p><h4>Data Test</h4><p>Create test data based on the defined scenario test. The test data can be organized into a table and stored in external files such as CSV, Excel, XML, JSON, or databases.</p><h4>Design the test scripts to be data-driven. This involves:</h4><ol><li>Separating the test logic from the test data.</li><li>Creating generic test scripts that can read and process data from external sources.</li><li>Implement a mechanism in the test scripts to read data from external sources.</li></ol><h4>Execution and validation the test result</h4><p>The test script can be executed directly based on the test data that has already been prepared. The testing will iterate based on the existing test data and the conditions specified in the test scenario. Testing results can be immediately validated whether or not they meet expectations, ensure that the application behaves as expected for each set of input data.</p><h3><strong>Data-Driven Testing with RestAssured</strong></h3><p>Before jumping into the main topic, here is the basic DDT on RestAssured. The goal is to compare the distinction between the basic method and using an external file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fow1_zM9EePnV6EJ7hKi-A.png" /></figure><p>Note: Please observe the code above!</p><p>The code above is about using data provider in the listUserManyPages method, so user wants to see the list of users on every page. The number of pages is two, so there is page 1 and page 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uyQ4mILNQRLD3Ims7ms85g.png" /><figcaption>Page Method</figcaption></figure><p>DataProviders are not declared on top of the methods like other TestNG Parameters but it has a method of their own, as you can see the code above the DataProvider method name is page . The method page has 2 values, that are 1 and 2 . Then, the values will pass to the listUserManyPages method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gykdrZa8eHWhGc4PxaLOXQ.png" /><figcaption>listUserManyPages Method</figcaption></figure><p>listUserManyPages method has @Test annotation. If you want to use the values from DataProvider method, the @Test annotation should have a dataProvider configuration. As you can see in the code above, the name of dataProvider in the @Test annotation is dataProvider = &quot;page&quot; . If you have a lot of test data to define in the DataProvider method, it is not efficient to type them one by one and it can affect human error. So, here is DDT using Excel file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dQ22dGDh4lpYVwHV-tj0Hg.png" /><figcaption>Data Test in Excel</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vAyPV2_5xIhN6HxjGPk_PA.png" /><figcaption>ExcelConfiguration Class</figcaption></figure><p>Note: Please observe the code above!</p><p>First thing is creating ExcelConfiguration class for reading the value data in Excel. In this class, there is getMultipleDatas method contains fis variable for reading input bytes from a file in a file system src/main/resources/Users.xlsx , and sheet1 variable for reading the value data from Users sheet. After that, there is code for the system to read which row and cell the data is in. Then return arrayExcelData array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nSL9uLSmZpZdh7jQPxKSRQ.png" /></figure><p>The code above is about using dataProvider in CreateMultipleUsers method. User wants to create multiple users. There are three users&#39; names in the Excel file (you can see on screenshot above), so the expectation is that the testing execution should create three users with different names.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xTB6xDPIxZJu6gWjrziUKw.png" /><figcaption>dataTest Method</figcaption></figure><p>dataTest method calls getMultipleDatas from ExcelConfiguration class and input total rows and cells. Then, @Test annotation on CreateMultipleUsers method should have dataProvider = &quot;dataTest&quot; configuration to pass the value from Excel file. Run the test and here is the output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mXcTbWcIQI7vMBKw7SxfQ.png" /></figure><h3><strong>Conclusion</strong></h3><p>DDT makes testing easier by managing the test data in external files. Here are the advantages:</p><ul><li>You can use the test data in another class test or the same class test, there is no need to make any changes to the script since it will just read the test data from the file and execute the test case.</li><li>The test data and the script are separate in different locations. If there is a change in the test data, it will make it easier to maintain the test data.</li><li>It will not take a long time to run a bunch of test cases and avoid human error.</li></ul><p><em>DOT Indonesia is a rapidly growing technology company specializing in web, mobile, and blockchain development. We are looking for highly motivated, independent, smart, and agile individuals ready to make a significant impact on the world. Interested in joining us? Visit the </em><a href="https://career.dot.co.id/"><em>DOT Indonesia career website</em></a><em> and find the position that suits you. See you!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0c493c5f071" width="1" height="1" alt=""><hr><p><a href="https://blog.dot.co.id/data-driven-testing-implementation-on-restassured-with-testng-a0c493c5f071">Data-Driven Testing Implementation on RestAssured with TestNG</a> was originally published in <a href="https://blog.dot.co.id/">DOT Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some Strategies to Succeed Test Automation]]></title>
            <link>https://aprilia-hanna95.medium.com/some-strategies-to-succeed-test-automation-da20053304f9?source=rss-9ab8fd68d06e------2</link>
            <guid isPermaLink="false">https://medium.com/p/da20053304f9</guid>
            <category><![CDATA[stlc]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Hanna Aprilia]]></dc:creator>
            <pubDate>Tue, 04 May 2021 03:33:50 GMT</pubDate>
            <atom:updated>2021-05-24T01:20:04.109Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*_jS6Of8Z4yrgGn0shDW59w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@homajob?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Scott Graham</a> on <a href="https://unsplash.com/s/photos/strategy?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The software developer has a lot of kinds. One of the kind is as Quality Assurance Engineer or Tester. As you can read about it, their biggest job is to ensure the product software or services appropriate based on its requirements. But, how do they ensure it? Absolutely, the answer is testing. There are two types of testing, manual testing, and automation testing.</p><p>These types have different methodology processes, automation testing is a software testing technique that performs using testing tools to execute test cases. But this topic is not about testing itself instead we talk about setting up fundamentals for successful test automation. Before we do automation testing, there are a lot of considerations.</p><ol><li>What is your goal for starting test automation and what do you want to accomplish?</li><li>who is going to participate in your test automation?</li><li>How do you plan for the execution?</li></ol><p>First of all, you have to find your goal. Before you begin any planning, take a moment to decide it. What will you accomplish by doing an automation test? Or is it really necessary to do that? Make sure this goal is at the forefront of all of your decisions because your subsequent actions in regards to test automation should be aimed toward this goal. Then don’t forget to communicate your goal to the team. You have to convince them because their awareness is important to help you accomplish your goal.</p><p>After you find your goal, the second consideration is you should assign someone who is going to write the automation test script. Well, the greatest option is to hire a test automation engineer. But it does not mean that your tester can not do that, be sure to account for the fact that your tester has to invest in a learning automation test.</p><p>The last consideration is how do you plan to execute it? It is the most important part because it will impact your goals. You must consider which test cases should be automated because not all of them we can automate. Probably, you would think that you can test all of them because you would automate these tests. Well, then you must change your mind because there is a cost that comes with automation. The time and maintenance required are not something to be taken lightly. The next consideration is choosing tools for your automation project such as programming language or codeless offering.</p><p>Do not forget to have a maintenance plan for your automation project. It is because your development of the product might have changed, so your automation code must adjust to it. In addition, you can put all your strategies in the test plan document.</p><p>Alright, guys! That’s all that I can inform you. I hope my post will help you in the future. I’m sorry for my bad writing actually, this is my first time in Medium.</p><p>Happy Reading!!</p><p>Source:</p><ul><li><a href="https://testautomationu.applitools.com/setting-a-foundation-for-successful-test-automation/">Setting a Foundation for Successful Test Automation</a></li><li><a href="https://www.guru99.com/all-about-quality-assurance.html">What is Quality Assurance(QA)? Process, Methods, Examples</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da20053304f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>