<?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 Sh Yin (Shene) Lim on Medium]]></title>
        <description><![CDATA[Stories by Sh Yin (Shene) Lim on Medium]]></description>
        <link>https://medium.com/@shyinlim?source=rss-ccc1b414092e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RLqfBpDlAz9hTo6MIbRFJw.jpeg</url>
            <title>Stories by Sh Yin (Shene) Lim on Medium</title>
            <link>https://medium.com/@shyinlim?source=rss-ccc1b414092e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:09:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shyinlim/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[Shadow Testing with Production Traffic: A GoReplay + Diffy POC Walkthrough]]></title>
            <link>https://medium.com/@shyinlim/shadow-testing-with-production-traffic-a-goreplay-diffy-poc-walkthrough-c98acd9c12cb?source=rss-ccc1b414092e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c98acd9c12cb</guid>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Sh Yin (Shene) Lim]]></dc:creator>
            <pubDate>Wed, 08 Apr 2026 17:17:05 GMT</pubDate>
            <atom:updated>2026-04-08T17:17:05.126Z</atom:updated>
            <content:encoded><![CDATA[<h3>Table of Contents</h3><ul><li>Introduction</li><li>How It Works</li><li>Where Shadow Testing Fits In</li><li>Common Use Cases</li><li>Open‑Source Tools</li><li>Operations (POC walk‑through)</li><li>Pros &amp; Cons</li><li>Benefits (Why it’s useful)</li><li>FAQ</li><li>References</li></ul><h3><strong>Introduction</strong></h3><p><strong>Traffic Replication &amp; Replay</strong> is a technique to capture real user traffic from Production and replay it in a test environment (Staging / Test).</p><p>In test strategy, this is often called Shadow Testing and can be seen as a form of Regression Testing. Key values:</p><ol><li>Validate services using real user behavior instead of only hand‑crafted or synthetic test data.</li><li>Surface issues that are hard to cover with traditional testing, such as config mistakes, dependency behavior changes, or deployment impacts.</li></ol><h3>Glossary</h3><p><strong>Traffic Amplification (replay at xN)</strong>: Replaying original traffic at higher rate (e.g., x2, x5) to simulate multiple users acting at the same time.</p><p><strong>Diff Comparator</strong>: Component that automatically compares baseline (old) vs candidate (new) responses. Rules/filters can be added to ignore non‑critical differences.</p><p><strong>Masking / Desensitization</strong>: Remove or obfuscate personally identifiable information (PII) when moving data out of Production.</p><p><strong>Noise (non‑critical differences)</strong>: Differences that are not bugs or functional issues, commonly:</p><ul><li>timestamps</li><li>UUID / RequestId</li><li>random ordering</li><li>session token</li><li>User‑Agent</li><li>small floating‑point drift</li></ul><h3>How Works</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*9CYfv4-3WwocyDlzX9KZ3Q.png" /></figure><h3>Where Shadow Testing Fits In</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O18IWFFHZ9dV7yGXcHRCtg.png" /></figure><h3><strong>Use Cases</strong></h3><ol><li><strong>Service refactor / language migration</strong> (e.g., Python → Java): ensure the new service returns the same outputs as the old one.</li><li><strong>Cloud migration</strong> (e.g., GCP/AWS): verify that behavior is consistent between on‑prem and cloud.</li><li><strong>Grayscale release / A/B tests</strong>: split a portion of traffic to the new version and run diff on responses.</li><li><strong>Stress / performance rehearsal</strong>: optionally amplify traffic (e.g., x2, x5) to see if the test environment can carry the load. (Note: this is not a replacement for formal performance testing.)</li><li><strong>Data anomaly investigation</strong>: capture problematic traffic (e.g., high error‑rate requests) and replay to reproduce issues.</li></ol><h3><strong>Open‑Source Tools</strong></h3><ul><li><strong>GoReplay</strong> (Golang): Capture and replay live HTTP(S) traffic. Easy to deploy; supports throttling and filtering. Typically paired with a diff tool.</li><li><strong>Sharingan</strong> (Didi): Golang traffic record &amp; replay; supports concurrency scenarios and basic noise handling across HTTP/MySQL/Redis.</li><li><strong>AREX (Trip.com)</strong>: Java, supports HTTP/gRPC; comes with masking/desensitization and visualization features.</li><li><strong>jvm-sandbox-repeater</strong></li></ul><h3><strong>Operations (POC walk‑through)</strong></h3><h4><strong>Demo setup</strong></h4><ul><li>GoReplay <a href="https://github.com/buger/goreplay">https://github.com/buger/goreplay</a></li><li>Diffy <a href="https://github.com/opendiffy/diffy">https://github.com/opendiffy/diffy</a><br> — Port: 8880 (Service) ; 8888 (UI)</li><li>Bakerydemo Demo Service <a href="https://github.com/wagtail/bakerydemo">https://github.com/wagtail/bakerydemo</a><br> — Env: Production ; Port: 19631<br> — Env: Staging ; Port: 19635</li></ul><h4>Get Started</h4><ol><li>Record</li></ol><p>Use GoReplay to capture a short sample into a .gor file, e.g., test_0.gor.</p><pre>$ sudo gor --input-raw :19631 --output-file test_0.gor</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hBXbIhifGFwwJLO5T9XU-A.png" /></figure><p>2. Check your file</p><p>Confirm test_0.gor exists and looks reasonable (size, duration, request mix).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNFsBmL_2ENqUq1PolYDpg.png" /></figure><p>3. Replay into Diffy</p><p>Send the replayed requests to Diffy, which will forward to baseline &amp; candidate and compute diffs</p><pre>$ gor \<br>    --input-file &quot;test_0.gor|100%&quot; \<br>    --output-http &quot;http://localhost:8880&quot; \<br>    --http-set-header &quot;Cache-Control: no-cache&quot; \<br>    --http-set-header &quot;Accept-Encoding: identity&quot; \<br>    --output-stdout \<br>    --output-http-stats</pre><p>4. Inspect diffs</p><p>Open <strong>Diffy UI</strong> at http://localhost:8888/ and review:</p><ul><li>How many requests matched exactly?</li><li>Which fields differ?</li><li>Are the differences real or just noise?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ai-fLdWhlqBjjR-T1YDLLg.png" /></figure><h3>Pros &amp; Cons</h3><p><strong>Pros (testing value)</strong></p><ol><li><strong>Realism</strong>: closer to real user scenarios than purely synthetic tests.</li><li><strong>Early risk detection</strong>: validate Prod‑facing changes earlier in Staging.</li><li><strong>Lower regression cost</strong>: fewer hand‑written scripts and test data.</li><li><strong>Multi‑protocol support</strong> (varies by tool): e.g., HTTP, Dubbo, gRPC in complex microservice setups.</li></ol><p><strong>Cons / challenges (operational)</strong></p><ol><li><strong>Sensitive data</strong>: must mask/anonymize before leaving Production.</li><li><strong>Env gap</strong>: differences between Staging and Production configs/state can make diffs noisy.</li><li><strong>Traffic volume control</strong>: avoid overwhelming test env (throttle / adjust rate multipliers).</li><li><strong>Diff quality</strong>: need rules to ignore non‑critical fields (timestamps, random IDs).</li><li><strong>Coverage limits</strong>: recorded traffic won’t include all edge cases.</li><li><strong>Customization cost</strong>: open‑source tools may require extra engineering to fit your org.</li></ol><h3>FAQ</h3><p><strong>Q: Can traffic replay replace manual or automated regression?</strong><br>A: No. To reach broad coverage, you still need long‑term sample collection + maintenance, and hand‑crafted edge cases. Replay is a complement, not a replacement.</p><p><strong>Q: Coverage is not enough in the recorded set. What can I do?</strong><br><strong>A:</strong></p><ol><li>Record over longer periods and refresh samples (weekend, campaign periods, different time windows).</li><li>Add synthetic requests for edge cases (extreme values, malformed formats).</li><li>Consider coverage analysis tools to identify gaps.</li></ol><p><strong>Q: If traffic includes external third‑party services, do I need mocks during replay?</strong><br><strong>A:</strong> It depends on your goals and the stability of the third party. For safety, prefer sandbox/mocks for write paths.</p><p><strong>Q: Is amplified replay the same as a Performance Test?</strong><br>A: No. Replay’s goal is behavioral consistency; <br>Performance tests target system limits and stability with precise control of VUs/concurrency and resource curves. <br>You can use replay at a higher rate (e.g., x5) for rehearsal, but keep it separate from formal perf testing.</p><p><strong>Q: What if the feature design changed a lot , will old recordings still work?</strong><br><strong>A:</strong> Maybe not. <br>Significant changes can invalidate old traffic. SDETs should update test sets and diff rules to avoid false bugs.</p><h3><strong>References</strong></h3><ul><li><a href="https://speedscale.com/blog/definitive-guide-to-traffic-replay/">https://speedscale.com/blog/definitive-guide-to-traffic-replay/</a></li><li><a href="https://doc.arextest.com/blog/trip-arex/">https://doc.arextest.com/blog/trip-arex/</a></li><li><a href="https://goreplay.org/shadow-testing/">https://goreplay.org/shadow-testing/</a></li><li><a href="https://dev.to/lijing-22/best-practice-for-production-traffic-replication-in-tripcom-1p3k">https://dev.to/lijing-22/best-practice-for-production-traffic-replication-in-tripcom-1p3k</a></li><li><a href="https://github.com/didi/sharingan">https://github.com/didi/sharingan</a></li><li><a href="https://tech.dewu.com/article?id=22">https://tech.dewu.com/article?id=22</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RB-hJaFwpdj9kuGKcqsWhA.png" /><figcaption>Gen by Gemini</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c98acd9c12cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Google Drive Mindmup MCP to Review Test Cases Automatically]]></title>
            <link>https://medium.com/@shyinlim/using-google-drive-mindmup-mcp-to-review-test-cases-automatically-ee03f2e9272d?source=rss-ccc1b414092e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee03f2e9272d</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Sh Yin (Shene) Lim]]></dc:creator>
            <pubDate>Sun, 19 Oct 2025 15:27:07 GMT</pubDate>
            <atom:updated>2025-11-08T15:57:24.660Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*W0r-90RnxeaT0peC.gif" /></figure><p>I was managing a lot of test cases in Mindmup when I realized: manually reviewing them for coverage gaps is exhausting and error-prone. <strong>So I built an MCP tool to let AI do it automatically.</strong></p><p>The problem was simple. Thousands of test cases mean:</p><ul><li>With thousands of test cases, coverage gaps are easy to miss</li><li>Manual checking is time-consuming and error-prone</li><li>Teams can’t align on what really needs testing</li></ul><p>I needed a faster way to surface missing scenarios and logical inconsistencies.</p><h3>Why Google Drive Mindmup for Test Case Management</h3><p>I chose Mindmup to manage test cases for several reasons:</p><ul><li><strong>Free &amp; Cloud-based (Google Drive)</strong><br>Accessible from any device, so you can work anywhere.</li><li><strong>Structured</strong><br>Features, modules, and test cases are clearly organized and easier to maintain.</li><li><strong>Collaborative</strong><br>PM, Dev, and QA can quickly understand coverage. Also, multiple QA team members can work on test cases at the same time.</li><li><strong>AI-friendly</strong><br>Mindmup exports JSON, which makes it easy for AI to read and analyze.</li></ul><h3>How I Used MCP to Automate Test Case Analysis</h3><p>Instead of manually uploading Mindmap files to AI tools, I built an MCP tool that:</p><ul><li>Reads your Mindmap JSON directly from Google Drive</li><li>Sends it to Claude for analysis</li><li>Returns structured feedback: missing scenarios, redundancies, logic gaps</li></ul><p>That’s it. MCP is just the bridge connecting Mindmup → AI.</p><h3>AI-powered Test Case Mindmap Review</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/0*8IE7m4dRqBMIvekM" /></figure><h4>Architecture / Workflow</h4><ol><li>QA draws test cases in Mindmup</li><li>Test cases are saved to Google Drive</li><li>MCP reads the Mindmap JSON</li><li>AI analyzes the test cases and returns reviews &amp; suggestions</li></ol><h4>Demo (Example)</h4><p>Your QA team’s test cases organized in Mindmup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HJ18vKwupYV32_tz.png" /></figure><p>If you wanted to list out of mindmup QA team have, let AI to help.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/0*hUTzh1ZHZhNx6PYe.png" /></figure><p>Here’s what your test cases look like in Mindmup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4R8-2tqiETgiy3UU.png" /></figure><p>Then let AI reviews your test case coverage. You could also connect Confluence (PRD, Tech Design) to validate that tests match the actual requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/0*b2Wer7ixqf1sATrt.png" /></figure><h3>Conclusion</h3><p>The approach delivers real impact for QA teams:</p><ul><li>Reduces missing scenarios</li><li>Improves test coverage</li><li>Makes QA work smarter, not harder</li></ul><p>If you’re a QA / SDET, try managing test cases with <strong>Mindmup + MCP </strong>:)<br><em>Note: this is experimental, not production-ready.</em></p><p><a href="https://github.com/shyinlim/mcp_mindmup2_google_drive">GitHub - shyinlim/mcp_mindmup2_google_drive: A Model Context Protocol (MCP) server that provides seamless integration between MindMup mind maps and Google Drive. This server enables you to search, retrieve, and parse MindMup files stored in your Google Drive directly through the MCP interface.</a></p><p><strong>Test smart, not hard. And, Happy Testing :)</strong></p><p>Sh-Yin Lim (<a href="http://www.linkedin.com/in/sh-yin-lim">LinkedIn</a>)<br>2025.10.19</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/0*rTwLVFbbBvtRUfy7.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee03f2e9272d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Less Guessing: A Streamlit Dashboard That Explains Test Case Failures with AI]]></title>
            <link>https://ai.plainenglish.io/less-guessing-a-test-results-dashboard-that-explains-failures-with-ai-731f7747ab2a?source=rss-ccc1b414092e------2</link>
            <guid isPermaLink="false">https://medium.com/p/731f7747ab2a</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Sh Yin (Shene) Lim]]></dc:creator>
            <pubDate>Tue, 09 Sep 2025 00:45:00 GMT</pubDate>
            <atom:updated>2025-11-18T15:43:53.010Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s hard to see the full picture of test failures when each results in a different place. The results are often split across different ci/cd pipelines, folders, or reports.</p><p>As a QA, I wanted something that gives me a clear, whole engineering team view of test stability. Not just a per-job or per-service snapshot.</p><p>Besides, when you’re running thousands of test cases, and a bunch of them start failing, it’s not realistic to open every log file and manually figure out what went wrong.</p><p>What I really need is an assistant that helps me spot patterns. Something that can say: <br><em>“Hey, 38 tests failed because of a timeout in the same API.”<br></em> <em>“Looks like most failures are caused by incorrect result codes (error-code-9999) returned from a downstream service.”</em></p><p>So I built this proof of concept to explore two questions:</p><ul><li>Can we use a dashboard to track overall test health across teams?</li><li>Can we use Gemini to help group failures and summarize the common issues?</li></ul><p>For these, it’s not perfect, but it’s a start.</p><h3>Table of Contents</h3><ul><li>Feature Walkthrough</li><li>Tech Stack</li><li>Architecture Overview</li><li>Limitations and What’s Next</li><li>Final Thoughts</li></ul><h3>Feature Walkthrough</h3><h4>Failure Test Count Overview — Stability at a Glance</h4><p>The Overview tab shows test results grouped by service_team, so it’s easy to see which team is having the most issues. (The grouped by could be depends on company organization structure)</p><p>You can view failure trends and filter the data by team and date. This helps you track how stable each team’s tests are over time, and notice when failures spike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XyG7l1JHswXT03aY.jpg" /></figure><h4>Failure Insights — Case-Level AI Summaries</h4><p>The Insights tab lets you inspect failures from one team at a time.</p><p>You can pick a team and select the date range you want to look at. Once loaded, the dashboard shows two things:</p><ul><li>A summary generated by Gemini, based on the failure logs.</li><li>A list of failed test cases, including tracebacks and assertion messages.</li></ul><p>Gemini analyzes each failure log and explains what likely went wrong. This saves time when you have too many logs to read manually.</p><p>Besides, you can also expand each test to see full details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yOd3dcR5G3cghas5.jpg" /></figure><h3>Tech Stack</h3><h4>Streamlit — Fast UI for Internal Tools</h4><p><a href="https://github.com/streamlit/streamlit">GitHub - streamlit/streamlit: Streamlit - A faster way to build and share data apps.</a></p><p>I didn’t want to spend weeks building a frontend. Streamlit lets me write dashboards in Python. It is fast, simple, and good for quick projects.</p><h4>Gemini — Summarize Failure Cases with LLM</h4><p><a href="https://ai.google.dev/gemini-api/docs/quickstart">https://ai.google.dev/gemini-api/docs/quickstart</a></p><p>When a test fails, send the details to Gemini (Google’s LLM API) and ask it to:</p><ul><li>Explain what likely went wrong</li><li>Group similar errors (e.g. same result code or traceback)</li><li>Write a short summary that humans can understand</li></ul><h4>PostgreSQL — Store Results for Analysis</h4><p>I used PostgreSQL to store test results. It is stable and works well with structured data.</p><p>The test results are generated by automation or CI jobs. After test execution, just insert the results into the database. This dashboard reads from the database and shows the data.</p><p>To make the dashboard more useful, I recommend including some basic fields in your test result records:</p><pre>CREATE TABLE IF NOT EXISTS automation_test_result (<br>    service TEXT NOT NULL,<br>    service_team TEXT NOT NULL, -- The dev team<br><br>    case_total_count INTEGER DEFAULT 0,<br>    success_count INTEGER DEFAULT 0,<br>    skip_count INTEGER DEFAULT 0,<br>    failure_count INTEGER DEFAULT 0,<br>    broken_count INTEGER DEFAULT 0,<br>    all_test_records JSONB, -- Record TC name, status (passed, failed, skipped, broken), duration, tags<br>    failure_records JSONB, -- Record TC&#39;s failure details<br><br>    duration FLOAT DEFAULT 0, -- Overall testing duration<br>);</pre><p>These fields help filter and group results more easily.</p><h3>Architecture Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/0*dQuDzjG3PotiPHzX.png" /></figure><p>Here is how the system works:</p><p>1. Automation test jobs run and produce results.</p><p>2. The automation results insert to PostgreSQL database.</p><p>3. The dashboard reads from the database and shows the data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d029763f44caf1bf4fae71687706c58/href">https://medium.com/media/3d029763f44caf1bf4fae71687706c58/href</a></iframe><p>4. For failure case details part, the dashboard sends the details to Gemini.</p><p>Before calling Gemini, it checks the local cache first. If a summary exists, it is reused. If not, the new summary is saved into the cache. <br>It helps avoid repeated requests to Gemini and reduces token usage.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0afee95c6813a3a42bfe8dbf4b1f11c1/href">https://medium.com/media/0afee95c6813a3a42bfe8dbf4b1f11c1/href</a></iframe><h3>Limitations and What’s Next</h3><p>This is still a proof of concept. Future improvements I’d like to consider:</p><ul><li>Login &amp; Team-level access control</li><li>Slack / Email alert integration</li><li>Historical comparison (e.g., what changed since last run)</li><li>Multi-environment support (test, uat, staging)</li><li>Full-text search in error messages</li><li>CSV / JSON export of test results</li></ul><h3>Final Thoughts</h3><p>This dashboard is not trying to replace full tools like Allure, ReportPortal, or TestRail.</p><p>It helps QA and Dev quickly understand what is failing and why, which provides a better view of test failures.</p><p>Also, AI will not fix failure case for you, but it can help you find patterns faster. That is what this project is built to show.</p><p>Want to try it yourself ? Head to the repo and run make run-dev to explore.<br><em>Note: this is experimental, not production-ready.</em></p><p><a href="https://github.com/shyinlim/test_result_dashboard_streamlit_gemini">GitHub - shyinlim/test_result_dashboard_streamlit_gemini: A lightweight dashboard to view and analyze test automation results. Built with Streamlit + PostgreSQL, and powered by AI (Gemini) to help debug test failures faster.</a></p><p><strong>Test smart, not hard. And, Happy Testing :)</strong></p><p>Sh-Yin Lim (<a href="http://www.linkedin.com/in/sh-yin-lim">LinkedIn</a>)<br>2025.09.09</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=731f7747ab2a" width="1" height="1" alt=""><hr><p><a href="https://ai.plainenglish.io/less-guessing-a-test-results-dashboard-that-explains-failures-with-ai-731f7747ab2a">Less Guessing: A Streamlit Dashboard That Explains Test Case Failures with AI</a> was originally published in <a href="https://ai.plainenglish.io/">Artificial Intelligence in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boost API Testing Efficiency with OpenAI and Pytest]]></title>
            <link>https://python.plainenglish.io/boost-api-testing-efficiency-with-openai-and-pytest-77e9cdb5b716?source=rss-ccc1b414092e------2</link>
            <guid isPermaLink="false">https://medium.com/p/77e9cdb5b716</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Sh Yin (Shene) Lim]]></dc:creator>
            <pubDate>Tue, 10 Jun 2025 13:26:33 GMT</pubDate>
            <atom:updated>2025-11-18T15:45:39.140Z</atom:updated>
            <content:encoded><![CDATA[<p>AI seems to help almost every job in some way.</p><p>As SDET / QA, what if your test cases could be auto-generated by AI and automatically verified using Pytest ?</p><p>Hence, I recently tried integrating <strong>OpenAI</strong> with <strong>Pytest</strong> to automate API test generation. Here’s what I learned.</p><h3>What You Need to Know and Prepare</h3><p>Before diving in, here some tools and resources you’ll need:</p><ul><li>OpenAI Python Library<br><a href="https://github.com/openai/openai-python">https://github.com/openai/openai-python</a></li><li>Pytest (Python testing framework)<br><a href="https://github.com/pytest-dev/pytest">https://github.com/pytest-dev/pytest</a></li><li>API Under Test — FakeStoreAPI (Cart endpoint) <a href="https://fakestoreapi.com/docs#tag/Carts/operation/addCart">https://fakestoreapi.com/docs#tag/Carts/operation/addCart</a></li></ul><h3>Setup Overview</h3><h4>Let OpenAI Build and Verify Basic Test Cases</h4><p>We’ll start by asking OpenAI to generate simple API test cases using structured prompts. Then, we use Pytest to run and validate those cases against the real API.</p><ol><li>Install and Import Required Packages</li></ol><pre>$ pip install openai<br>$ pip install pytest</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd3e443b52f2c0e5b0472376c0fbe169/href">https://medium.com/media/dd3e443b52f2c0e5b0472376c0fbe169/href</a></iframe><p>2. Define the Test Case Generator Function</p><p>We’ll create a function to send a prompt to OpenAI, instructing it to behave like a Senior SDET / QA and return structured API test cases in JSON format.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/14e93a65c9b2636ee68d6352c6a74c9f/href">https://medium.com/media/14e93a65c9b2636ee68d6352c6a74c9f/href</a></iframe><p>3. Let OpenAI Build and Verify Basic Test Cases</p><p>Before defining the test function, we need to prepare a prompt that describes the API’s method, endpoint, and a sample of the request and response structure. This prompt will guide OpenAI to generate the test cases.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/648998e1b8c4e0ebc0645e95e660ca89/href">https://medium.com/media/648998e1b8c4e0ebc0645e95e660ca89/href</a></iframe><p>Once the prompt is ready, we define a test function that sends this information to OpenAI, retrieves the generated test cases, and runs them using Pytest.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/36576b1bcd765cb231c7874de7b712b3/href">https://medium.com/media/36576b1bcd765cb231c7874de7b712b3/href</a></iframe><p>Okay, here’s a sample test cases of what OpenAI might return:</p><ul><li><em>create_cart_with_valid_single_product</em></li><li><em>create_cart_with_multiple_products</em></li><li><em>create_cart_with_minimum_valid_values</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JiqI19gKnSz-qDhj1il9OA.png" /></figure><h4>Expand with Human-Designed Cases</h4><p>While AI can quickly generate basic test cases. However, edge cases, business-specific logic, or tricky validation rules often still require human insight.</p><p>Use AI as a starting point, then build on it with your domain knowledge.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/521d1a5c421249025147284903a321d7/href">https://medium.com/media/521d1a5c421249025147284903a321d7/href</a></iframe><h3>Knowing When to Let AI Handle It</h3><h4>AI-generated test functions work best when:</h4><ul><li>API specs are clear and well-defined, including methods, parameters, and expected responses</li><li>Field validations are needed (data types, required fields, ranges).</li><li>Request / response flows are standard without complex business logic.</li><li>Need to quickly bootstrap test coverage, especially for repetitive or CRUD endpoints</li></ul><h4>You’ll still want to write tests manually when:</h4><ul><li>Business logic is complex or conditional, which AI may not fully understand.</li><li>Heavily DB-dependent tests,<strong> </strong>they often require manual setup and domain knowledge to ensure correctness.</li><li>Mocking or stubbing other services is needed, especially async or dependent ones.</li><li>Test results depend on side effects beyond response values, like logs or DB updates.</li><li>Security testing such as auth, permission, or injection checks is involved.</li></ul><h3>Final Thoughts</h3><p>This experiment shows a great way to boost testing efficiency by combining OpenAI and Pytest.</p><p>It’s not about replacing SDET / QA Engineers, but about helping us get started faster, cover more ground, and focus on the tricky stuff.</p><p>The key takeaway ?<br><strong>The magic isn’t just in the AI, it’s in the prompt.</strong></p><p>Good prompts don’t just show up by magic, they come from your mix of :</p><ul><li>Testing experience</li><li>Testing techniques</li><li>Testing mindset</li><li>Communication skills</li><li>Product understanding</li></ul><p>Here’s my GitHub repo showing a straightforward example:</p><p><a href="https://github.com/shyinlim/open_ai_with_pytest_simple_version">GitHub - shyinlim/open_ai_with_pytest_simple_version: Integration of OpenAI with Pytest to automate API test generation.</a></p><p><strong>Test smart, not hard. And, Happy Testing :)</strong></p><p>Sh-Yin Lim (<a href="http://www.linkedin.com/in/sh-yin-lim">LinkedIn</a>)<br>2025.06.09</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*auvI80SEBH4_RxyuG785Fw.png" /></figure><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/@InPlainEnglish"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a> | <a href="https://twitch.tv/inplainenglish"><strong>Twitch</strong></a></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77e9cdb5b716" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/boost-api-testing-efficiency-with-openai-and-pytest-77e9cdb5b716">Boost API Testing Efficiency with OpenAI and Pytest</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Bite for API Test with ‘Golang Testify’ and ‘Python Pytest’]]></title>
            <link>https://python.plainenglish.io/a-bite-for-api-test-with-golang-testify-and-python-pytest-3a408e6afb74?source=rss-ccc1b414092e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a408e6afb74</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Sh Yin (Shene) Lim]]></dc:creator>
            <pubDate>Wed, 04 Jun 2025 02:42:57 GMT</pubDate>
            <atom:updated>2025-11-18T15:40:41.794Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*VQZoy5Wt0NZSZOpa7uR76Q.png" /></figure><p>Based on my experience in automation testing across various companies, I’ve utilized ‘Golang Testify’ and ‘Python Pytest’. Transitioning from a manual testing background to embracing automation testing, I’ve gained valuable insights. I would like to share some insights about these two frameworks and document my thoughts for future reference.</p><h4>Testing Goal</h4><p>We will use REST API as the testing target for our article, specifically utilizing the Public API provided by <a href="https://fakeapi.platzi.com/en/about/introduction/">Platzi Fake Store API</a> as our test data source.</p><h4>Trend</h4><p>Both are well-known in the field of automation testing. Their GitHub stars, each has garnered an impressive following of over 10k.</p><ul><li><a href="https://github.com/stretchr/testify">https://github.com/stretchr/testify</a> : 21.6k (2024 Feb)</li><li><a href="https://github.com/pytest-dev/pytest">https://github.com/pytest-dev/pytest</a> : 11.1k (2024 Feb)</li></ul><h4>Mentioned Topics Will Be Covered</h4><p>▶ Get Started Testing<br> · Test Naming Conventions<br> · Assertion<br> · Running Tests With Parallel</p><p>▶ After Testing<br> · Generate Test Report</p><p>▶ My Insight</p><p>▶ Conclusion</p><h3>Get Started Testing</h3><p>Before testing, we shall be understanding the response result, and then do the testing.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d9d77e6f87908bdac02e42268706c0aa/href">https://medium.com/media/d9d77e6f87908bdac02e42268706c0aa/href</a></iframe><p>Now let’s see how we can use ‘Golang Testify’ and ‘Python Pytest’ to do the testing.</p><h4>Test Naming Conventions</h4><blockquote>Golang Testing</blockquote><p>According to <a href="https://pkg.go.dev/testing">Go Testing</a> package, the test file must have _test.go suffix.<br>In function, each test function has following the naming structure func TestXXX(*testing.T) .</p><pre>getProduct_test.go //Filename<br>func Test_GetProductDetailsSuccess(t *testing.T) {} //Test Function</pre><blockquote>Python Pytest</blockquote><p>For Pytest, to create a new test suite, the test could be test_.py or _test.py .<br>Inside the test file, test functions start with the word test_ .</p><pre>test_getProduct.py #Filename<br>def test_GetProductDetailsSuccess(self):{} #Test Function</pre><h4>Assertion</h4><blockquote>Golang Testify</blockquote><p>The official documentation for both frameworks consists of two packages: require and assert .</p><ul><li><strong>Require</strong></li></ul><p>This implies that if the response result is not a pass, the subsequent testing will not proceed.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef0c2cba5c1d7a714499e2d5f8ee5dac/href">https://medium.com/media/ef0c2cba5c1d7a714499e2d5f8ee5dac/href</a></iframe><figure><img alt="這張圖片的 alt 屬性值為空，它的檔案名稱為 1*nAwkHpwhInA41D3Uxt5AzQ.png" src="https://cdn-images-1.medium.com/proxy/1*nAwkHpwhInA41D3Uxt5AzQ.png" /></figure><ul><li><strong>Assert</strong></li></ul><p>In contrast, the framework will continue with assertion testing even if the response result is not a pass.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/06d2f6207fb4c77e4adbcfcd04dd5893/href">https://medium.com/media/06d2f6207fb4c77e4adbcfcd04dd5893/href</a></iframe><figure><img alt="這張圖片的 alt 屬性值為空，它的檔案名稱為 1*OLNI11Vkl3m678uHjcdM_w.png" src="https://cdn-images-1.medium.com/proxy/1*OLNI11Vkl3m678uHjcdM_w.png" /></figure><p>Testify offers a variety of assertion types. Let assertion testing can be more flexible.<br>Ref. <a href="https://pkg.go.dev/github.com/stretchr/testify/assert#pkg-index">https://pkg.go.dev/github.com/stretchr/testify/assert#pkg-index</a></p><p>Here’s an example of Golang Testify testing:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8139aff2a2cb1d2bf3d38fe9adc6abfb/href">https://medium.com/media/8139aff2a2cb1d2bf3d38fe9adc6abfb/href</a></iframe><blockquote>Python Pytest</blockquote><p>Pytest utilizes the assert statement exclusively. Moreover, if the response result is not a pass, the testing process will not continue.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11b090c8495a161fe9641a903cca182b/href">https://medium.com/media/11b090c8495a161fe9641a903cca182b/href</a></iframe><figure><img alt="這張圖片的 alt 屬性值為空，它的檔案名稱為 1*69SsUfCnbrztl0Eidvr8BQ.png" src="https://cdn-images-1.medium.com/proxy/1*69SsUfCnbrztl0Eidvr8BQ.png" /></figure><p>Pytest has relatively fewer assertion types. However, additional libraries can be relied upon to fulfill specific testing needs.<br>Ref. <a href="https://docs.pytest.org/en/7.1.x/how-to/assert.html#">https://docs.pytest.org/en/7.1.x/how-to/assert.html#</a></p><p>Here’s an example of Python Pytest testing:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9cac7ba5c2e184ecad25559f369e7fa0/href">https://medium.com/media/9cac7ba5c2e184ecad25559f369e7fa0/href</a></iframe><h4>Running Tests With Parallel</h4><p>Both frameworks provide parallel testing functionality.</p><blockquote>Golang Testify</blockquote><p>Golang Testify offers its own parallel function, allowing users to specify the maximum number of cases for test execution.</p><pre>$ go test -parallel 5 # 5 = maximum number of cases</pre><blockquote>Python Pytest</blockquote><p>For Python Pytest, the pytest-xdist library needs to be installed to enable parallel testing.</p><pre>$ pip install pytest-xdist<br>$ pytest -n 5 # 5 = maximum number of cases</pre><h3>After Testing</h3><h4>Generate Test Report</h4><p>Following the completion of testing, certain libraries/packages support those frameworks for generating reports to visually represent the test results.</p><p>I will shows that using Allure Report to demonstrate the testing result.</p><blockquote>Golang Testify</blockquote><ul><li>Github: <a href="https://github.com/robotomize/go-allure">https://github.com/robotomize/go-allure</a></li></ul><pre>$ go install github.com/robotomize/go-allure/cmd/golurectl@latest<br>$ go test -json -cover ./…|golurectl -l -e -s -a -o ~/Downloads/test_report –allure-suite MySuite –allure-labels epic:my_epic,custom:value –allure-tags UNIT,GO-ALLURE –allure-layers UNIT<br>$ allure serve test_report​</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*jJQCoM7PTd6J7ZKG_GFFpw.png" /></figure><blockquote>Python Pytest</blockquote><ul><li>Github: <a href="https://github.com/allure-framework/allure2">https://github.com/allure-framework/allure2</a></li></ul><pre>$ pytest –alluredir=test_report test/product/test_postProduct.py<br>$ allure serve test_report​</pre><figure><img alt="這張圖片的 alt 屬性值為空，它的檔案名稱為 1*ySPPGdql_MY0B0F75BzOVg.png" src="https://cdn-images-1.medium.com/proxy/1*ySPPGdql_MY0B0F75BzOVg.png" /></figure><h3>My Insight</h3><p>In my thoughts, both frameworks actually share a lot in common and offer many extension, package, library to achieve the testing. For a beginner like me, to complete API test which shouldn’t to difficult to me.</p><p>However, if I were to highlight a difference, I believe Golang Testify edges slightly ahead in terms of assertions. After all, it provides require and various assert for testing without needing additional packages.</p><h3>Conclusion</h3><p><strong>When selecting an automation framework, there is no one-size-fits-all solution. Just choose the testing framework that best suits your needs.</strong></p><p><em>Lastly, the following list serves as inspiration for my article :</em></p><ul><li><a href="https://badquality.org/2022/02/24/converting-from-manual-qa-to-a-system-qa/"><em>Converting from manual QA to a system QA</em></a></li><li><a href="https://badquality.org/2022/02/24/first-taste-of-automation-testing/"><em>First Taste of Automation Testing</em></a></li><li><a href="https://medium.com/%E8%A1%97%E5%8F%A3%E6%94%AF%E4%BB%98-jkopay/%E8%A1%97%E5%8F%A3%E6%94%AF%E4%BB%98-api-%E8%87%AA%E5%8B%95%E5%8C%96%E6%B8%AC%E8%A9%A6%E8%A7%A3%E6%B1%BA%E6%96%B9%E6%A1%88-81e99549d702"><em>街口支付 API 自動化測試解決方案</em></a></li></ul><p>Sh-Yin Lim (<a href="http://www.linkedin.com/in/sh-yin-lim">LinkedIn</a>)<br>2024.04.08</p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/@InPlainEnglish"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a> | <a href="https://differ.blog/inplainenglish"><strong>Differ</strong></a> | <a href="https://twitch.tv/inplainenglish"><strong>Twitch</strong></a></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a408e6afb74" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/a-bite-for-api-test-with-golang-testify-and-python-pytest-3a408e6afb74">A Bite for API Test with ‘Golang Testify’ and ‘Python Pytest’</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Other Side of the Table: Being an Interviewer]]></title>
            <link>https://medium.com/@shyinlim/the-other-side-of-the-table-being-an-interviewer-68edd135178e?source=rss-ccc1b414092e------2</link>
            <guid isPermaLink="false">https://medium.com/p/68edd135178e</guid>
            <category><![CDATA[interview-tips]]></category>
            <category><![CDATA[qa-engineer]]></category>
            <category><![CDATA[面試]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Sh Yin (Shene) Lim]]></dc:creator>
            <pubDate>Wed, 12 Mar 2025 14:42:24 GMT</pubDate>
            <atom:updated>2025-06-04T02:44:53.124Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*rEhEYOI6oWJJ3Gix.jpg" /><figcaption>Image source: freepik</figcaption></figure><p>So, since last year, I’ve started interviewing candidates.</p><p>I’ve discovered some interesting perspectives along the way and have also been noticing how I handle conversations with strangers (Cuz my MBTI is introvert lol).</p><h3>It’s not just the candidates who get nervous.</h3><p>Candidates often get nervous during interviews.<br>But honestly, as an interviewer, I also get nervous sometimes, and my worries come from all sorts of things:</p><ul><li>Worrying asking unclear questions.</li><li>Worrying about those awkward silences (If as an candidates, I really enjoy a good back-and-forth).</li><li>Worrying that my technical or soft skills aren’t good enough to come up with meaningful questions.</li><li>Worrying that the questions I’ve prepared are either too simple or too difficult.</li></ul><h3>Helping candidates reach the core answer.</h3><p>Sometimes, candidates are just too nervous or come from a different work background, making it hard for them to get straight to the point.</p><p>In those cases, try to guide them by asking related questions or presenting scenarios to help them approach the key point.</p><p>If the guidance works, great! If not, at least I know I’ve tried my best.</p><h3>Balancing pre-prepared and follow-up questions.</h3><p>Spend about half of the time asking follow-up questions based on the candidates’ responses and the other half asking pre-prepared questions.</p><p>If relying on all unprepared questions, candidates may take control of the conversation and showcase only their strengths, making it harder for you to spot any potential gaps.</p><h3>Allowing short silences.</h3><p>It’s totally okay to have those brief moments of silence during the interview.</p><p>First, it gives colleagues can jump in the conversations and more.</p><p>Second, it allows both sides to pause and think if they need to add anything.</p><h3>Accepting gaps in knowledge.</h3><p>Nobody knows everything, right? But it’s still important to do some research before the interview.</p><p>You don’t need to master every topic since the workplace itself is a continuous learning environment.</p><p>Sometimes, during conversations, you might even pick up useful keywords or concepts that could be applied at work.</p><p>Lastly, I really appreciate my colleagues for providing such good examples for me.</p><p><strong>Also, an interview is a mutual opportunity to get to know each other and the industry better.</strong></p><p>Sh-Yin Lim (<a href="http://www.linkedin.com/in/sh-yin-lim">LinkedIn</a>)<br>2025.03.12</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>自去年開始，我有機會擔任面試官，陸續面試了不少應徵者。</p><p>當面試官之後，我發現了一些有趣的觀點，也開始觀察自己與陌生人對談的能力 (畢竟我的 MBTI : introvert 哈哈)。</p><h3>不只是應徵者會緊張。</h3><p>應徵者在面試時緊張是必然的。但說實話，身為面試官，我也偶爾會緊張，而且擔心的面向很多：</p><ul><li>擔心問的問題不夠清楚。</li><li>擔心出現尷尬的沉默（如果身為面試者，我比較喜歡來回互動腦力激蕩）。</li><li>擔心我的技術或軟實力不足，無法提出有意義的問題。</li><li>擔心準備的問題太簡單或太難。</li></ul><h3>協助應徵者回答核心答案。</h3><p>有時應徵者太緊張，或來自不同的工作背景，可能會出現無法直接切入重點。</p><p>在這種情況下，試著透過相關問題或情境引導他們，幫助他們接近核心重點。</p><p>如果引導成功，那當然很好！如果不行，至少我盡力了。</p><h3><strong>平衡預先準備的問題和延伸問題。</strong></h3><p>建議將一半的時間根據應徵者的回答提出延伸問題，其餘時間問預先準備的問題。</p><p>如果全部使用延伸方式發問，應徵者可能會主導節奏，這樣只會展現候選人只做過的某件事，很難發掘其他可能性。</p><h3>允許短暫的沉默。</h3><p>在面試過程中，有短暫的沉默完全沒關係。</p><ul><li>首先，給了同事有個段落有來有回提問。</li><li>其次，這讓雙方都有時間停頓一下，思考是否需要補充任何內容。</li></ul><h3>接受自己某些領域知識上的不足。</h3><p>沒有人是完全都會，但在面試前做一些研究仍然很重要。</p><p>不需要精通每個主題，因為職場本身就是一個持續學習的環境，允許自己不是樣樣都會，把面試當作交流。</p><p>有時，在對話中，甚至可能會聽到一些有用的關鍵字或概念，這都可能可以在工作中應用。</p><p>最後，我非常感謝我的同事們在每場面試提供了這麼好的示範。</p><p>此外，面試也是一個互相了解彼此和產業的機會。</p><p>Sh-Yin Lim (<a href="http://www.linkedin.com/in/sh-yin-lim">LinkedIn</a>)<br>2025.03.12</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68edd135178e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[1st Time Performance Testing: Prioritizing, Preparing, and Perfecting]]></title>
            <link>https://medium.com/@shyinlim/first-time-performance-testing-prioritizing-preparing-and-perfecting-417e9d1524ae?source=rss-ccc1b414092e------2</link>
            <guid isPermaLink="false">https://medium.com/p/417e9d1524ae</guid>
            <category><![CDATA[load-testing]]></category>
            <category><![CDATA[perfomance-testing]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Sh Yin (Shene) Lim]]></dc:creator>
            <pubDate>Thu, 07 Nov 2024 10:12:54 GMT</pubDate>
            <atom:updated>2025-11-18T15:32:33.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFMOsZpDq24PttScGFv93w.png" /><figcaption>Test Report</figcaption></figure><p>Have you ever felt uncertain when executing a performance test for the first time, just like I did?</p><p>As an SDET, I’ve found myself uncertain when executing performance tests for the first time, there are always some questions in my mind. Despite having a foundation in performance testing theories and tools, these thoughts leaving my uncertain about where to start or what to expect once testing begins.</p><ul><li><em>Wah… so many services! How do I choose which ones to test?</em></li><li><em>Hmm… which test data should I prepare beforehand?</em></li><li><em>Bla, bla bla…</em></li></ul><p>In this article, I’ll share some lessons learned from my experience at <a href="https://www.linkedin.com/company/jkopay-co-ltd/mycompany/">JKOPAY</a> (Taiwan&#39;s e-wallet app).</p><h3>When SDET team resources are limited, which service or situation should be prioritized for the performance test?</h3><p>Determine the criteria for selecting high-priority services, focusing on:</p><ul><li><strong>Critical campaigns (e.g., Double 11 Shopping Festival)</strong></li></ul><p>Many e-commerce platforms use JKOPAY for payments, leading to a huge transaction spike during such events.<br>Ensure our service doesn’t buckle under the pressure of high demand during big sales.</p><ul><li><strong>Recently refactored services</strong></li></ul><p>When a service undergoes code refactoring, it’s valuable to compare the performance of the old code with the new code to evaluate improvements. <br>Check if the revamped service performs as expected after its makeover.</p><ul><li><strong>Key services</strong></li></ul><p>These are crucial to our core product or highly visible services, so they need stability and reliability checks.<br>To make sure these key services run smoothly and reliably.</p><h3>What test data do I need to prepare?</h3><p>Here are some discussion points to cover with the Dev team:</p><ul><li><strong>Identify key metrics</strong></li></ul><p>What are the average transaction volumes and user counts during peak periods?<br>How do these metrics inform the quantity of test data needed (e.g., number of users, transactions per second)?</p><ul><li><strong>List out service dependencies and data interactions</strong></li></ul><p>Review the service flow to identify interactions with upstream and downstream services.<br>How do these dependencies influence the type and complexity of test data required (e.g., mock data for external services)?</p><ul><li><strong>Define desired test scenarios</strong></li></ul><p>Does a single user/store setup able to simulate peak loads, or is scaling to 10,000 users necessary to avoid fraud service blocking?<br>What specific test data (e.g., user profiles, transaction types) is needed to accurately replicate and test against desired scenarios?</p><h3>Can this project be tested in a single run?</h3><p>In most cases, a single run isn’t sufficient. <br>Performance testing typically requires multiple iterations for the following reasons:</p><ul><li><strong>Test script optimization</strong></li></ul><p>Initial test scripts might not yield precise results (e.g., poorly defined classification criteria). This may lead to inaccurate test results.<br>Adjustments are often necessary to improve data precision.</p><p>For example:<br>Consider a test scenario where we need to request two APIs, with the following flow: GetToken ➞ CreateTransaction.</p><p>In K6, the result might display the total RPS for both APIs combined (as shown in the image below). However, this can make it challenging to observe the performance of each API separately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*kfH7U93zVsYGsfdw7BWJrQ.png" /></figure><p>To address this issue, we can modify the script to report separate results for each API. By doing so, we can gain more accurate insights into the performance of each API and make targeted improvements.</p><p>Here’s the after script optimization and test result:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/135f706d4876a19ccd4c9ba6a60774a6/href">https://medium.com/media/135f706d4876a19ccd4c9ba6a60774a6/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*9-RqIP0Z-EJy99zGib0Ofg.png" /></figure><ul><li><strong>Address test data issues</strong></li></ul><p>Error test data can lead to unexpected service failures, which are not fit the test scenarios.<br>Besides, affects inaccurate downstream system interactions, which prevents accurate testing of the full-service flow (from upstream to downstream).</p><ul><li><strong>Mismatched expectations</strong></li></ul><p>Another potential issue is that test data or operation steps may not align with Dev expectations, causing discrepancies between test results and assumptions. <br>To resolve this, it’s essential to discuss and clarify the correct approach, then adjust the test for re-run. <br>Additionally, outputting logs can facilitate further analysis.</p><ul><li><strong>Scenario expansion</strong></li></ul><p>Assume that the baseline RPS (Requests Per Second) is 50, once this criterion is met, we might raise the parameters to assess the service’s maximum capacity.</p><ul><li><strong>Validation of Dev changes</strong></li></ul><p>When developers make source code optimizations or upgrade hardware, we will rerun tests that to confirm these changes positively impact performance, ensuring better outcomes.</p><h3>Can I use laptop for performance testing?</h3><p>Yes, a laptop can suffice if the test is for small-scale, low-parameter tests. <br>However, if high-parameter requirements (e.g., large preallocated VUs), it’s advisable to request more robust equipment for testing. <br>This will help ensure that the results are accurate and representative of real-world scenarios.</p><p>As we conclude our exploration of performance testing considerations, let’s revisit the fundamental questions:</p><ul><li><strong>Why test? </strong><br>For smooth user experiences and to avoid slowdowns.</li><li><strong>What’s the purpose? </strong><br>To check if our app is scalable, reliable, and efficient.</li><li><strong>What do the test results mean? </strong><br>Actionable insights to inform optimization, enhancing our application’s overall quality.</li></ul><p><em>Lastly, the following recommended article:</em></p><p><a href="https://medium.com/%E8%A1%97%E5%8F%A3%E6%94%AF%E4%BB%98-jkopay/%E7%AC%AC%E4%B8%80%E6%AC%A1%E5%A3%93%E5%8A%9B%E6%B8%AC%E8%A9%A6%E5%B0%B1%E4%B8%8A%E6%89%8B-%E8%A1%97%E5%8F%A3%E8%B3%BC%E7%89%A9%E7%AF%80-%E4%B8%8D%E5%A3%93%E5%97%8E-c34ca9cf3705">第一次壓力測試就上手！街口購物節，不壓嗎？</a></p><p>Sh-Yin Lim (<a href="https://www.linkedin.com/in/sh-yin-lim/">LinkedIn</a>)<br>2024.11.07</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=417e9d1524ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>