<?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 Elaine Chong on Medium]]></title>
        <description><![CDATA[Stories by Elaine Chong on Medium]]></description>
        <link>https://medium.com/@elaine.chong.ym?source=rss-729ce80c466f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*T0XTUjViL69WCPTpU8ePyQ.png</url>
            <title>Stories by Elaine Chong on Medium</title>
            <link>https://medium.com/@elaine.chong.ym?source=rss-729ce80c466f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:55:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@elaine.chong.ym/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[IOS Network Interception Tool]]></title>
            <link>https://medium.com/@elaine.chong.ym/ios-network-interception-tool-d3fb306dd497?source=rss-729ce80c466f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3fb306dd497</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[frontend-testing]]></category>
            <category><![CDATA[automation-testing]]></category>
            <dc:creator><![CDATA[Elaine Chong]]></dc:creator>
            <pubDate>Fri, 16 Feb 2024 04:26:53 GMT</pubDate>
            <atom:updated>2024-03-01T06:28:08.393Z</atom:updated>
            <content:encoded><![CDATA[<p>Background~~~~</p><p>Whenever we are triaging Front End automation cases, we will want to know the network calls made during execution so that we can accurately investigate the cause of failure.</p><p>For effective debugging, we will need the following information; request-id, Http status code and Http response.</p><p>Since Apple security is really tight, they have made it very challenging for external parties to tap into the network call logs without external proxies/ tools. In this article, I will be sharing a tool that I have implemented to overcome those challenges.</p><h3>Introduction~~~</h3><p>Alright, le’ts get started with the tool. For this tool it is important to note that we will need the App’s source code. We are using the XCUITest framework.</p><h3>System design~~~</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CuLSZ-x9XATxL0YX2eOsAg.png" /></figure><h4>A: Launch app</h4><p>Our test code is separated from the App’s source code, as such we will need to find out a way for these 2 codes to communicate and pass information to each other. The only point of communication between our test framework and the app code is during app launch. The instance lanchArguments allows us to set arguments that can be passed to the app upon launching the application.</p><p>What arguments should we pass?</p><p>Unique identifier of the device/ unique identifier of the test case. It will be used as a key to store the relevant logs. In my system I have decided to use the device unique identifier as the key.</p><h4>B: Intercept code</h4><p>We will need to find the single point of communication between the app code and its server. After finding that single point, we can intercept by logging the network calls made and send the logs into our test server. Do note that we do not want to overload the app server by duplicating call and most importantly it will not be accurate as we only want network calls initiated from the app itself. Hence, we will simply log the request and response from the app and send these logs into the test server with the unique identifier previously set.</p><p>During the interception, we can also implement some filtering conditions to ensure that we are only logging useful information. E.g. Failed Http calls, Http calls with error response.</p><h4>C: Store network logs</h4><p>During app launch, we will create a file with the unique identifier as the filename. During case execution, we will continuously write into the file whenever a network call is made or whenever the desired call to be logged is made.</p><h4>D: Retrieve network logs</h4><p>Upon case completion, we will read the file contents during teardown and print the retrieved logs. For my system design since we already store the test case logs, I decided that it is not required us for to store the log files. Hence, during the teardown we will flush the contents of the log file so that its ready for the next execution.</p><p><strong>Restrictions from Apple</strong></p><ol><li>You can use idb to retrieve network activity and information but these are limited. In a well developed app, developers will often be able to hide the network calls from idb fo security reasons. This means you might be able to see the request made but not its request and response contents. More about idb: <a href="https://fbidb.io/docs/overview/">https://fbidb.io/docs/overview/</a></li><li>Running on physical device vs simulators. When we are running cases against simulators, we are able to retrieve the device information within the app code such as the device models and its unique identifiers. However when we are running against physical devices, Apple will mask these information under a generic name such as ‘Iphone’ . This is an intentional move from Apple to prevent app codes from being able to retrieve such information from the users as part of user privacy protection.</li></ol><p>There are definitely multiple ways to go about this tool and I am still in the journey of exploring. Hopefully this shines light on anyone who is looking at starting something similar!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3fb306dd497" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feature testing VS Automation testing]]></title>
            <link>https://medium.com/@elaine.chong.ym/feature-testing-vs-automation-testing-f2fa409163e0?source=rss-729ce80c466f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2fa409163e0</guid>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Elaine Chong]]></dc:creator>
            <pubDate>Sun, 18 Dec 2022 08:50:09 GMT</pubDate>
            <atom:updated>2022-12-18T08:50:33.345Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*ylWAuFFZNS1vSmeyxZJTVg.jpeg" /></figure><p>It’s been 2.5 years since I started my journey as a QA and I thought it would be a good time to reflect and share my takeaways so far. So here it goes…</p><h4>— — -Sneak peak of my past— — — -</h4><p>I stumbled upon this field during my job hunt after graduation. Due to circumstances then, I decided to give it a try and so…I had no idea what to expect and what I was going to do beyond the surface understanding of “testing”.</p><h4>— — Starting off as a feature QA — — -</h4><p>While every company have different variations of naming the role; Testing Engineer, QA Engineer, System QA etc.. I still enjoy the term “Feature QA” the most since I think that it best represents my day to day role.</p><p>As a feature QA, I got the opportunity to be part of the entire SLDC cycle in my company. From feasibility studies up till tech design reviews, I was invited to give my inputs and raise concerns if any. While some might think that testing starts after implementation, it actually begins right at the start of the SLDC cycle.</p><p>These are some of the common questions that often flash through my mind during those meetings:</p><ul><li>Do we already have an existing feature that could be built on to satisfy the new requirement?</li><li>Would the new feature cause conflicts with other existing features?</li><li>Is the flow introduced inline with expected user behaviour?</li><li>What are the error handlings required to ensure user experience is not impacted?</li><li>Do we need QA support from other teams to help with the testing phase? (Such as data preparation, etc..)</li></ul><p>While there is an endless list, these are some of the main ones that can help to reduce feature after implementation. Especially since “ prevention is better than cure” ^^</p><h4>— — — Feature testing: Creating a test plan — — —</h4><p>Personally, I like to split my test planning into 2 sections:</p><ul><li>Business requirement testing</li><li>Tech requirement testing</li></ul><p>Business requirement testing is focused on ensuring that minimally everything stated in the PRDs are covered. After which, then you branch off into scenarios that are not explicitly stated in the document and come up with your expected results. (And this is where all the bugs come from)</p><p>Tech requirement testing is focused on the architecture design itself. Based on the tech stack used, catching possible unhandled scenarios such as unexpected API request scenarios, broken message queues, race conditions. If anything I took away from tech testing is that ANYTHING can happen.</p><p>Combine them together and boom, you get a comprehensive test plan. At the beginning of my test journey, I always rushed into my test plan only to realise that I had a lot to change later on during the test implementation when I got to understand my feature change better. That’s when I learnt the importance of understanding what you are dealing with first in both business logic and system logic. This helps a great deal in reducing wasted efforts.</p><h4>— — — Feature testing: Test execution— — —</h4><p>Every QA has their own preferred method and belief in executing test cases. I guess manual testing and automation testing will always coexist but it just a matter of what extend are those form of testings used.</p><p>It is dependent on the priorities of the team, the timeline provided and the nature of the change. For me, I am a firm believer of automation testing since it is highly reusable and when it comes in very handy when there is tech-refactoring or minor code changes. Also you can continuously build up your test case base which means your coverage increases over time. However, at the same time I also recognised that the time taken to execute these cases can be considerably much longer as compared to manual testing.</p><p>As a feature QA, my priority then was to complete my testing within a reasonable amount of time which meant that I would not have the luxury of automating every test case. Do keep in mind that for feature QAs the highest priority is to ensure that the product is well tested for deployment. That is then when I had to make my judgement on which segment of my test cases could be automated and which segment would be manually tested.</p><p>Generally, I would always prefer to test the end-to-end flow manually just to go through the flow of a user and make sure that all the services are integrated well. This is because, often you have different developers working on a single feature (Web dev, RN dev, Backend dev). API testing is always done using the automation framework for me since either way we would have to use postman to test so why not just automate them right away. Also, when any bugs are fixed or minor code change done during the testing process, you can always re-run the test-suites. It saves a ton of time without having to re-test the diff scenarios manually for APIs.</p><h4>— — — Transitioning into an automation QA— — —</h4><p>Transitioning into an automation QA, I learned that the focus of an automation QA is very much different. The main focus is on developing test cases that are low maintenance and highly stable.</p><p>This is referring to the data preparation for test cases and being able to handle possible unstable environment issues gracefully. Previously as a feature QA, the focus is on coverage and generating the automated test cases as fast as possible (which means I could get away with using hardcoded dat when required). However for automation QAs, there is a lot of focus on regression testing. Which means that the test cases with hard coded data that is of high maintenance is out of the question. More time and effort is then placed on script writing for the data preparation and also countering possible environment un-stability (e.g. with retries at times) when needed. This helps greatly in reducing triaging efforts and more accurate failure reports.</p><h4>— — —My takeaway so far — — —</h4><p>The skillset of a feature QA and automation QA is actually very different and each has it own niche but yet they are closely intertwined. With knowledge of automation, feature QAs would be able to conduct their testing more efficiently such as running scripts for data preparations to reduce the amount of manual effort. With feature knowledge, it would be much easier for the automation QA to develop high coverage test cases and more effective triaging.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2fa409163e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Overview: Creating a Dashboard using influxdb, jenkins and Grafana for QA Automation]]></title>
            <link>https://medium.com/@elaine.chong.ym/overview-creating-a-dashboard-using-influxdb-jenkins-and-grafana-for-qa-automation-da834d25d2e6?source=rss-729ce80c466f------2</link>
            <guid isPermaLink="false">https://medium.com/p/da834d25d2e6</guid>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[influxdb]]></category>
            <category><![CDATA[qa]]></category>
            <dc:creator><![CDATA[Elaine Chong]]></dc:creator>
            <pubDate>Sun, 26 Sep 2021 06:39:48 GMT</pubDate>
            <atom:updated>2022-12-18T08:51:48.055Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi all, I would like to share about how I created a Grafana dashboard, helping us make sense of the QA AT statistics.</p><p>Brief overview of the tech stack involved:</p><ul><li>Grafana</li><li>Influx db</li><li>Jenkins</li><li>Golang</li></ul><p>Before we get started, let me share with you why I see the need of this dashboard and the purpose of building it. Coming from a QA who does software testing and has been contributing to automation testing, there are times when such questions occur in my mind:</p><ul><li>What is the rate of increate in our test case coverage?</li><li>Are my test cases effective?</li><li>Soooo many APIs, which APIs do I not have sufficient coverage of??</li></ul><p>After we have reached a substantial amount of test cases running daily, we will need insights on the effectiveness of these test cases.</p><h3>System overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*28jlfbP8_6U9cs8wTu5K4Q.png" /></figure><h4>Generating test reports</h4><p>First, you will need to generate a test report after running all the test cases so that we can perform the necessary analysis. In this case we are using the JUnit Plugin for the generation of test reports.</p><p>Reference: <a href="https://www.jenkins.io/doc/pipeline/steps/junit/">https://www.jenkins.io/doc/pipeline/steps/junit/</a></p><h4>Data Injection</h4><p>As we want the flow from the creation of data to injection data to be a continuous integrated process, we will have another Jenkins node to actually run the data injection script.</p><p>This data injection script mainly takes in the test report generated earlier and does the necessary data cleaning before injecting into the database, which in this case; Influx Database.</p><h4>Introduction to influx db</h4><p>Influx db is a time series database that is able to handle high volumes of reads and writes to the database. It is very much different from MySQL a relational database whereby we do not have to specify the relationship between each tables and declarations of the datatype is much looser.</p><p>You can install influx over here: <a href="https://docs.influxdata.com/influxdb/v1.7/introduction/installation/#influxdb-oss-installation-requirements">https://docs.influxdata.com/influxdb/v1.7/introduction/installation/#influxdb-oss-installation-requirements</a></p><p>In Influx, databases are referenced as buckets and tables are referred to as measurements. During the design of the database, you will need to consider which key do you want to store as tags/fields. This is essential for the InfluxQL used in Grafana later on.</p><p>I have compiled a list of commonly used commands in Influx:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFfxmsFHymrQSoLRdaK4hA.png" /></figure><h4>Grafana</h4><p>Grafana is an open-source web application used widely for data visualisations. It is able to support a wide range of databases and it has an alert function (so you don’t have to keep staring at it 24/7!!)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da834d25d2e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>